-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
99 lines (99 loc) · 2.38 KB
/
.eslintrc.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
module.exports = {
env: {
browser: true,
commonjs: true,
es2022: true,
node: true
},
plugins: [
"react",
"react-hooks",
"jsx-a11y",
"@typescript-eslint",
"promise",
],
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:promise/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
ecmaFeatures: {
jsx: true
},
ecmaVersion: "latest",
project: [
"tsconfig.json"
]
},
settings: {
react: {
"version": "detect"
},
},
rules: {
"no-alert": 0,
"no-console": 0,
"no-debugger": 1,
"no-empty-function": [
1,
{
"allow": [
"arrowFunctions"
]
}
],
"no-lone-blocks": 1,
"no-param-reassign": 0,
"no-underscore-dangle": 0,
"no-unexpected-multiline": 1,
"no-unreachable": 1,
"no-useless-escape": 0,
"no-var": 1,
"no-mixed-spaces-and-tabs": 1,
"prefer-const": 1,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": 0,
"strict": 0,
"react/jsx-props-no-spreading": 0,
"react/react-in-jsx-scope": 0,
"react/prop-types": 0,
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/label-has-associated-control": 1,
"@typescript-eslint/ban-ts-comment": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
1,
{
"args": "all",
"caughtErrors": "none",
"ignoreRestSiblings": true,
"vars": "all",
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-floating-promises": 0,
"promise/catch-or-return": [
1,
{
"allowFinally": true
}
],
"@typescript-eslint/no-base-to-string": 0
}
}