-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
43 lines (36 loc) · 1.32 KB
/
.eslintrc.cjs
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
38
39
40
41
42
43
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', 'dev-dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
// Disable the rule that enforces only exporting components
'react-refresh/only-export-components': 'off',
// Disable the rule that warns about the use of `Function` type
'@typescript-eslint/no-unsafe-function-type': 'off',
// Disable the rule that warns about `any` type usage
'@typescript-eslint/no-explicit-any': 'off',
// Disable the rule that warns about unused variables
'@typescript-eslint/no-unused-vars': 'off',
// Disable the rule that enforces including dependencies in useEffect
'react-hooks/exhaustive-deps': 'off',
// Disable the rule that warns about `module` not being defined
'no-undef': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'no-empty': 'off',
'@typescript-eslint/ban-types': 'off',
'no-constant-condition': 'off',
'no-cond-assign': 'off',
},
}