-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
45 lines (45 loc) · 1.2 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
{
"root": true,
"env": { "browser": true, "es2020": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": ["dist", ".eslintrc"],
"parser": "@typescript-eslint/parser",
"plugins": ["react-refresh"],
"rules": {
"strict" : ["error","global"],
"prefer-destructuring":["error",{
"VariableDeclarator": {
"array": false,
"object": false
},
"AssignmentExpression": {
"array": false,
"object": false
}
},{"enforceForRenamedProperties":true}],
"new-cap": "error",
"no-invalid-this": "error",
"prefer-const":"error",
"no-new-func":"error",
"no-unused-vars": "warn",
"no-console": "warn",
"func-names": "warn",
"no-process-exit": "warn",
"object-shorthand": "warn",
"class-methods-use-this": "error",
"no-param-reassign": "error",
"no-var": "error",
"prefer-arrow-callback": "warn",
"prefer-rest-params": "warn",
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"no-eval":"error",
"no-implied-eval":"error",
"eqeqeq":"error",
"no-with":"error",
"no-plusplus":"error"
}
}