Biome setup
Some checks failed
Lint / lint (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2025-09-20 03:39:12 +02:00
parent 99a3fadc3a
commit 894c2bd3ec
9 changed files with 80 additions and 48 deletions

View File

@@ -10,6 +10,7 @@
},
"scripts": {
"lint:tsc": "tsc --noEmit",
"lint:biome": "biome lint ./src",
"clean:modules": "rm -rf node_modules"
},
"dependencies": {

View File

@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"lint:tsc": "tsc --noEmit",
"lint:biome": "biome lint ./src",
"build": "rollup -c",
"dev:bun": "NODE_ENV=development bun --hot ./src/entrypoint.bun.ts",
"dev:node": "NODE_ENV=development tsx --watch ./src/entrypoint.node.ts",

View File

@@ -1,23 +0,0 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { globalIgnores } from 'eslint/config'
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])

View File

@@ -7,8 +7,8 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"lint:tsc": "tsc --noEmit",
"lint:biome": "biome lint ./src",
"preview": "vite preview",
"clean:dist": "rm -rf dist",
"clean:modules": "rm -rf node_modules"
@@ -30,16 +30,12 @@
"tailwindcss": "^4.1.13"
},
"devDependencies": {
"@eslint/js": "^9.35.0",
"@tailwindcss/vite": "^4.1.13",
"@tanstack/react-router-devtools": "^1.131.48",
"@tanstack/router-plugin": "^1.131.48",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.0.2",
"eslint": "^9.35.0",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.4.0",
"tw-animate-css": "^1.3.8",
"typescript-eslint": "^8.44.0",