-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
88 lines (86 loc) · 2.3 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"jsx-a11y",
"react",
"@typescript-eslint",
"import",
"jsx-a11y",
"react-hooks",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react/jsx-runtime",
"plugin:prettier/recommended",
"prettier"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"rules": {
"no-console": 0,
"no-unused-vars": 1,
"react/no-unused-prop-types": 1,
"react/require-default-props": 1,
"react/default-props-match-prop-types": 1,
"react/jsx-no-duplicate-props": 1,
"react/no-array-index-key": 1,
"react/display-name": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 1,
"no-nonoctal-decimal-escape": 0,
"no-unsafe-optional-chaining": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
// Switching off excessively opinionated rules in "plugin:@typescript-eslint/recommended-requiring-type-checking"
"@typescript-eslint/await-thenable": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-for-in-array": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/consistent-type-assertions": [
1,
{ "assertionStyle": "as", "objectLiteralTypeAssertions": "never" }
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": [
"warn",
{
"endOfLine": "auto",
"singleQuote": true
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
}