-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
executable file
·34 lines (32 loc) · 1.03 KB
/
eslint.config.js
File metadata and controls
executable file
·34 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// eslint.config.js
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import globals from 'globals'
export default tseslint.config(
{ ignores: ['dist', 'build', 'coverage', 'node_modules'] },
eslint.configs.recommended,
tseslint.configs.recommended,
{
plugins: { react, 'react-hooks': reactHooks },
settings: { react: { version: 'detect' } },
languageOptions: {
globals: { ...globals.browser, ...globals.node },
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: { jsx: true }
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
...reactHooks.configs.recommended.rules
}
}
)