Skip to content

Commit be96e1e

Browse files
committed
fix: linting and cfg
1 parent e599be9 commit be96e1e

File tree

24 files changed

+455
-1110
lines changed

24 files changed

+455
-1110
lines changed

.eslintrc.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

eslint.config.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import react from 'eslint-plugin-react';
4+
import reactHooks from 'eslint-plugin-react-hooks';
5+
6+
export default tseslint.config(
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
files: ['**/*.{ts,tsx}'],
11+
plugins: {
12+
react,
13+
'react-hooks': reactHooks,
14+
},
15+
settings: {
16+
react: {
17+
version: 'detect',
18+
},
19+
},
20+
rules: {
21+
'@typescript-eslint/no-explicit-any': 'warn', // Changed from error to warn for flexibility
22+
'@typescript-eslint/explicit-function-return-type': 'error',
23+
'@typescript-eslint/no-unused-vars': [
24+
'error',
25+
{
26+
argsIgnorePattern: '^_',
27+
varsIgnorePattern: '^_',
28+
caughtErrorsIgnorePattern: '^_',
29+
},
30+
],
31+
'react/prop-types': 'off',
32+
'react/react-in-jsx-scope': 'off',
33+
...react.configs.recommended.rules,
34+
...reactHooks.configs.recommended.rules,
35+
},
36+
},
37+
{
38+
ignores: ['dist/**', 'node_modules/**', '*.config.js'],
39+
}
40+
);

0 commit comments

Comments
 (0)