/
.eslintrc
75 lines (75 loc) · 1.82 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
},
"plugins": [
"@typescript-eslint",
],
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
],
"env": {
"browser": true,
"node": true,
},
"globals": {
"describe": true,
"it": true,
},
"settings": {
"react": {
"pragma": "React",
"version": "17",
},
"import/resolver": {
"node": {},
},
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-floating-promises": [1, { "ignoreVoid": true }],
"@typescript-eslint/no-misused-promises": 1,
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
],
"@typescript-eslint/naming-convention": 0,
"no-restricted-syntax": ["error", "WithStatement"],
"class-methods-use-this": 0,
"max-len": ["error", { "code": 160 }],
"no-void": 0,
"no-nested-ternary": 0,
"no-multi-assign": 0,
"no-underscore-dangle": 0,
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsForRegex": ["draft"] }],
"react/jsx-props-no-spreading": 0,
"react/prop-types": 0,
"react/require-default-props": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-fragments": [2, "element"],
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/test/**",
"**/typings/**",
"**/scripts/**",
"**/vite/**",
]
}
],
"jsx-a11y/anchor-is-valid": 0,
},
}