Skip to content

Commit a8ae790

Browse files
committed
fix: restore and configure ESLint for TypeScript/Vite compatibility
1 parent 3c8d868 commit a8ae790

5 files changed

Lines changed: 2077 additions & 3618 deletions

File tree

.eslintrc.cjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
root: true,
3+
env: { browser: true, es2020: true },
4+
extends: [
5+
'eslint:recommended',
6+
'plugin:@typescript-eslint/recommended',
7+
'plugin:react-hooks/recommended',
8+
],
9+
ignorePatterns: ['dist', '.eslintrc.cjs'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['react-refresh'],
12+
rules: {
13+
'react-refresh/only-export-components': 'off',
14+
'react-hooks/exhaustive-deps': 'off',
15+
'@typescript-eslint/no-explicit-any': 'off',
16+
'no-unused-vars': 'off',
17+
'@typescript-eslint/no-unused-vars': [
18+
'warn',
19+
{
20+
argsIgnorePattern: '^_',
21+
varsIgnorePattern: '^_',
22+
caughtErrorsIgnorePattern: '^_',
23+
},
24+
],
25+
},
26+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
"@types/node": "^22.19.17",
4444
"@types/react": "^18.3.28",
4545
"@types/react-dom": "^18.3.7",
46+
"@typescript-eslint/eslint-plugin": "^8.58.1",
47+
"@typescript-eslint/parser": "^8.58.1",
4648
"@vitejs/plugin-react": "^4.7.0",
4749
"autoprefixer": "^10.4.27",
4850
"eslint": "^8.57.1",

0 commit comments

Comments
 (0)