Configure eslint

This commit is contained in:
2025-05-18 16:56:09 +02:00
parent 60ab01b0c8
commit 16fbbec992
5 changed files with 3369 additions and 37 deletions

View File

@@ -8,7 +8,8 @@
"build": "tsc && vite build",
"preview": "vite preview",
"type-check": "tsc --noEmit",
"migrate": "tsc --noEmit --allowJs --checkJs false"
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix"
},
"repository": {
"type": "git",
@@ -52,12 +53,18 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@eslint/compat": "^1.2.9",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.14.0",
"@types/react": "^18.3.20",
"@types/react-dom": "^18.3.6",
"@types/react-syntax-highlighter": "^15.5.13",
"@typescript-eslint/eslint-plugin": "^8.32.1",
"@typescript-eslint/parser": "^8.32.1",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.27.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"postcss": "^8.4.47",
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",