-
-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy patheslint.config.js
37 lines (36 loc) · 965 Bytes
/
eslint.config.js
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
35
36
37
import ririd from '@ririd/eslint-config'
import reactHooksPlugin from 'eslint-plugin-react-hooks'
export default ririd(
{
react: true,
typescript: true,
formatters: true,
ignores: [
'scripts/templates/**',
'packages/website-docusaurus/**',
'**/*.test.ts',
'**/*.md',
'**/*.spec.ts',
],
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
plugins: {
'react-hooks': reactHooksPlugin,
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
'semi': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-console': 'off',
'curly': 'off',
'import/export': 'warn',
'unused-imports/no-unused-vars': 'off',
'react/no-unknown-property': 'off',
'ts/no-unused-expressions': 'off',
'react/prefer-destructuring-assignment': 'off',
},
},
)