@lidofinance/eslint-config 0.0.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +14 -0
- package/README.md +60 -6
- package/all-hard.js +10 -10
- package/all.js +10 -10
- package/auto-hard.js +4 -4
- package/auto.js +4 -4
- package/lib/build-config.js +215 -198
- package/lib/env.js +53 -22
- package/package.json +42 -34
- package/prettier.js +15 -0
- package/rulesets/easy.js +205 -203
- package/rulesets/hard.js +70 -70
- package/.eslintrc +0 -12
package/rulesets/easy.js
CHANGED
|
@@ -1,211 +1,213 @@
|
|
|
1
1
|
// this extends eslint:recommended
|
|
2
2
|
const defaultRules = {
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
3
|
+
"prefer-const": "warn",
|
|
4
|
+
"no-useless-escape": "warn",
|
|
5
|
+
"no-unused-vars": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
ignoreRestSiblings: true,
|
|
9
|
+
args: "all",
|
|
10
|
+
argsIgnorePattern: "^_",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
"no-shadow": "error",
|
|
14
|
+
"no-empty-function": "off",
|
|
15
|
+
"no-void": "off",
|
|
16
|
+
"promise/no-return-wrap": "error",
|
|
17
|
+
"promise/param-names": "warn",
|
|
18
|
+
// analysis/correctness
|
|
19
|
+
"import/no-unresolved": "error",
|
|
20
|
+
"import/named": "error",
|
|
21
|
+
"import/namespace": "error",
|
|
22
|
+
"import/default": "error",
|
|
23
|
+
"import/export": "error",
|
|
24
|
+
// red flags (thus, warnings)
|
|
25
|
+
"import/no-named-as-default": "off",
|
|
26
|
+
"import/no-named-as-default-member": "off",
|
|
27
|
+
"import/no-duplicates": "off",
|
|
28
|
+
"import/no-extraneous-dependencies": "error",
|
|
29
|
+
"import/extensions": "off",
|
|
30
|
+
"import/prefer-default-export": "off",
|
|
31
|
+
"sonarjs/max-switch-cases": "error",
|
|
32
|
+
"sonarjs/no-all-duplicated-branches": "error",
|
|
33
|
+
"sonarjs/no-collapsible-if": "error",
|
|
34
|
+
"sonarjs/no-collection-size-mischeck": "error",
|
|
35
|
+
"sonarjs/no-duplicated-branches": "error",
|
|
36
|
+
"sonarjs/no-element-overwrite": "error",
|
|
37
|
+
"sonarjs/no-empty-collection": "warn",
|
|
38
|
+
"sonarjs/no-extra-arguments": "warn",
|
|
39
|
+
"sonarjs/no-gratuitous-expressions": "warn",
|
|
40
|
+
"sonarjs/no-identical-conditions": "warn",
|
|
41
|
+
"sonarjs/no-identical-expressions": "warn",
|
|
42
|
+
"sonarjs/no-identical-functions": "warn",
|
|
43
|
+
"sonarjs/no-ignored-return": "warn",
|
|
44
|
+
"sonarjs/no-nested-switch": "error",
|
|
45
|
+
"sonarjs/no-nested-template-literals": "error",
|
|
46
|
+
"sonarjs/no-one-iteration-loop": "error",
|
|
47
|
+
"sonarjs/no-redundant-boolean": "error",
|
|
48
|
+
"sonarjs/no-redundant-jump": "error",
|
|
49
|
+
"sonarjs/no-same-line-conditional": "error",
|
|
50
|
+
"sonarjs/no-small-switch": "error",
|
|
51
|
+
"sonarjs/no-unused-collection": "error",
|
|
52
|
+
"sonarjs/no-use-of-empty-return-value": "error",
|
|
53
|
+
"sonarjs/no-useless-catch": "warn",
|
|
54
|
+
"sonarjs/non-existent-operator": "error",
|
|
55
|
+
"sonarjs/prefer-object-literal": "error",
|
|
56
|
+
"sonarjs/prefer-single-boolean-return": "error",
|
|
57
|
+
"sonarjs/prefer-while": "error",
|
|
58
|
+
"unicorn/consistent-function-scoping": "error",
|
|
59
|
+
"unicorn/empty-brace-spaces": "error",
|
|
60
|
+
"unicorn/error-message": "error",
|
|
61
|
+
"unicorn/escape-case": "error",
|
|
62
|
+
"unicorn/expiring-todo-comments": "error",
|
|
63
|
+
"unicorn/explicit-length-check": "error",
|
|
64
|
+
"unicorn/import-style": "error",
|
|
65
|
+
"unicorn/new-for-builtins": "error",
|
|
66
|
+
"unicorn/no-array-method-this-argument": "error",
|
|
67
|
+
"unicorn/no-array-push-push": "warn",
|
|
68
|
+
"unicorn/no-console-spaces": "error",
|
|
69
|
+
"unicorn/no-document-cookie": "error",
|
|
70
|
+
"unicorn/no-empty-file": "error",
|
|
71
|
+
"unicorn/no-for-loop": "warn",
|
|
72
|
+
"unicorn/no-hex-escape": "error",
|
|
73
|
+
"unicorn/no-instanceof-array": "error",
|
|
74
|
+
"unicorn/no-invalid-remove-event-listener": "error",
|
|
75
|
+
"unicorn/no-nested-ternary": "error",
|
|
76
|
+
"unicorn/no-new-array": "error",
|
|
77
|
+
"unicorn/no-new-buffer": "error",
|
|
78
|
+
"unicorn/no-object-as-default-parameter": "error",
|
|
79
|
+
"unicorn/no-process-exit": "off", // this is app-specific
|
|
80
|
+
"unicorn/no-static-only-class": "error",
|
|
81
|
+
"unicorn/no-thenable": "error",
|
|
82
|
+
"unicorn/no-this-assignment": "error",
|
|
83
|
+
"unicorn/no-unreadable-array-destructuring": "error",
|
|
84
|
+
"unicorn/no-unreadable-iife": "error",
|
|
85
|
+
"unicorn/no-useless-length-check": "warn",
|
|
86
|
+
"unicorn/no-useless-promise-resolve-reject": "warn",
|
|
87
|
+
"unicorn/no-useless-spread": "warn",
|
|
88
|
+
"unicorn/no-useless-switch-case": "warn",
|
|
89
|
+
"unicorn/no-zero-fractions": "error",
|
|
90
|
+
"unicorn/number-literal-case": "error",
|
|
91
|
+
"unicorn/prefer-add-event-listener": "warn",
|
|
92
|
+
"unicorn/prefer-array-find": "warn",
|
|
93
|
+
"unicorn/prefer-array-flat": "warn",
|
|
94
|
+
"unicorn/prefer-array-flat-map": "warn",
|
|
95
|
+
"unicorn/prefer-array-index-of": "warn",
|
|
96
|
+
"unicorn/prefer-array-some": "warn",
|
|
97
|
+
"unicorn/relative-url-style": "error",
|
|
98
|
+
"unicorn/require-array-join-separator": "error",
|
|
99
|
+
"unicorn/require-number-to-fixed-digits-argument": "error",
|
|
100
|
+
"unicorn/template-indent": "error",
|
|
101
|
+
"unicorn/throw-new-error": "error",
|
|
102
|
+
};
|
|
100
103
|
|
|
101
104
|
const nextRules = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
105
|
+
"react/react-in-jsx-scope": "off",
|
|
106
|
+
"@next/next/no-css-tags": "warn",
|
|
107
|
+
"@next/next/no-sync-scripts": "warn",
|
|
108
|
+
"@next/next/no-html-link-for-pages": "warn",
|
|
109
|
+
"@next/next/no-img-element": "warn",
|
|
110
|
+
"@next/next/no-head-element": "warn",
|
|
111
|
+
"@next/next/no-unwanted-polyfillio": "warn",
|
|
112
|
+
"@next/next/no-page-custom-font": "warn",
|
|
113
|
+
"@next/next/no-title-in-document-head": "warn",
|
|
114
|
+
"@next/next/google-font-display": "warn",
|
|
115
|
+
"@next/next/google-font-preconnect": "warn",
|
|
116
|
+
"@next/next/next-script-for-ga": "warn",
|
|
117
|
+
"@next/next/no-document-import-in-page": "error",
|
|
118
|
+
"@next/next/no-head-import-in-document": "error",
|
|
119
|
+
"@next/next/no-script-component-in-head": "error",
|
|
120
|
+
"@next/next/no-typos": "warn",
|
|
121
|
+
"@next/next/no-duplicate-head": "error",
|
|
122
|
+
"@next/next/inline-script-id": "error",
|
|
123
|
+
"@next/next/no-before-interactive-script-outside-document": "warn",
|
|
124
|
+
"@next/next/no-assign-module-variable": "error",
|
|
125
|
+
};
|
|
124
126
|
const tsRules = {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
127
|
+
"import/named": "off", // https://github.com/import-js/eslint-plugin-import/blob/main/config/typescript.js#L29
|
|
128
|
+
"constructor-super": "off", // ts(2335) & ts(2377)
|
|
129
|
+
"getter-return": "off", // ts(2378)
|
|
130
|
+
"no-const-assign": "off", // ts(2588)
|
|
131
|
+
"no-dupe-args": "off", // ts(2300)
|
|
132
|
+
"no-dupe-class-members": "off", // ts(2393) & ts(2300)
|
|
133
|
+
"no-dupe-keys": "off", // ts(1117)
|
|
134
|
+
"no-func-assign": "off", // ts(2539)
|
|
135
|
+
"no-import-assign": "off", // ts(2539) & ts(2540)
|
|
136
|
+
"no-new-symbol": "off", // ts(2588)
|
|
137
|
+
"no-obj-calls": "off", // ts(2349)
|
|
138
|
+
"no-redeclare": "off", // ts(2451)
|
|
139
|
+
"no-setter-return": "off", // ts(2408)
|
|
140
|
+
"no-this-before-super": "off", // ts(2376)
|
|
141
|
+
"no-undef": "off", // ts(2304)
|
|
142
|
+
"no-unreachable": "off", // ts(7027)
|
|
143
|
+
"no-unsafe-negation": "off", // ts(2365) & ts(2360) & ts(2358)
|
|
144
|
+
"no-var": "error", // ts transpiles let/const to var, so no need for vars any more
|
|
145
|
+
"prefer-const": "error", // ts provides better types with const
|
|
146
|
+
"prefer-rest-params": "error", // ts provides better types with rest args over arguments
|
|
147
|
+
"prefer-spread": "error", // ts transpiles spread to apply, so no need for manual apply
|
|
148
|
+
"valid-typeof": "off", // ts(2367)
|
|
149
|
+
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
150
|
+
"@typescript-eslint/ban-ts-comment": "error",
|
|
151
|
+
"@typescript-eslint/ban-types": "error",
|
|
152
|
+
"no-array-constructor": "off",
|
|
153
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
154
|
+
"no-empty-function": "off",
|
|
155
|
+
"@typescript-eslint/no-empty-function": defaultRules["no-empty-function"],
|
|
156
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
157
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
158
|
+
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
159
|
+
"no-extra-semi": "off",
|
|
160
|
+
"@typescript-eslint/no-extra-semi": "error",
|
|
161
|
+
"@typescript-eslint/no-inferrable-types": "error",
|
|
162
|
+
"no-loss-of-precision": "off",
|
|
163
|
+
"@typescript-eslint/no-loss-of-precision": "error",
|
|
164
|
+
"@typescript-eslint/no-misused-new": "error",
|
|
165
|
+
"@typescript-eslint/no-namespace": "error",
|
|
166
|
+
"@typescript-eslint/no-non-null-asserted-optional-chain": "error",
|
|
167
|
+
"@typescript-eslint/no-non-null-assertion": "warn",
|
|
168
|
+
"@typescript-eslint/no-this-alias": "error",
|
|
169
|
+
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
|
|
170
|
+
"no-unused-vars": "off",
|
|
171
|
+
"@typescript-eslint/no-unused-vars": defaultRules["no-unused-vars"],
|
|
172
|
+
"no-shadow": "off",
|
|
173
|
+
"@typescript-eslint/no-shadow": defaultRules["no-shadow"],
|
|
174
|
+
"default-case": "off",
|
|
175
|
+
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
176
|
+
"@typescript-eslint/prefer-as-const": "error",
|
|
177
|
+
"@typescript-eslint/prefer-namespace-keyword": "error",
|
|
178
|
+
"@typescript-eslint/triple-slash-reference": "error",
|
|
179
|
+
"@typescript-eslint/no-for-in-array": "error",
|
|
180
|
+
};
|
|
179
181
|
const reactRules = {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
182
|
+
"react/display-name": "error",
|
|
183
|
+
"react/jsx-key": "error",
|
|
184
|
+
"react/jsx-no-comment-textnodes": "error",
|
|
185
|
+
"react/jsx-no-duplicate-props": "error",
|
|
186
|
+
"react/jsx-no-target-blank": "error",
|
|
187
|
+
"react/jsx-no-undef": "error",
|
|
188
|
+
"react/jsx-uses-react": "error",
|
|
189
|
+
"react/jsx-uses-vars": "error",
|
|
190
|
+
"react/no-children-prop": "error",
|
|
191
|
+
"react/no-danger-with-children": "error",
|
|
192
|
+
"react/no-deprecated": "error",
|
|
193
|
+
"react/no-direct-mutation-state": "error",
|
|
194
|
+
"react/no-find-dom-node": "error",
|
|
195
|
+
"react/no-is-mounted": "error",
|
|
196
|
+
"react/no-render-return-value": "error",
|
|
197
|
+
"react/no-string-refs": "error",
|
|
198
|
+
"react/no-unescaped-entities": "error",
|
|
199
|
+
"react/no-unknown-property": "error",
|
|
200
|
+
"react/no-unsafe": "off",
|
|
201
|
+
"react/prop-types": "off",
|
|
202
|
+
"react/react-in-jsx-scope": "error",
|
|
203
|
+
"react/require-render-return": "error",
|
|
204
|
+
"react-hooks/rules-of-hooks": "error",
|
|
205
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
206
|
+
};
|
|
205
207
|
|
|
206
208
|
module.exports = {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
209
|
+
nextRules,
|
|
210
|
+
tsRules,
|
|
211
|
+
reactRules,
|
|
212
|
+
defaultRules,
|
|
213
|
+
};
|
package/rulesets/hard.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
const { nextRules, tsRules, reactRules, defaultRules } = require(
|
|
1
|
+
const { nextRules, tsRules, reactRules, defaultRules } = require("./easy");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
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
|
-
}
|
|
4
|
+
nextRules: {
|
|
5
|
+
...nextRules,
|
|
6
|
+
},
|
|
7
|
+
tsRules,
|
|
8
|
+
reactRules: {
|
|
9
|
+
...reactRules,
|
|
10
|
+
"react/prop-types": "error",
|
|
11
|
+
},
|
|
12
|
+
defaultRules: {
|
|
13
|
+
...defaultRules,
|
|
14
|
+
"promise/always-return": "error",
|
|
15
|
+
"promise/catch-or-return": "error",
|
|
16
|
+
"promise/no-native": "off",
|
|
17
|
+
"promise/no-nesting": "warn",
|
|
18
|
+
"promise/no-promise-in-callback": "warn",
|
|
19
|
+
"promise/no-callback-in-promise": "warn",
|
|
20
|
+
"promise/no-new-statics": "error",
|
|
21
|
+
"promise/no-return-in-finally": "warn",
|
|
22
|
+
"promise/valid-params": "warn",
|
|
23
|
+
"import/no-named-as-default": "warn",
|
|
24
|
+
"import/no-named-as-default-member": "warn",
|
|
25
|
+
"import/no-duplicates": "warn",
|
|
26
|
+
"sonarjs/cognitive-complexity": "warn",
|
|
27
|
+
"sonarjs/prefer-immediate-return": "error",
|
|
28
|
+
"unicorn/consistent-destructuring": "error",
|
|
29
|
+
"unicorn/custom-error-definition": "error",
|
|
30
|
+
"unicorn/no-abusive-eslint-disable": "error",
|
|
31
|
+
"no-nested-ternary": "error",
|
|
32
|
+
"unicorn/no-unsafe-regex": "error",
|
|
33
|
+
"unicorn/no-unused-properties": "error",
|
|
34
|
+
"unicorn/no-useless-fallback-in-spread": "error",
|
|
35
|
+
"unicorn/numeric-separators-style": "warn",
|
|
36
|
+
"unicorn/prefer-at": "warn",
|
|
37
|
+
"unicorn/prefer-code-point": "warn",
|
|
38
|
+
"unicorn/prefer-date-now": "warn",
|
|
39
|
+
"unicorn/prefer-default-parameters": "warn",
|
|
40
|
+
"unicorn/prefer-dom-node-append": "warn",
|
|
41
|
+
"unicorn/prefer-dom-node-dataset": "warn",
|
|
42
|
+
"unicorn/prefer-dom-node-remove": "warn",
|
|
43
|
+
"unicorn/prefer-dom-node-text-content": "warn",
|
|
44
|
+
"unicorn/prefer-export-from": "warn",
|
|
45
|
+
"unicorn/prefer-includes": "warn",
|
|
46
|
+
"unicorn/prefer-json-parse-buffer": "warn",
|
|
47
|
+
"unicorn/prefer-keyboard-event-key": "warn",
|
|
48
|
+
"unicorn/prefer-math-trunc": "warn",
|
|
49
|
+
"unicorn/prefer-modern-dom-apis": "warn",
|
|
50
|
+
"unicorn/prefer-modern-math-apis": "warn",
|
|
51
|
+
"unicorn/prefer-native-coercion-functions": "warn",
|
|
52
|
+
"unicorn/prefer-negative-index": "warn",
|
|
53
|
+
"unicorn/prefer-number-properties": "warn",
|
|
54
|
+
"unicorn/prefer-object-from-entries": "warn",
|
|
55
|
+
"unicorn/prefer-optional-catch-binding": "warn",
|
|
56
|
+
"unicorn/prefer-prototype-methods": "warn",
|
|
57
|
+
"unicorn/prefer-query-selector": "warn",
|
|
58
|
+
"unicorn/prefer-reflect-apply": "warn",
|
|
59
|
+
"unicorn/prefer-regexp-test": "warn",
|
|
60
|
+
"unicorn/prefer-set-has": "warn",
|
|
61
|
+
"unicorn/prefer-spread": "warn",
|
|
62
|
+
"unicorn/prefer-string-replace-all": "warn",
|
|
63
|
+
"unicorn/prefer-string-slice": "warn",
|
|
64
|
+
"unicorn/prefer-string-starts-ends-with": "warn",
|
|
65
|
+
"unicorn/prefer-string-trim-start-end": "warn",
|
|
66
|
+
"unicorn/prefer-switch": "warn",
|
|
67
|
+
"unicorn/prefer-ternary": "warn",
|
|
68
|
+
"unicorn/prefer-top-level-await": "warn",
|
|
69
|
+
"unicorn/prefer-type-error": "warn",
|
|
70
|
+
"unicorn/string-content": "error",
|
|
71
|
+
},
|
|
72
|
+
};
|