@dvashim/biome-config 1.9.0 → 1.10.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/README.md +85 -115
- package/dist/biome.react-balanced-stable.json +73 -1
- package/dist/biome.react-balanced.json +83 -54
- package/dist/biome.react-recommended.json +1 -1
- package/dist/biome.react-strict-stable.json +68 -1
- package/dist/biome.react-strict.json +77 -48
- package/dist/biome.recommended.json +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
3
|
-
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
|
|
4
3
|
"assist": {
|
|
5
4
|
"actions": {
|
|
6
5
|
"recommended": true,
|
|
@@ -9,11 +8,9 @@
|
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
},
|
|
12
|
-
|
|
13
11
|
"files": {
|
|
14
12
|
"includes": ["**", "!!**/dist"]
|
|
15
13
|
},
|
|
16
|
-
|
|
17
14
|
"formatter": {
|
|
18
15
|
"attributePosition": "auto",
|
|
19
16
|
"bracketSameLine": false,
|
|
@@ -26,11 +23,9 @@
|
|
|
26
23
|
"lineWidth": 80,
|
|
27
24
|
"useEditorconfig": true
|
|
28
25
|
},
|
|
29
|
-
|
|
30
26
|
"html": {
|
|
31
27
|
"experimentalFullSupportEnabled": true
|
|
32
28
|
},
|
|
33
|
-
|
|
34
29
|
"javascript": {
|
|
35
30
|
"experimentalEmbeddedSnippetsEnabled": true,
|
|
36
31
|
"globals": [],
|
|
@@ -50,17 +45,17 @@
|
|
|
50
45
|
"unsafeParameterDecoratorsEnabled": false
|
|
51
46
|
}
|
|
52
47
|
},
|
|
53
|
-
|
|
54
48
|
"json": {
|
|
55
49
|
"parser": {
|
|
56
50
|
"allowComments": true,
|
|
57
51
|
"allowTrailingCommas": true
|
|
58
52
|
}
|
|
59
53
|
},
|
|
60
|
-
|
|
61
54
|
"linter": {
|
|
62
55
|
"rules": {
|
|
63
56
|
"a11y": {
|
|
57
|
+
"noAmbiguousAnchorText": "warn",
|
|
58
|
+
"noNoninteractiveElementInteractions": "warn",
|
|
64
59
|
"noNoninteractiveElementToInteractiveRole": "off",
|
|
65
60
|
"noStaticElementInteractions": "off",
|
|
66
61
|
"useButtonType": "off",
|
|
@@ -69,14 +64,18 @@
|
|
|
69
64
|
"useSemanticElements": "off"
|
|
70
65
|
},
|
|
71
66
|
"complexity": {
|
|
67
|
+
"noDivRegex": "warn",
|
|
72
68
|
"noExcessiveCognitiveComplexity": "warn",
|
|
73
69
|
"noExcessiveNestedTestSuites": "warn",
|
|
74
70
|
"noForEach": "warn",
|
|
75
71
|
"noImplicitCoercions": "off",
|
|
72
|
+
"noRedundantDefaultExport": "warn",
|
|
76
73
|
"noUselessCatchBinding": "warn",
|
|
74
|
+
"noUselessReturn": "info",
|
|
77
75
|
"noUselessStringConcat": "warn",
|
|
78
76
|
"noUselessUndefined": "warn",
|
|
79
77
|
"noVoid": "warn",
|
|
78
|
+
"useArrayFind": "warn",
|
|
80
79
|
"useMaxParams": "warn",
|
|
81
80
|
"useSimplifiedLogicExpression": "warn",
|
|
82
81
|
"useWhile": "warn",
|
|
@@ -88,56 +87,51 @@
|
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
89
|
"correctness": {
|
|
90
|
+
"noBeforeInteractiveScriptOutsideDocument": "warn",
|
|
91
|
+
"noChildrenProp": "warn",
|
|
92
|
+
"noDuplicateAttributes": "warn",
|
|
93
|
+
"noDuplicateEnumValueNames": "warn",
|
|
91
94
|
"noGlobalDirnameFilename": "warn",
|
|
92
95
|
"noNestedComponentDefinitions": "warn",
|
|
96
|
+
"noNextAsyncClientComponent": "warn",
|
|
93
97
|
"noNodejsModules": "warn",
|
|
98
|
+
"noPrivateImports": "warn",
|
|
94
99
|
"noProcessGlobal": "warn",
|
|
95
100
|
"noReactPropAssignments": "warn",
|
|
101
|
+
"noRenderReturnValue": "warn",
|
|
102
|
+
"noRestrictedElements": "warn",
|
|
96
103
|
"noUndeclaredDependencies": "warn",
|
|
97
104
|
"noUndeclaredVariables": "warn",
|
|
98
105
|
"noUnresolvedImports": "off",
|
|
106
|
+
"noUnusedInstantiation": "warn",
|
|
107
|
+
"useExhaustiveDependencies": "warn",
|
|
108
|
+
"useHookAtTopLevel": "warn",
|
|
99
109
|
"useImportExtensions": "off",
|
|
110
|
+
"useInlineScriptId": "warn",
|
|
100
111
|
"useJsonImportAttributes": "warn",
|
|
112
|
+
"useJsxKeyInIterable": "warn",
|
|
101
113
|
"useSingleJsDocAsterisk": "warn",
|
|
102
114
|
"useUniqueElementIds": "warn"
|
|
103
115
|
},
|
|
104
116
|
"nursery": {
|
|
105
|
-
"noAmbiguousAnchorText": "warn",
|
|
106
117
|
"noBaseToString": "warn",
|
|
107
118
|
"noComponentHookFactories": "warn",
|
|
108
119
|
"noConditionalExpect": "warn",
|
|
109
|
-
"noContinue": "info",
|
|
110
|
-
"noDivRegex": "warn",
|
|
111
120
|
"noDrizzleDeleteWithoutWhere": "warn",
|
|
112
121
|
"noDrizzleUpdateWithoutWhere": "warn",
|
|
113
|
-
"noDuplicateAttributes": "warn",
|
|
114
|
-
"noDuplicatedSpreadProps": "warn",
|
|
115
|
-
"noDuplicateEnumValueNames": "warn",
|
|
116
|
-
"noDuplicateEnumValues": "warn",
|
|
117
122
|
"noDuplicateSelectors": "warn",
|
|
118
123
|
"noEmptyObjectKeys": "warn",
|
|
119
|
-
"noEqualsToNull": "warn",
|
|
120
|
-
"noExcessiveClassesPerFile": "warn",
|
|
121
|
-
"noExcessiveLinesPerFile": "warn",
|
|
122
124
|
"noExcessiveNestedCallbacks": "warn",
|
|
123
125
|
"noExcessiveSelectorClasses": "warn",
|
|
124
|
-
"noFloatingClasses": "warn",
|
|
125
126
|
"noFloatingPromises": "warn",
|
|
126
|
-
"noForIn": "warn",
|
|
127
127
|
"noIdenticalTestTitle": "warn",
|
|
128
128
|
"noImpliedEval": "warn",
|
|
129
129
|
"noInlineStyles": "warn",
|
|
130
130
|
"noJsxLeakedDollar": "warn",
|
|
131
131
|
"noJsxNamespace": "warn",
|
|
132
|
-
"noJsxPropsBind": "error",
|
|
133
|
-
"noLeakedRender": "error",
|
|
134
132
|
"noLoopFunc": "warn",
|
|
135
133
|
"noMisleadingReturnType": "warn",
|
|
136
134
|
"noMisusedPromises": "error",
|
|
137
|
-
"noMultiAssign": "error",
|
|
138
|
-
"noMultiStr": "error",
|
|
139
|
-
"noNestedPromises": "warn",
|
|
140
|
-
"noParametersOnlyUsedInRecursion": "error",
|
|
141
135
|
"noPlaywrightElementHandle": "warn",
|
|
142
136
|
"noPlaywrightEval": "warn",
|
|
143
137
|
"noPlaywrightForceOption": "warn",
|
|
@@ -148,97 +142,101 @@
|
|
|
148
142
|
"noPlaywrightWaitForNavigation": "warn",
|
|
149
143
|
"noPlaywrightWaitForSelector": "warn",
|
|
150
144
|
"noPlaywrightWaitForTimeout": "warn",
|
|
151
|
-
"
|
|
145
|
+
"noReactNativeDeepImports": "warn",
|
|
146
|
+
"noReactNativeLiteralColors": "warn",
|
|
147
|
+
"noReactNativeRawText": "warn",
|
|
152
148
|
"noReactStringRefs": "warn",
|
|
153
|
-
"
|
|
154
|
-
"noReturnAssign": "warn",
|
|
155
|
-
"noScriptUrl": "warn",
|
|
156
|
-
"noShadow": "warn",
|
|
157
|
-
"noSyncScripts": "warn",
|
|
158
|
-
"noTernary": "off",
|
|
149
|
+
"noRestrictedDependencies": "warn",
|
|
159
150
|
"noTopLevelLiterals": "warn",
|
|
160
|
-
"
|
|
161
|
-
"noUnknownAttribute": "warn",
|
|
162
|
-
"noUnnecessaryConditions": "warn",
|
|
151
|
+
"noUndeclaredClasses": "warn",
|
|
163
152
|
"noUnnecessaryTemplateExpression": "warn",
|
|
164
153
|
"noUnsafePlusOperands": "warn",
|
|
165
154
|
"noUntrustedLicenses": "warn",
|
|
166
|
-
"
|
|
155
|
+
"noUnusedClasses": "warn",
|
|
167
156
|
"noUselessTypeConversion": "warn",
|
|
168
157
|
"useArraySome": "warn",
|
|
169
|
-
"useArraySortCompare": "warn",
|
|
170
158
|
"useAwaitThenable": "warn",
|
|
171
159
|
"useBaseline": "warn",
|
|
172
|
-
"useConsistentEnumValueType": "warn",
|
|
173
|
-
"useConsistentMethodSignatures": "warn",
|
|
174
160
|
"useConsistentTestIt": "warn",
|
|
175
|
-
"useDestructuring": "warn",
|
|
176
161
|
"useDisposables": "warn",
|
|
177
162
|
"useDomNodeTextContent": "warn",
|
|
178
163
|
"useDomQuerySelector": "warn",
|
|
179
|
-
"useErrorCause": "warn",
|
|
180
164
|
"useExhaustiveSwitchCases": "warn",
|
|
181
165
|
"useExpect": "warn",
|
|
182
166
|
"useExplicitReturnType": "warn",
|
|
183
167
|
"useExplicitType": "off",
|
|
184
|
-
"useFind": "warn",
|
|
185
|
-
"useGlobalThis": "warn",
|
|
186
168
|
"useIframeSandbox": "warn",
|
|
187
169
|
"useImportsFirst": "warn",
|
|
170
|
+
"useIncludes": "warn",
|
|
188
171
|
"useMathMinMax": "warn",
|
|
189
172
|
"useNamedCaptureGroup": "warn",
|
|
190
173
|
"useNullishCoalescing": "warn",
|
|
191
174
|
"usePlaywrightValidDescribeCallback": "warn",
|
|
192
175
|
"useReactAsyncServerFunction": "warn",
|
|
176
|
+
"useReactFunctionComponentDefinition": "warn",
|
|
177
|
+
"useReactNativePlatformComponents": "warn",
|
|
193
178
|
"useReduceTypeParameter": "warn",
|
|
194
179
|
"useRegexpExec": "warn",
|
|
195
180
|
"useRegexpTest": "warn",
|
|
196
181
|
"useSortedClasses": "warn",
|
|
197
|
-
"useSpread": "warn",
|
|
198
182
|
"useStringStartsEndsWith": "warn",
|
|
199
183
|
"useTestHooksInOrder": "warn",
|
|
200
184
|
"useTestHooksOnTop": "warn",
|
|
201
185
|
"useThisInClassMethods": "warn",
|
|
202
186
|
"useUnicodeRegex": "warn",
|
|
203
|
-
"useVarsOnTop": "warn"
|
|
204
|
-
"noIncrementDecrement": {
|
|
205
|
-
"level": "warn",
|
|
206
|
-
"options": {
|
|
207
|
-
"allowForLoopAfterthoughts": true
|
|
208
|
-
}
|
|
209
|
-
}
|
|
187
|
+
"useVarsOnTop": "warn"
|
|
210
188
|
},
|
|
211
189
|
"performance": {
|
|
212
190
|
"noAwaitInLoops": "warn",
|
|
213
191
|
"noBarrelFile": "off",
|
|
214
192
|
"noDelete": "warn",
|
|
193
|
+
"noImgElement": "off",
|
|
194
|
+
"noJsxPropsBind": "error",
|
|
215
195
|
"noNamespaceImport": "off",
|
|
216
196
|
"noReExportAll": "off",
|
|
197
|
+
"noSyncScripts": "warn",
|
|
198
|
+
"noUnwantedPolyfillio": "warn",
|
|
199
|
+
"useGoogleFontPreconnect": "warn",
|
|
217
200
|
"useTopLevelRegex": "warn"
|
|
218
201
|
},
|
|
219
202
|
"security": {
|
|
203
|
+
"noDangerouslySetInnerHtml": "warn",
|
|
204
|
+
"noDangerouslySetInnerHtmlWithChildren": "warn",
|
|
205
|
+
"noScriptUrl": "warn",
|
|
220
206
|
"noSecrets": "warn"
|
|
221
207
|
},
|
|
222
208
|
"style": {
|
|
223
209
|
"noCommonJs": "warn",
|
|
210
|
+
"noContinue": "info",
|
|
224
211
|
"noDefaultExport": "off",
|
|
225
212
|
"noDoneCallback": "warn",
|
|
226
213
|
"noEnum": "warn",
|
|
214
|
+
"noExcessiveClassesPerFile": "warn",
|
|
215
|
+
"noExcessiveLinesPerFile": "warn",
|
|
227
216
|
"noExportedImports": "warn",
|
|
217
|
+
"noHeadElement": "warn",
|
|
218
|
+
"noHexColors": "warn",
|
|
228
219
|
"noImplicitBoolean": "info",
|
|
229
220
|
"noInferrableTypes": "warn",
|
|
230
221
|
"noJsxLiterals": "off",
|
|
231
222
|
"noMagicNumbers": "info",
|
|
223
|
+
"noMultiAssign": "error",
|
|
224
|
+
"noMultilineString": "error",
|
|
232
225
|
"noNamespace": "warn",
|
|
233
226
|
"noNegationElse": "warn",
|
|
234
227
|
"noNestedTernary": "off",
|
|
235
228
|
"noParameterAssign": "warn",
|
|
236
229
|
"noParameterProperties": "warn",
|
|
237
230
|
"noProcessEnv": "warn",
|
|
231
|
+
"noRestrictedGlobals": "warn",
|
|
232
|
+
"noRestrictedImports": "warn",
|
|
233
|
+
"noRestrictedTypes": "warn",
|
|
238
234
|
"noShoutyConstants": "warn",
|
|
239
235
|
"noSubstr": "warn",
|
|
236
|
+
"noTernary": "off",
|
|
240
237
|
"noUnusedTemplateLiteral": "warn",
|
|
241
238
|
"noUselessElse": "warn",
|
|
239
|
+
"noValueAtRule": "warn",
|
|
242
240
|
"noYodaExpression": "warn",
|
|
243
241
|
"useAsConstAssertion": "warn",
|
|
244
242
|
"useAtIndex": "warn",
|
|
@@ -249,17 +247,23 @@
|
|
|
249
247
|
"useConsistentArrowReturn": "warn",
|
|
250
248
|
"useConsistentBuiltinInstantiation": "warn",
|
|
251
249
|
"useConsistentCurlyBraces": "warn",
|
|
250
|
+
"useConsistentEnumValueType": "warn",
|
|
252
251
|
"useConsistentMemberAccessibility": "warn",
|
|
252
|
+
"useConsistentMethodSignatures": "warn",
|
|
253
253
|
"useConsistentObjectDefinitions": "warn",
|
|
254
254
|
"useDefaultParameterLast": "warn",
|
|
255
255
|
"useDefaultSwitchClause": "warn",
|
|
256
|
+
"useDestructuring": "warn",
|
|
256
257
|
"useEnumInitializers": "warn",
|
|
258
|
+
"useErrorCause": "warn",
|
|
257
259
|
"useExplicitLengthCheck": "warn",
|
|
258
260
|
"useExportsLast": "warn",
|
|
259
261
|
"useFilenamingConvention": "warn",
|
|
260
262
|
"useForOf": "warn",
|
|
261
263
|
"useFragmentSyntax": "warn",
|
|
264
|
+
"useGlobalThis": "warn",
|
|
262
265
|
"useGroupedAccessorPairs": "warn",
|
|
266
|
+
"useNodeAssertStrict": "warn",
|
|
263
267
|
"useNumberNamespace": "warn",
|
|
264
268
|
"useNumericSeparators": "warn",
|
|
265
269
|
"useObjectSpread": "warn",
|
|
@@ -268,11 +272,18 @@
|
|
|
268
272
|
"useSelfClosingElements": "warn",
|
|
269
273
|
"useShorthandAssign": "warn",
|
|
270
274
|
"useSingleVarDeclarator": "warn",
|
|
275
|
+
"useSpreadOverApply": "warn",
|
|
271
276
|
"useSymbolDescription": "warn",
|
|
272
277
|
"useThrowNewError": "warn",
|
|
273
278
|
"useThrowOnlyError": "warn",
|
|
274
279
|
"useTrimStartEnd": "warn",
|
|
275
280
|
"useUnifiedTypeSignatures": "warn",
|
|
281
|
+
"noIncrementDecrement": {
|
|
282
|
+
"level": "warn",
|
|
283
|
+
"options": {
|
|
284
|
+
"allowForLoopAfterthoughts": true
|
|
285
|
+
}
|
|
286
|
+
},
|
|
276
287
|
"useConsistentArrayType": {
|
|
277
288
|
"level": "warn",
|
|
278
289
|
"options": {
|
|
@@ -295,31 +306,50 @@
|
|
|
295
306
|
},
|
|
296
307
|
"suspicious": {
|
|
297
308
|
"noAlert": "warn",
|
|
309
|
+
"noArrayIndexKey": "warn",
|
|
298
310
|
"noBitwiseOperators": "warn",
|
|
299
311
|
"noConsole": "warn",
|
|
300
312
|
"noConstantBinaryExpressions": "warn",
|
|
301
313
|
"noDeprecatedImports": "warn",
|
|
314
|
+
"noDocumentImportInPage": "warn",
|
|
302
315
|
"noDuplicateDependencies": "warn",
|
|
316
|
+
"noDuplicatedSpreadProps": "warn",
|
|
317
|
+
"noDuplicateTestHooks": "warn",
|
|
303
318
|
"noEmptyBlockStatements": "warn",
|
|
304
319
|
"noEmptySource": "warn",
|
|
320
|
+
"noEqualsToNull": "warn",
|
|
305
321
|
"noEvolvingTypes": "warn",
|
|
322
|
+
"noExportsInTest": "warn",
|
|
323
|
+
"noFocusedTests": "warn",
|
|
324
|
+
"noForIn": "warn",
|
|
325
|
+
"noHeadImportInDocument": "warn",
|
|
306
326
|
"noImportCycles": "warn",
|
|
327
|
+
"noLeakedRender": "error",
|
|
307
328
|
"noMisplacedAssertion": "warn",
|
|
329
|
+
"noNestedPromises": "warn",
|
|
330
|
+
"noParametersOnlyUsedInRecursion": "error",
|
|
308
331
|
"noReactForwardRef": "warn",
|
|
332
|
+
"noReturnAssign": "warn",
|
|
333
|
+
"noShadow": "warn",
|
|
309
334
|
"noSkippedTests": "warn",
|
|
310
335
|
"noUnassignedVariables": "warn",
|
|
336
|
+
"noUndeclaredEnvVars": "warn",
|
|
337
|
+
"noUnknownAttribute": "warn",
|
|
338
|
+
"noUnnecessaryConditions": "warn",
|
|
311
339
|
"noUnusedExpressions": "warn",
|
|
312
340
|
"noVar": "error",
|
|
341
|
+
"useArraySortCompare": "warn",
|
|
313
342
|
"useAwait": "warn",
|
|
343
|
+
"useDeprecatedDate": "warn",
|
|
314
344
|
"useErrorMessage": "warn",
|
|
315
345
|
"useGuardForIn": "warn",
|
|
316
346
|
"useNumberToFixedDigitsArgument": "warn",
|
|
347
|
+
"useRequiredScripts": "warn",
|
|
317
348
|
"useStaticResponseMethods": "warn",
|
|
318
349
|
"useStrictMode": "warn"
|
|
319
350
|
}
|
|
320
351
|
}
|
|
321
352
|
},
|
|
322
|
-
|
|
323
353
|
"overrides": [
|
|
324
354
|
{
|
|
325
355
|
"includes": ["**/package.json"],
|
|
@@ -337,7 +367,6 @@
|
|
|
337
367
|
}
|
|
338
368
|
}
|
|
339
369
|
],
|
|
340
|
-
|
|
341
370
|
"vcs": {
|
|
342
371
|
"clientKind": "git",
|
|
343
372
|
"defaultBranch": "main",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
"linter": {
|
|
62
62
|
"rules": {
|
|
63
63
|
"a11y": {
|
|
64
|
+
"noAmbiguousAnchorText": "warn",
|
|
65
|
+
"noNoninteractiveElementInteractions": "warn",
|
|
64
66
|
"noNoninteractiveElementToInteractiveRole": "off",
|
|
65
67
|
"noStaticElementInteractions": "off",
|
|
66
68
|
"useButtonType": "off",
|
|
@@ -69,30 +71,47 @@
|
|
|
69
71
|
"useSemanticElements": "off"
|
|
70
72
|
},
|
|
71
73
|
"complexity": {
|
|
74
|
+
"noDivRegex": "warn",
|
|
72
75
|
"noExcessiveCognitiveComplexity": "warn",
|
|
73
76
|
"noExcessiveLinesPerFunction": "warn",
|
|
74
77
|
"noExcessiveNestedTestSuites": "warn",
|
|
75
78
|
"noForEach": "warn",
|
|
76
79
|
"noImplicitCoercions": "warn",
|
|
80
|
+
"noRedundantDefaultExport": "warn",
|
|
77
81
|
"noUselessCatchBinding": "warn",
|
|
82
|
+
"noUselessReturn": "warn",
|
|
78
83
|
"noUselessStringConcat": "warn",
|
|
79
84
|
"noUselessUndefined": "warn",
|
|
80
85
|
"noVoid": "warn",
|
|
86
|
+
"useArrayFind": "warn",
|
|
81
87
|
"useMaxParams": "warn",
|
|
82
88
|
"useSimplifiedLogicExpression": "warn",
|
|
83
89
|
"useWhile": "warn"
|
|
84
90
|
},
|
|
85
91
|
"correctness": {
|
|
92
|
+
"noBeforeInteractiveScriptOutsideDocument": "warn",
|
|
93
|
+
"noChildrenProp": "warn",
|
|
94
|
+
"noDuplicateAttributes": "warn",
|
|
95
|
+
"noDuplicateEnumValueNames": "warn",
|
|
86
96
|
"noGlobalDirnameFilename": "warn",
|
|
87
97
|
"noNestedComponentDefinitions": "warn",
|
|
98
|
+
"noNextAsyncClientComponent": "warn",
|
|
88
99
|
"noNodejsModules": "warn",
|
|
100
|
+
"noPrivateImports": "warn",
|
|
89
101
|
"noProcessGlobal": "warn",
|
|
90
102
|
"noReactPropAssignments": "warn",
|
|
103
|
+
"noRenderReturnValue": "warn",
|
|
104
|
+
"noRestrictedElements": "warn",
|
|
91
105
|
"noUndeclaredDependencies": "warn",
|
|
92
106
|
"noUndeclaredVariables": "warn",
|
|
93
107
|
"noUnresolvedImports": "off",
|
|
108
|
+
"noUnusedInstantiation": "warn",
|
|
109
|
+
"useExhaustiveDependencies": "warn",
|
|
110
|
+
"useHookAtTopLevel": "warn",
|
|
94
111
|
"useImportExtensions": "off",
|
|
112
|
+
"useInlineScriptId": "warn",
|
|
95
113
|
"useJsonImportAttributes": "warn",
|
|
114
|
+
"useJsxKeyInIterable": "warn",
|
|
96
115
|
"useSingleJsDocAsterisk": "warn",
|
|
97
116
|
"useUniqueElementIds": "warn"
|
|
98
117
|
},
|
|
@@ -100,33 +119,54 @@
|
|
|
100
119
|
"noAwaitInLoops": "warn",
|
|
101
120
|
"noBarrelFile": "warn",
|
|
102
121
|
"noDelete": "warn",
|
|
122
|
+
"noImgElement": "warn",
|
|
123
|
+
"noJsxPropsBind": "error",
|
|
103
124
|
"noNamespaceImport": "warn",
|
|
104
125
|
"noReExportAll": "warn",
|
|
126
|
+
"noSyncScripts": "warn",
|
|
127
|
+
"noUnwantedPolyfillio": "warn",
|
|
128
|
+
"useGoogleFontPreconnect": "warn",
|
|
105
129
|
"useTopLevelRegex": "warn"
|
|
106
130
|
},
|
|
107
131
|
"security": {
|
|
132
|
+
"noDangerouslySetInnerHtml": "warn",
|
|
133
|
+
"noDangerouslySetInnerHtmlWithChildren": "warn",
|
|
134
|
+
"noScriptUrl": "warn",
|
|
108
135
|
"noSecrets": "warn"
|
|
109
136
|
},
|
|
110
137
|
"style": {
|
|
111
138
|
"noCommonJs": "warn",
|
|
139
|
+
"noContinue": "warn",
|
|
112
140
|
"noDefaultExport": "warn",
|
|
113
141
|
"noDoneCallback": "warn",
|
|
114
142
|
"noEnum": "warn",
|
|
143
|
+
"noExcessiveClassesPerFile": "warn",
|
|
144
|
+
"noExcessiveLinesPerFile": "warn",
|
|
115
145
|
"noExportedImports": "warn",
|
|
146
|
+
"noHeadElement": "warn",
|
|
147
|
+
"noHexColors": "warn",
|
|
116
148
|
"noImplicitBoolean": "warn",
|
|
149
|
+
"noIncrementDecrement": "warn",
|
|
117
150
|
"noInferrableTypes": "warn",
|
|
118
151
|
"noJsxLiterals": "warn",
|
|
119
152
|
"noMagicNumbers": "warn",
|
|
153
|
+
"noMultiAssign": "error",
|
|
154
|
+
"noMultilineString": "error",
|
|
120
155
|
"noNamespace": "warn",
|
|
121
156
|
"noNegationElse": "warn",
|
|
122
157
|
"noNestedTernary": "warn",
|
|
123
158
|
"noParameterAssign": "warn",
|
|
124
159
|
"noParameterProperties": "warn",
|
|
125
160
|
"noProcessEnv": "warn",
|
|
161
|
+
"noRestrictedGlobals": "warn",
|
|
162
|
+
"noRestrictedImports": "warn",
|
|
163
|
+
"noRestrictedTypes": "warn",
|
|
126
164
|
"noShoutyConstants": "warn",
|
|
127
165
|
"noSubstr": "warn",
|
|
166
|
+
"noTernary": "off",
|
|
128
167
|
"noUnusedTemplateLiteral": "warn",
|
|
129
168
|
"noUselessElse": "warn",
|
|
169
|
+
"noValueAtRule": "warn",
|
|
130
170
|
"noYodaExpression": "warn",
|
|
131
171
|
"useAsConstAssertion": "warn",
|
|
132
172
|
"useAtIndex": "warn",
|
|
@@ -137,17 +177,23 @@
|
|
|
137
177
|
"useConsistentArrowReturn": "warn",
|
|
138
178
|
"useConsistentBuiltinInstantiation": "warn",
|
|
139
179
|
"useConsistentCurlyBraces": "warn",
|
|
180
|
+
"useConsistentEnumValueType": "warn",
|
|
140
181
|
"useConsistentMemberAccessibility": "warn",
|
|
182
|
+
"useConsistentMethodSignatures": "warn",
|
|
141
183
|
"useConsistentObjectDefinitions": "warn",
|
|
142
184
|
"useDefaultParameterLast": "warn",
|
|
143
185
|
"useDefaultSwitchClause": "warn",
|
|
186
|
+
"useDestructuring": "warn",
|
|
144
187
|
"useEnumInitializers": "warn",
|
|
188
|
+
"useErrorCause": "warn",
|
|
145
189
|
"useExplicitLengthCheck": "warn",
|
|
146
190
|
"useExportsLast": "warn",
|
|
147
191
|
"useFilenamingConvention": "warn",
|
|
148
192
|
"useForOf": "warn",
|
|
149
193
|
"useFragmentSyntax": "warn",
|
|
194
|
+
"useGlobalThis": "warn",
|
|
150
195
|
"useGroupedAccessorPairs": "warn",
|
|
196
|
+
"useNodeAssertStrict": "warn",
|
|
151
197
|
"useNumberNamespace": "warn",
|
|
152
198
|
"useNumericSeparators": "warn",
|
|
153
199
|
"useObjectSpread": "warn",
|
|
@@ -156,6 +202,7 @@
|
|
|
156
202
|
"useSelfClosingElements": "warn",
|
|
157
203
|
"useShorthandAssign": "warn",
|
|
158
204
|
"useSingleVarDeclarator": "warn",
|
|
205
|
+
"useSpreadOverApply": "warn",
|
|
159
206
|
"useSymbolDescription": "warn",
|
|
160
207
|
"useThrowNewError": "warn",
|
|
161
208
|
"useThrowOnlyError": "warn",
|
|
@@ -183,25 +230,45 @@
|
|
|
183
230
|
},
|
|
184
231
|
"suspicious": {
|
|
185
232
|
"noAlert": "warn",
|
|
233
|
+
"noArrayIndexKey": "warn",
|
|
186
234
|
"noBitwiseOperators": "warn",
|
|
187
235
|
"noConsole": "warn",
|
|
188
236
|
"noConstantBinaryExpressions": "warn",
|
|
189
237
|
"noDeprecatedImports": "warn",
|
|
238
|
+
"noDocumentImportInPage": "warn",
|
|
190
239
|
"noDuplicateDependencies": "warn",
|
|
240
|
+
"noDuplicatedSpreadProps": "warn",
|
|
241
|
+
"noDuplicateTestHooks": "warn",
|
|
191
242
|
"noEmptyBlockStatements": "warn",
|
|
192
243
|
"noEmptySource": "warn",
|
|
244
|
+
"noEqualsToNull": "warn",
|
|
193
245
|
"noEvolvingTypes": "warn",
|
|
246
|
+
"noExportsInTest": "warn",
|
|
247
|
+
"noFocusedTests": "warn",
|
|
248
|
+
"noForIn": "warn",
|
|
249
|
+
"noHeadImportInDocument": "warn",
|
|
194
250
|
"noImportCycles": "warn",
|
|
251
|
+
"noLeakedRender": "error",
|
|
195
252
|
"noMisplacedAssertion": "warn",
|
|
253
|
+
"noNestedPromises": "warn",
|
|
254
|
+
"noParametersOnlyUsedInRecursion": "error",
|
|
196
255
|
"noReactForwardRef": "warn",
|
|
256
|
+
"noReturnAssign": "warn",
|
|
257
|
+
"noShadow": "warn",
|
|
197
258
|
"noSkippedTests": "warn",
|
|
198
259
|
"noUnassignedVariables": "warn",
|
|
260
|
+
"noUndeclaredEnvVars": "warn",
|
|
261
|
+
"noUnknownAttribute": "warn",
|
|
262
|
+
"noUnnecessaryConditions": "warn",
|
|
199
263
|
"noUnusedExpressions": "warn",
|
|
200
264
|
"noVar": "error",
|
|
265
|
+
"useArraySortCompare": "warn",
|
|
201
266
|
"useAwait": "warn",
|
|
267
|
+
"useDeprecatedDate": "warn",
|
|
202
268
|
"useErrorMessage": "warn",
|
|
203
269
|
"useGuardForIn": "warn",
|
|
204
270
|
"useNumberToFixedDigitsArgument": "warn",
|
|
271
|
+
"useRequiredScripts": "warn",
|
|
205
272
|
"useStaticResponseMethods": "warn",
|
|
206
273
|
"useStrictMode": "warn"
|
|
207
274
|
}
|