-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
87 lines (86 loc) · 3.11 KB
/
eslint.config.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
const js = require("@eslint/js");
const globals = require("globals");
module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.node
}
},
"rules": {
"no-loss-of-precision": "error",
"no-promise-executor-return": "error",
"no-template-curly-in-string": "error",
"no-unreachable-loop": "error",
"no-useless-backreference": "error",
"require-atomic-updates": "error",
"accessor-pairs": "warn",
"array-callback-return": "error",
"block-scoped-var":"error",
"curly":"error",
"dot-notation": "error",
"eqeqeq":"error",
"grouped-accessor-pairs":"error",
"no-alert":"error",
"no-caller":"error",
"no-constructor-return":"error",
"no-div-regex":"error",
"no-else-return":"error",
"no-eq-null":"error",
"no-extend-native":"error",
"no-extra-bind":"error",
"no-extra-label":"error",
"no-implicit-coercion":"error",
"no-implicit-globals":"error",
"no-implied-eval":"error",
"no-invalid-this":"error",
"no-iterator":"error",
"no-labels":"error",
"no-lone-blocks":"error",
"no-loop-func":"error",
"no-multi-str":"error",
"no-new":"error",
"no-new-func":"error",
"no-new-wrappers":"error",
"no-octal-escape":"error",
"no-param-reassign":"error",
"no-proto":"error",
"no-return-assign":["error", "except-parens"],
"no-script-url":"error",
"no-self-compare":"error",
"no-throw-literal":"error",
"no-undefined": "error",
"no-unmodified-loop-condition":"error",
"no-unused-expressions":"error",
"no-useless-call":"error",
"no-useless-concat":"error",
"no-useless-return":"error",
"prefer-const":"error",
"prefer-promise-reject-errors":"error",
"prefer-regex-literals":"error",
"require-await":"error",
"yoda":"error",
"strict":"error",
"no-shadow":"error",
"new-cap":"error",
"no-lonely-if":"error",
"no-object-constructor":"error",
"no-unneeded-ternary":"error",
"operator-assignment":["error", "always"],
"prefer-exponentiation-operator":"error",
"prefer-object-spread":"error",
"no-useless-computed-key":"error",
"no-useless-constructor":"error",
"no-var":"error",
"prefer-arrow-callback":["error", { "allowNamedFunctions": true }],
"prefer-numeric-literals":"error",
"prefer-spread":"error",
"prefer-template":"error",
"symbol-description":"error"
}
}
];