-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (60 loc) · 1.28 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
{
"env": {
"browser": true,
"es2021": true,
"node": true,
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"@typescript-eslint/no-empty-function": ["error", { "allow": ["constructors"] }],
"@typescript-eslint/ban-ts-comment": "warn",
"react/react-in-jsx-scope": "off",
"no-undef": "error",
"no-case-declarations": "error",
"no-alert": "error",
"no-fallthrough": "error",
"no-cond-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"semi": "off",
"eqeqeq": "error",
"no-tabs": "error",
"no-new-object": "error",
"no-array-constructor": "error",
"no-mixed-operators": "warn",
"no-plusplus": "warn",
"no-use-before-define": [
"error"
],
"consistent-this": [
"warn",
"that"
],
"object-curly-spacing": [
"warn",
"always"
],
"brace-style": 0,
"no-catch-shadow": "warn",
"no-shadow": "warn",
"array-bracket-spacing": [
"error",
"never"
],
"linebreak-style": [
"error",
"unix"
]
},
"globals": {
"__dirname": true
}
}