eslint-config-heck 2.14.0 → 3.0.0-beta.2
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/biome.jsonc +8 -1
- package/biomeLinting.json +64 -29
- package/complexity.mjs +27 -0
- package/groupImports.mjs +35 -0
- package/node.mjs +1265 -0
- package/nodeWithBiome.mjs +1121 -0
- package/package.json +25 -27
- package/reactNative.mjs +21 -0
- package/readme.md +38 -30
- package/browser.cjs +0 -18
- package/browserWithBiome.cjs +0 -18
- package/complexity.cjs +0 -27
- package/groupImports.cjs +0 -32
- package/noFormatting.cjs +0 -100
- package/node.cjs +0 -1537
- package/nodeWithBiome.cjs +0 -1260
- package/reactNative.cjs +0 -14
package/biome.jsonc
CHANGED
package/biomeLinting.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"noDistractingElements": "error",
|
|
13
13
|
"noHeaderScope": "error",
|
|
14
14
|
"noInteractiveElementToNoninteractiveRole": "error",
|
|
15
|
+
"noLabelWithoutControl": "error",
|
|
15
16
|
"noNoninteractiveElementToInteractiveRole": "error",
|
|
16
17
|
"noNoninteractiveTabindex": "error",
|
|
17
18
|
"noPositiveTabindex": "error",
|
|
@@ -23,12 +24,14 @@
|
|
|
23
24
|
"useAriaActivedescendantWithTabindex": "error",
|
|
24
25
|
"useAriaPropsForRole": "error",
|
|
25
26
|
"useButtonType": "error",
|
|
27
|
+
"useFocusableInteractive": "error",
|
|
26
28
|
"useHeadingContent": "error",
|
|
27
29
|
"useHtmlLang": "error",
|
|
28
30
|
"useIframeTitle": "error",
|
|
29
31
|
"useKeyWithClickEvents": "error",
|
|
30
32
|
"useKeyWithMouseEvents": "error",
|
|
31
33
|
"useMediaCaption": "error",
|
|
34
|
+
"useSemanticElements": "error",
|
|
32
35
|
"useValidAnchor": "error",
|
|
33
36
|
"useValidAriaProps": "error",
|
|
34
37
|
"useValidAriaRole": "error",
|
|
@@ -52,13 +55,16 @@
|
|
|
52
55
|
"noUselessLabel": "error",
|
|
53
56
|
"noUselessLoneBlockStatements": "error",
|
|
54
57
|
"noUselessRename": "error",
|
|
58
|
+
"noUselessStringConcat": "error",
|
|
55
59
|
"noUselessSwitchCase": "error",
|
|
56
60
|
"noUselessTernary": "error",
|
|
57
61
|
"noUselessThisAlias": "error",
|
|
58
62
|
"noUselessTypeConstraint": "error",
|
|
63
|
+
"noUselessUndefinedInitialization": "error",
|
|
59
64
|
"noVoid": "error",
|
|
60
65
|
"noWith": "error",
|
|
61
66
|
"useArrowFunction": "error",
|
|
67
|
+
"useDateNow": "error",
|
|
62
68
|
"useFlatMap": "error",
|
|
63
69
|
"useLiteralKeys": "error",
|
|
64
70
|
"useOptionalChain": "error",
|
|
@@ -77,10 +83,9 @@
|
|
|
77
83
|
"noFlatMapIdentity": "error",
|
|
78
84
|
"noGlobalObjectCalls": "error",
|
|
79
85
|
"noInnerDeclarations": "error",
|
|
86
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
80
87
|
"noInvalidConstructorSuper": "error",
|
|
81
|
-
"noInvalidNewBuiltin": "error",
|
|
82
88
|
"noInvalidUseBeforeDeclaration": "off",
|
|
83
|
-
"noNewSymbol": "off",
|
|
84
89
|
"noNodejsModules": "off",
|
|
85
90
|
"noNonoctalDecimalEscape": "error",
|
|
86
91
|
"noPrecisionLoss": "error",
|
|
@@ -89,12 +94,14 @@
|
|
|
89
94
|
"noSetterReturn": "error",
|
|
90
95
|
"noStringCaseMismatch": "error",
|
|
91
96
|
"noSwitchDeclarations": "error",
|
|
97
|
+
"noUndeclaredDependencies": "off",
|
|
92
98
|
"noUndeclaredVariables": "off",
|
|
93
99
|
"noUnnecessaryContinue": "error",
|
|
94
100
|
"noUnreachable": "error",
|
|
95
101
|
"noUnreachableSuper": "error",
|
|
96
102
|
"noUnsafeFinally": "error",
|
|
97
103
|
"noUnsafeOptionalChaining": "error",
|
|
104
|
+
"noUnusedFunctionParameters": "error",
|
|
98
105
|
"noUnusedImports": "error",
|
|
99
106
|
"noUnusedLabels": "error",
|
|
100
107
|
"noUnusedPrivateClassMembers": "error",
|
|
@@ -104,6 +111,7 @@
|
|
|
104
111
|
"useArrayLiterals": "error",
|
|
105
112
|
"useExhaustiveDependencies": "error",
|
|
106
113
|
"useHookAtTopLevel": "error",
|
|
114
|
+
"useImportExtensions": "off",
|
|
107
115
|
"useIsNan": "error",
|
|
108
116
|
"useJsxKeyInIterable": "error",
|
|
109
117
|
"useValidForDirection": "error",
|
|
@@ -113,7 +121,8 @@
|
|
|
113
121
|
"noAccumulatingSpread": "error",
|
|
114
122
|
"noBarrelFile": "error",
|
|
115
123
|
"noDelete": "error",
|
|
116
|
-
"noReExportAll": "error"
|
|
124
|
+
"noReExportAll": "error",
|
|
125
|
+
"useTopLevelRegex": "error"
|
|
117
126
|
},
|
|
118
127
|
"security": {
|
|
119
128
|
"noDangerouslySetInnerHtml": "error",
|
|
@@ -124,6 +133,7 @@
|
|
|
124
133
|
"noArguments": "error",
|
|
125
134
|
"noCommaOperator": "error",
|
|
126
135
|
"noDefaultExport": "error",
|
|
136
|
+
"noDoneCallback": "error",
|
|
127
137
|
"noImplicitBoolean": "off",
|
|
128
138
|
"noInferrableTypes": "error",
|
|
129
139
|
"noNamespace": "error",
|
|
@@ -137,13 +147,17 @@
|
|
|
137
147
|
"noUnusedTemplateLiteral": "error",
|
|
138
148
|
"noUselessElse": "error",
|
|
139
149
|
"noVar": "error",
|
|
150
|
+
"noYodaExpression": "error",
|
|
140
151
|
"useAsConstAssertion": "error",
|
|
141
152
|
"useBlockStatements": "error",
|
|
142
153
|
"useCollapsedElseIf": "error",
|
|
143
154
|
"useConsistentArrayType": "error",
|
|
155
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
144
156
|
"useConst": "error",
|
|
145
157
|
"useDefaultParameterLast": "error",
|
|
158
|
+
"useDefaultSwitchClause": "off",
|
|
146
159
|
"useEnumInitializers": "error",
|
|
160
|
+
"useExplicitLengthCheck": "error",
|
|
147
161
|
"useExponentiationOperator": "error",
|
|
148
162
|
"useExportType": "error",
|
|
149
163
|
"useFilenamingConvention": {
|
|
@@ -186,9 +200,10 @@
|
|
|
186
200
|
"useShorthandArrayType": "error",
|
|
187
201
|
"useShorthandAssign": "error",
|
|
188
202
|
"useShorthandFunctionType": "error",
|
|
189
|
-
"useSingleCaseStatement": "error",
|
|
190
203
|
"useSingleVarDeclarator": "error",
|
|
191
204
|
"useTemplate": "error",
|
|
205
|
+
"useThrowNewError": "error",
|
|
206
|
+
"useThrowOnlyError": "error",
|
|
192
207
|
"useWhile": "error"
|
|
193
208
|
},
|
|
194
209
|
"suspicious": {
|
|
@@ -202,7 +217,7 @@
|
|
|
202
217
|
"noCompareNegZero": "error",
|
|
203
218
|
"noConfusingLabels": "error",
|
|
204
219
|
"noConfusingVoidType": "error",
|
|
205
|
-
"
|
|
220
|
+
"noConsole": "error",
|
|
206
221
|
"noConstEnum": "error",
|
|
207
222
|
"noControlCharactersInRegex": "error",
|
|
208
223
|
"noDebugger": "error",
|
|
@@ -215,6 +230,7 @@
|
|
|
215
230
|
"noDuplicateTestHooks": "error",
|
|
216
231
|
"noEmptyBlockStatements": "error",
|
|
217
232
|
"noEmptyInterface": "off",
|
|
233
|
+
"noEvolvingTypes": "error",
|
|
218
234
|
"noExplicitAny": "error",
|
|
219
235
|
"noExportsInTest": "error",
|
|
220
236
|
"noExtraNonNullAssertion": "error",
|
|
@@ -229,8 +245,10 @@
|
|
|
229
245
|
"noLabelVar": "error",
|
|
230
246
|
"noMisleadingCharacterClass": "error",
|
|
231
247
|
"noMisleadingInstantiator": "error",
|
|
248
|
+
"noMisplacedAssertion": "error",
|
|
232
249
|
"noMisrefactoredShorthandAssign": "error",
|
|
233
250
|
"noPrototypeBuiltins": "error",
|
|
251
|
+
"noReactSpecificProps": "off",
|
|
234
252
|
"noRedeclare": "error",
|
|
235
253
|
"noRedundantUseStrict": "error",
|
|
236
254
|
"noSelfCompare": "error",
|
|
@@ -243,41 +261,58 @@
|
|
|
243
261
|
"noUnsafeNegation": "error",
|
|
244
262
|
"useAwait": "off",
|
|
245
263
|
"useDefaultSwitchClauseLast": "error",
|
|
264
|
+
"useErrorMessage": "error",
|
|
246
265
|
"useGetterReturn": "error",
|
|
247
266
|
"useIsArray": "error",
|
|
248
267
|
"useNamespaceKeyword": "error",
|
|
268
|
+
"useNumberToFixedDigitsArgument": "error",
|
|
249
269
|
"useValidTypeof": "error"
|
|
250
270
|
},
|
|
251
271
|
"nursery": {
|
|
252
|
-
"
|
|
253
|
-
"
|
|
272
|
+
"noCommonJs": "error",
|
|
273
|
+
"noDocumentCookie": "error",
|
|
274
|
+
"noDocumentImportInPage": "off",
|
|
275
|
+
"noDuplicatedFields": "off",
|
|
254
276
|
"noDuplicateElseIf": "error",
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
277
|
+
"noDynamicNamespaceImportAccess": "error",
|
|
278
|
+
"noEnum": "error",
|
|
279
|
+
"noExportedImports": "error",
|
|
280
|
+
"noHeadElement": "off",
|
|
281
|
+
"noHeadImportInDocument": "off",
|
|
282
|
+
"noImgElement": "off",
|
|
283
|
+
"noIrregularWhitespace": "error",
|
|
284
|
+
"noNestedTernary": "error",
|
|
285
|
+
"noOctalEscape": "error",
|
|
286
|
+
"noProcessEnv": "error",
|
|
260
287
|
"noRestrictedImports": "off",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
288
|
+
"noRestrictedTypes": "off",
|
|
289
|
+
"noSecrets": "off",
|
|
290
|
+
"noStaticElementInteractions": "error",
|
|
291
|
+
"noSubstr": "error",
|
|
292
|
+
"noTemplateCurlyInString": "error",
|
|
293
|
+
"noUselessEscapeInRegex": "error",
|
|
294
|
+
"noUselessStringRaw": "error",
|
|
266
295
|
"useAdjacentOverloadSignatures": "error",
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
|
|
296
|
+
"useAriaPropsSupportedByRole": "error",
|
|
297
|
+
"useAtIndex": "error",
|
|
298
|
+
"useCollapsedIf": "error",
|
|
299
|
+
"useComponentExportOnlyModules": "off",
|
|
300
|
+
"useConsistentCurlyBraces": "off",
|
|
301
|
+
"useConsistentMemberAccessibility": {
|
|
302
|
+
"level": "error",
|
|
303
|
+
"options": {
|
|
304
|
+
"accessibility": "explicit"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"useDeprecatedReason": "off",
|
|
308
|
+
"useExplicitType": "off",
|
|
309
|
+
"useGoogleFontDisplay": "error",
|
|
310
|
+
"useGuardForIn": "error",
|
|
274
311
|
"useImportRestrictions": "error",
|
|
275
|
-
"useNumberToFixedDigitsArgument": "error",
|
|
276
|
-
"useSemanticElements": "error",
|
|
277
312
|
"useSortedClasses": "off",
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
313
|
+
"useStrictMode": "error",
|
|
314
|
+
"useTrimStartEnd": "error",
|
|
315
|
+
"useValidAutocomplete": "error"
|
|
281
316
|
}
|
|
282
317
|
}
|
|
283
318
|
}
|
package/complexity.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
rules: {
|
|
5
|
+
"max-depth": ["warn", 2],
|
|
6
|
+
"max-statements": ["warn", 20],
|
|
7
|
+
"max-params": ["warn", 3],
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
files: [
|
|
12
|
+
"**/*.spec.ts",
|
|
13
|
+
"**/*.spec.tsx",
|
|
14
|
+
"**/*.test.ts",
|
|
15
|
+
"**/*.test.tsx",
|
|
16
|
+
"**/*.spec.js",
|
|
17
|
+
"**/*.spec.jsx",
|
|
18
|
+
"**/*.test.js",
|
|
19
|
+
"**/*.test.jsx",
|
|
20
|
+
],
|
|
21
|
+
|
|
22
|
+
rules: {
|
|
23
|
+
"max-statements": "off",
|
|
24
|
+
"max-params": "off",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
];
|
package/groupImports.mjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
rules: {
|
|
5
|
+
"sort-imports": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
ignoreCase: true,
|
|
9
|
+
ignoreDeclarationSort: true,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
|
|
13
|
+
"import/order": [
|
|
14
|
+
"error",
|
|
15
|
+
{
|
|
16
|
+
groups: [
|
|
17
|
+
"unknown",
|
|
18
|
+
"builtin",
|
|
19
|
+
"external",
|
|
20
|
+
"internal",
|
|
21
|
+
"parent",
|
|
22
|
+
"sibling",
|
|
23
|
+
"index",
|
|
24
|
+
"object",
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
alphabetize: {
|
|
28
|
+
order: "asc",
|
|
29
|
+
caseInsensitive: true,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
];
|