ultracite 5.6.4 → 6.0.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/config/angular/biome.jsonc +9 -0
- package/config/astro/biome.jsonc +42 -0
- package/config/core/biome.jsonc +653 -0
- package/config/next/biome.jsonc +33 -0
- package/config/qwik/biome.jsonc +19 -0
- package/config/react/biome.jsonc +31 -0
- package/config/remix/biome.jsonc +16 -0
- package/config/solid/biome.jsonc +17 -0
- package/config/svelte/biome.jsonc +34 -0
- package/config/ultracite/biome.jsonc +5 -0
- package/config/vue/biome.jsonc +41 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +25 -95
- package/package.json +12 -8
- package/biome.jsonc +0 -1065
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": false,
|
|
3
|
+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
|
|
4
|
+
"files": {
|
|
5
|
+
"ignoreUnknown": true,
|
|
6
|
+
"includes": [
|
|
7
|
+
"**/*",
|
|
8
|
+
"!**/_generated/**/*",
|
|
9
|
+
"!**/*.gen.*",
|
|
10
|
+
"!**/.next/**/*",
|
|
11
|
+
"!**/next-env.d.ts",
|
|
12
|
+
"!**/.nuxt/**/*",
|
|
13
|
+
"!**/.output/**/*",
|
|
14
|
+
"!**/.svelte-kit/**/*",
|
|
15
|
+
"!**/.vitepress/cache/**/*",
|
|
16
|
+
"!**/.vitepress/dist/**/*",
|
|
17
|
+
"!**/dist/**/*",
|
|
18
|
+
"!**/build/**/*",
|
|
19
|
+
"!**/out/**/*",
|
|
20
|
+
"!**/.turbo/**/*",
|
|
21
|
+
"!**/.vercel/**/*",
|
|
22
|
+
"!**/.netlify/**/*",
|
|
23
|
+
"!**/storybook-static/**/*",
|
|
24
|
+
"!**/.docusaurus/**/*",
|
|
25
|
+
"!**/.cache/**/*",
|
|
26
|
+
"!**/public/build/**/*",
|
|
27
|
+
"!**/.parcel-cache/**/*",
|
|
28
|
+
"!**/.vite/**/*",
|
|
29
|
+
"!**/.astro/**/*",
|
|
30
|
+
"!**/_astro/**/*",
|
|
31
|
+
"!**/coverage/**/*",
|
|
32
|
+
"!**/.nyc_output/**/*",
|
|
33
|
+
"!**/*.generated.*",
|
|
34
|
+
"!**/*.auto.*",
|
|
35
|
+
"!**/generated/**/*",
|
|
36
|
+
"!**/auto-generated/**/*",
|
|
37
|
+
"!**/codegen/**/*",
|
|
38
|
+
"!**/__generated__/**/*",
|
|
39
|
+
"!**/graphql-types.*",
|
|
40
|
+
"!**/schema.d.ts",
|
|
41
|
+
"!**/schema.graphql.d.ts",
|
|
42
|
+
"!**/*.d.ts.map",
|
|
43
|
+
"!**/.expo/**/*",
|
|
44
|
+
"!**/.expo-shared/**/*",
|
|
45
|
+
"!**/android/build/**/*",
|
|
46
|
+
"!**/ios/build/**/*",
|
|
47
|
+
"!**/DerivedData/**/*"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"formatter": {
|
|
51
|
+
"enabled": true,
|
|
52
|
+
"formatWithErrors": true,
|
|
53
|
+
"indentStyle": "space",
|
|
54
|
+
"indentWidth": 2,
|
|
55
|
+
"lineEnding": "lf",
|
|
56
|
+
"lineWidth": 80,
|
|
57
|
+
"attributePosition": "auto",
|
|
58
|
+
"bracketSpacing": true
|
|
59
|
+
},
|
|
60
|
+
"assist": {
|
|
61
|
+
"actions": {
|
|
62
|
+
"source": {
|
|
63
|
+
// Provides a code action to sort the imports and exports in the file using a built-in or custom order.
|
|
64
|
+
"organizeImports": "on",
|
|
65
|
+
// Enforce attribute sorting in JSX elements.
|
|
66
|
+
"useSortedAttributes": "on",
|
|
67
|
+
// Enforce ordering of a JS object properties.
|
|
68
|
+
"useSortedKeys": "off"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"linter": {
|
|
73
|
+
"enabled": true,
|
|
74
|
+
"rules": {
|
|
75
|
+
"a11y": {
|
|
76
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
77
|
+
|
|
78
|
+
"noAccessKey": "error",
|
|
79
|
+
"noAriaHiddenOnFocusable": "error",
|
|
80
|
+
"noAriaUnsupportedElements": "error",
|
|
81
|
+
"noDistractingElements": "error",
|
|
82
|
+
"noHeaderScope": "error",
|
|
83
|
+
"noInteractiveElementToNoninteractiveRole": "error",
|
|
84
|
+
"noLabelWithoutControl": "error",
|
|
85
|
+
"noNoninteractiveElementInteractions": "error",
|
|
86
|
+
"noNoninteractiveElementToInteractiveRole": "error",
|
|
87
|
+
"noNoninteractiveTabindex": "error",
|
|
88
|
+
"noPositiveTabindex": "error",
|
|
89
|
+
"noRedundantAlt": "error",
|
|
90
|
+
"noRedundantRoles": "error",
|
|
91
|
+
"noStaticElementInteractions": "error",
|
|
92
|
+
"noSvgWithoutTitle": "error",
|
|
93
|
+
"useAltText": "error",
|
|
94
|
+
"useAnchorContent": "error",
|
|
95
|
+
"useAriaActivedescendantWithTabindex": "error",
|
|
96
|
+
"useAriaPropsForRole": "error",
|
|
97
|
+
"useAriaPropsSupportedByRole": "error",
|
|
98
|
+
"useButtonType": "error",
|
|
99
|
+
"useFocusableInteractive": "error",
|
|
100
|
+
"useHeadingContent": "error",
|
|
101
|
+
"useHtmlLang": "error",
|
|
102
|
+
"useIframeTitle": "error",
|
|
103
|
+
"useKeyWithClickEvents": "error",
|
|
104
|
+
"useKeyWithMouseEvents": "error",
|
|
105
|
+
"useMediaCaption": "error",
|
|
106
|
+
"useSemanticElements": "error",
|
|
107
|
+
"useValidAnchor": "error",
|
|
108
|
+
"useValidAriaProps": "error",
|
|
109
|
+
"useValidAriaRole": "error",
|
|
110
|
+
"useValidAriaValues": "error",
|
|
111
|
+
"useValidAutocomplete": "error",
|
|
112
|
+
"useValidLang": "error",
|
|
113
|
+
|
|
114
|
+
"noAutofocus": "off",
|
|
115
|
+
|
|
116
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
117
|
+
"useGenericFontNames": "error"
|
|
118
|
+
},
|
|
119
|
+
"complexity": {
|
|
120
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
121
|
+
|
|
122
|
+
"noAdjacentSpacesInRegex": "error",
|
|
123
|
+
"noArguments": "error",
|
|
124
|
+
"noBannedTypes": "error",
|
|
125
|
+
"noCommaOperator": "error",
|
|
126
|
+
"noEmptyTypeParameters": "error",
|
|
127
|
+
"noExcessiveCognitiveComplexity": "error",
|
|
128
|
+
"noExcessiveNestedTestSuites": "error",
|
|
129
|
+
"noExtraBooleanCast": "error",
|
|
130
|
+
"noFlatMapIdentity": "error",
|
|
131
|
+
"noForEach": "error",
|
|
132
|
+
"noStaticOnlyClass": "error",
|
|
133
|
+
"noThisInStatic": "error",
|
|
134
|
+
"noUselessCatch": "error",
|
|
135
|
+
"noUselessConstructor": "error",
|
|
136
|
+
"noUselessContinue": "error",
|
|
137
|
+
"noUselessEmptyExport": "error",
|
|
138
|
+
"noUselessEscapeInRegex": "error",
|
|
139
|
+
"noUselessFragments": "error",
|
|
140
|
+
"noUselessLabel": "error",
|
|
141
|
+
"noUselessLoneBlockStatements": "error",
|
|
142
|
+
"noUselessRename": "error",
|
|
143
|
+
"noUselessStringConcat": "error",
|
|
144
|
+
"noUselessStringRaw": "error",
|
|
145
|
+
"noUselessSwitchCase": "error",
|
|
146
|
+
"noUselessTernary": "error",
|
|
147
|
+
"noUselessThisAlias": "error",
|
|
148
|
+
"noUselessTypeConstraint": "error",
|
|
149
|
+
"noUselessUndefinedInitialization": "error",
|
|
150
|
+
"noVoid": "error",
|
|
151
|
+
"useArrowFunction": "error",
|
|
152
|
+
"useDateNow": "error",
|
|
153
|
+
"useFlatMap": "error",
|
|
154
|
+
"useIndexOf": "error",
|
|
155
|
+
"useLiteralKeys": "error",
|
|
156
|
+
"useNumericLiterals": "error",
|
|
157
|
+
"useOptionalChain": "error",
|
|
158
|
+
"useRegexLiterals": "error",
|
|
159
|
+
"useSimpleNumberKeys": "error",
|
|
160
|
+
"useSimplifiedLogicExpression": "error",
|
|
161
|
+
"useWhile": "error",
|
|
162
|
+
|
|
163
|
+
"noExcessiveLinesPerFunction": "off",
|
|
164
|
+
"noImplicitCoercions": "off",
|
|
165
|
+
|
|
166
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
167
|
+
"noImportantStyles": "off"
|
|
168
|
+
},
|
|
169
|
+
"correctness": {
|
|
170
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
171
|
+
|
|
172
|
+
"noConstantCondition": "error",
|
|
173
|
+
"noConstantMathMinMaxClamp": "error",
|
|
174
|
+
"noConstAssign": "error",
|
|
175
|
+
"noConstructorReturn": "error",
|
|
176
|
+
"noEmptyCharacterClassInRegex": "error",
|
|
177
|
+
"noEmptyPattern": "error",
|
|
178
|
+
"noGlobalDirnameFilename": "error",
|
|
179
|
+
"noGlobalObjectCalls": "error",
|
|
180
|
+
"noInnerDeclarations": "error",
|
|
181
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
182
|
+
"noInvalidConstructorSuper": "error",
|
|
183
|
+
"noInvalidUseBeforeDeclaration": "error",
|
|
184
|
+
"noNonoctalDecimalEscape": "error",
|
|
185
|
+
"noPrecisionLoss": "error",
|
|
186
|
+
"noRestrictedElements": "error",
|
|
187
|
+
"noSelfAssign": "error",
|
|
188
|
+
"noSetterReturn": "error",
|
|
189
|
+
"noStringCaseMismatch": "error",
|
|
190
|
+
"noSwitchDeclarations": "error",
|
|
191
|
+
"noUndeclaredVariables": "error",
|
|
192
|
+
"noUnreachable": "error",
|
|
193
|
+
"noUnreachableSuper": "error",
|
|
194
|
+
"noUnsafeFinally": "error",
|
|
195
|
+
"noUnsafeOptionalChaining": "error",
|
|
196
|
+
"noUnusedFunctionParameters": "error",
|
|
197
|
+
"noUnusedImports": {
|
|
198
|
+
"fix": "safe",
|
|
199
|
+
"level": "error"
|
|
200
|
+
},
|
|
201
|
+
"noUnusedLabels": "error",
|
|
202
|
+
"noUnusedPrivateClassMembers": "error",
|
|
203
|
+
"noUnusedVariables": "error",
|
|
204
|
+
"noVoidTypeReturn": "error",
|
|
205
|
+
"useGraphqlNamedOperations": "error",
|
|
206
|
+
"useImageSize": "error",
|
|
207
|
+
"useIsNan": "error",
|
|
208
|
+
"useParseIntRadix": "error",
|
|
209
|
+
"useSingleJsDocAsterisk": "error",
|
|
210
|
+
"useValidForDirection": "error",
|
|
211
|
+
"useValidTypeof": "error",
|
|
212
|
+
"useYield": "error",
|
|
213
|
+
|
|
214
|
+
"noNodejsModules": "off",
|
|
215
|
+
"noPrivateImports": "off",
|
|
216
|
+
"noProcessGlobal": "off",
|
|
217
|
+
"noUndeclaredDependencies": "off",
|
|
218
|
+
"useImportExtensions": "off",
|
|
219
|
+
"useUniqueElementIds": "off",
|
|
220
|
+
|
|
221
|
+
/** ------ Project rules use Scanner and are too slow (https://biomejs.dev/linter/domains/#project-rules) ------ **/
|
|
222
|
+
"useJsonImportAttributes": "off",
|
|
223
|
+
|
|
224
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
225
|
+
"noInvalidDirectionInLinearGradient": "error",
|
|
226
|
+
"noInvalidGridAreas": "error",
|
|
227
|
+
"noInvalidPositionAtImportRule": "error",
|
|
228
|
+
"noMissingVarFunction": "error",
|
|
229
|
+
"noUnknownFunction": "error",
|
|
230
|
+
"noUnknownMediaFeatureName": "error",
|
|
231
|
+
"noUnknownProperty": "error",
|
|
232
|
+
"noUnknownPseudoClass": "error",
|
|
233
|
+
"noUnknownPseudoElement": "error",
|
|
234
|
+
"noUnknownTypeSelector": "error",
|
|
235
|
+
"noUnknownUnit": "error",
|
|
236
|
+
"noUnmatchableAnbSelector": "error"
|
|
237
|
+
},
|
|
238
|
+
"nursery": {
|
|
239
|
+
"noDuplicateDependencies": "error",
|
|
240
|
+
"noEmptySource": "error",
|
|
241
|
+
"noShadow": "error",
|
|
242
|
+
"noUnusedExpressions": "error",
|
|
243
|
+
"noUselessUndefined": "error",
|
|
244
|
+
"useConsistentArrowReturn": "error",
|
|
245
|
+
"useDeprecatedDate": "error",
|
|
246
|
+
"useMaxParams": "error",
|
|
247
|
+
|
|
248
|
+
"noJsxLiterals": "off",
|
|
249
|
+
"noUselessCatchBinding": "off",
|
|
250
|
+
"noUnnecessaryConditions": "off",
|
|
251
|
+
"useExplicitType": "off",
|
|
252
|
+
"useSortedClasses": {
|
|
253
|
+
"fix": "safe",
|
|
254
|
+
"level": "error",
|
|
255
|
+
"options": {
|
|
256
|
+
"attributes": ["className"],
|
|
257
|
+
"functions": ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
|
|
261
|
+
/** ------ Project rules use Scanner and are too slow (https://biomejs.dev/linter/domains/#project-rules) ------ **/
|
|
262
|
+
"noDeprecatedImports": "off",
|
|
263
|
+
"noFloatingPromises": "off",
|
|
264
|
+
"noMisusedPromises": "off",
|
|
265
|
+
"noUnresolvedImports": "off",
|
|
266
|
+
"noImportCycles": "off",
|
|
267
|
+
"useExhaustiveSwitchCases": "off"
|
|
268
|
+
},
|
|
269
|
+
"performance": {
|
|
270
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
271
|
+
|
|
272
|
+
"noAccumulatingSpread": "error",
|
|
273
|
+
"noBarrelFile": "error",
|
|
274
|
+
"noDelete": "error",
|
|
275
|
+
"noDynamicNamespaceImportAccess": "error",
|
|
276
|
+
"noNamespaceImport": "error",
|
|
277
|
+
"noUnwantedPolyfillio": "error",
|
|
278
|
+
"useGoogleFontPreconnect": "error",
|
|
279
|
+
"useTopLevelRegex": "error",
|
|
280
|
+
|
|
281
|
+
"noAwaitInLoops": "off",
|
|
282
|
+
"noReExportAll": "off"
|
|
283
|
+
},
|
|
284
|
+
"security": {
|
|
285
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
286
|
+
|
|
287
|
+
"noBlankTarget": "error",
|
|
288
|
+
"noDangerouslySetInnerHtml": "error",
|
|
289
|
+
"noDangerouslySetInnerHtmlWithChildren": "error",
|
|
290
|
+
"noGlobalEval": "error",
|
|
291
|
+
|
|
292
|
+
"noSecrets": "off"
|
|
293
|
+
},
|
|
294
|
+
"style": {
|
|
295
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
296
|
+
|
|
297
|
+
"noDoneCallback": "error",
|
|
298
|
+
"noEnum": "error",
|
|
299
|
+
"noExportedImports": "error",
|
|
300
|
+
"noInferrableTypes": "error",
|
|
301
|
+
"noMagicNumbers": "error",
|
|
302
|
+
"noNamespace": "error",
|
|
303
|
+
"noNegationElse": "error",
|
|
304
|
+
"noNestedTernary": "error",
|
|
305
|
+
"noNonNullAssertion": "error",
|
|
306
|
+
"noParameterAssign": "error",
|
|
307
|
+
"noParameterProperties": "error",
|
|
308
|
+
"noRestrictedGlobals": "error",
|
|
309
|
+
"noRestrictedImports": "error",
|
|
310
|
+
"noRestrictedTypes": "error",
|
|
311
|
+
"noShoutyConstants": "error",
|
|
312
|
+
"noSubstr": "error",
|
|
313
|
+
"noUnusedTemplateLiteral": "error",
|
|
314
|
+
"noUselessElse": "error",
|
|
315
|
+
"noYodaExpression": "error",
|
|
316
|
+
"useArrayLiterals": "error",
|
|
317
|
+
"useAsConstAssertion": "error",
|
|
318
|
+
"useAtIndex": "error",
|
|
319
|
+
"useBlockStatements": "error",
|
|
320
|
+
"useCollapsedElseIf": "error",
|
|
321
|
+
"useCollapsedIf": "error",
|
|
322
|
+
"useConsistentArrayType": "error",
|
|
323
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
324
|
+
"useConsistentMemberAccessibility": "error",
|
|
325
|
+
"useConsistentObjectDefinitions": "error",
|
|
326
|
+
"useConsistentTypeDefinitions": {
|
|
327
|
+
"level": "error",
|
|
328
|
+
"options": {
|
|
329
|
+
"style": "type"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"useConst": "error",
|
|
333
|
+
"useDefaultParameterLast": "error",
|
|
334
|
+
"useDefaultSwitchClause": "error",
|
|
335
|
+
"useDeprecatedReason": "error",
|
|
336
|
+
"useEnumInitializers": "error",
|
|
337
|
+
"useExponentiationOperator": "error",
|
|
338
|
+
"useExportType": "error",
|
|
339
|
+
"useFilenamingConvention": {
|
|
340
|
+
"level": "error",
|
|
341
|
+
"options": {
|
|
342
|
+
"requireAscii": true,
|
|
343
|
+
"filenameCases": ["kebab-case"]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"useForOf": "error",
|
|
347
|
+
"useFragmentSyntax": "error",
|
|
348
|
+
"useGraphqlNamingConvention": "error",
|
|
349
|
+
"useGroupedAccessorPairs": "error",
|
|
350
|
+
"useImportType": "error",
|
|
351
|
+
"useLiteralEnumMembers": "error",
|
|
352
|
+
"useNodeAssertStrict": "error",
|
|
353
|
+
"useNodejsImportProtocol": "error",
|
|
354
|
+
"useNumberNamespace": "error",
|
|
355
|
+
"useNumericSeparators": "error",
|
|
356
|
+
"useObjectSpread": "error",
|
|
357
|
+
"useReadonlyClassProperties": "error",
|
|
358
|
+
"useSelfClosingElements": "error",
|
|
359
|
+
"useShorthandAssign": "error",
|
|
360
|
+
"useShorthandFunctionType": "error",
|
|
361
|
+
"useSymbolDescription": "error",
|
|
362
|
+
"useTemplate": "error",
|
|
363
|
+
"useThrowNewError": "error",
|
|
364
|
+
"useThrowOnlyError": "error",
|
|
365
|
+
"useTrimStartEnd": "error",
|
|
366
|
+
"useUnifiedTypeSignatures": "error",
|
|
367
|
+
|
|
368
|
+
"noCommonJs": "off",
|
|
369
|
+
"noDefaultExport": "off",
|
|
370
|
+
"noImplicitBoolean": "off",
|
|
371
|
+
"noProcessEnv": "off",
|
|
372
|
+
"useComponentExportOnlyModules": "off",
|
|
373
|
+
"useConsistentCurlyBraces": "off",
|
|
374
|
+
"useExplicitLengthCheck": "off",
|
|
375
|
+
"useExportsLast": "off",
|
|
376
|
+
"useNamingConvention": "off",
|
|
377
|
+
"useSingleVarDeclarator": "off",
|
|
378
|
+
|
|
379
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
380
|
+
"noDescendingSpecificity": "error",
|
|
381
|
+
"noValueAtRule": "error"
|
|
382
|
+
},
|
|
383
|
+
"suspicious": {
|
|
384
|
+
/** ------------------------ JavaScript Rules ------------------------ **/
|
|
385
|
+
|
|
386
|
+
"noAlert": "error",
|
|
387
|
+
"noApproximativeNumericConstant": "error",
|
|
388
|
+
"noAssignInExpressions": "error",
|
|
389
|
+
"noAsyncPromiseExecutor": "error",
|
|
390
|
+
"noBiomeFirstException": "error",
|
|
391
|
+
"noBitwiseOperators": "error",
|
|
392
|
+
"noCatchAssign": "error",
|
|
393
|
+
"noClassAssign": "error",
|
|
394
|
+
"noCommentText": "error",
|
|
395
|
+
"noCompareNegZero": "error",
|
|
396
|
+
"noConfusingLabels": "error",
|
|
397
|
+
"noConfusingVoidType": "error",
|
|
398
|
+
"noConsole": "error",
|
|
399
|
+
"noConstantBinaryExpressions": "error",
|
|
400
|
+
"noConstEnum": "error",
|
|
401
|
+
"noControlCharactersInRegex": "error",
|
|
402
|
+
"noDebugger": "error",
|
|
403
|
+
"noDocumentCookie": "error",
|
|
404
|
+
"noDoubleEquals": "error",
|
|
405
|
+
"noDuplicateCase": "error",
|
|
406
|
+
"noDuplicateClassMembers": "error",
|
|
407
|
+
"noDuplicateElseIf": "error",
|
|
408
|
+
"noDuplicateFields": "error",
|
|
409
|
+
"noDuplicateObjectKeys": "error",
|
|
410
|
+
"noDuplicateParameters": "error",
|
|
411
|
+
"noDuplicateTestHooks": "error",
|
|
412
|
+
"noEmptyBlockStatements": "error",
|
|
413
|
+
"noEmptyInterface": "error",
|
|
414
|
+
"noEvolvingTypes": "error",
|
|
415
|
+
"noExplicitAny": "error",
|
|
416
|
+
"noExportsInTest": "error",
|
|
417
|
+
"noExtraNonNullAssertion": "error",
|
|
418
|
+
"noFallthroughSwitchClause": "error",
|
|
419
|
+
"noFocusedTests": "error",
|
|
420
|
+
"noFunctionAssign": "error",
|
|
421
|
+
"noGlobalAssign": "error",
|
|
422
|
+
"noGlobalIsFinite": "error",
|
|
423
|
+
"noGlobalIsNan": "error",
|
|
424
|
+
"noImplicitAnyLet": "error",
|
|
425
|
+
"noImportAssign": "error",
|
|
426
|
+
"noIrregularWhitespace": "error",
|
|
427
|
+
"noLabelVar": "error",
|
|
428
|
+
"noMisleadingCharacterClass": "error",
|
|
429
|
+
"noMisleadingInstantiator": "error",
|
|
430
|
+
"noMisplacedAssertion": "error",
|
|
431
|
+
"noMisrefactoredShorthandAssign": "error",
|
|
432
|
+
"noOctalEscape": "error",
|
|
433
|
+
"noPrototypeBuiltins": "error",
|
|
434
|
+
"noQuickfixBiome": "error",
|
|
435
|
+
"noRedeclare": "error",
|
|
436
|
+
"noRedundantUseStrict": "error",
|
|
437
|
+
"noSelfCompare": "error",
|
|
438
|
+
"noShadowRestrictedNames": "error",
|
|
439
|
+
"noSkippedTests": "error",
|
|
440
|
+
"noSparseArray": "error",
|
|
441
|
+
"noTemplateCurlyInString": "error",
|
|
442
|
+
"noThenProperty": "error",
|
|
443
|
+
"noTsIgnore": "error",
|
|
444
|
+
"noUnassignedVariables": "error",
|
|
445
|
+
"noUnsafeDeclarationMerging": "error",
|
|
446
|
+
"noUnsafeNegation": "error",
|
|
447
|
+
"noUselessEscapeInString": "error",
|
|
448
|
+
"noUselessRegexBackrefs": "error",
|
|
449
|
+
"noVar": "error",
|
|
450
|
+
"noWith": "error",
|
|
451
|
+
"useAdjacentOverloadSignatures": "error",
|
|
452
|
+
"useAwait": "error",
|
|
453
|
+
"useBiomeIgnoreFolder": "error",
|
|
454
|
+
"useDefaultSwitchClauseLast": "error",
|
|
455
|
+
"useErrorMessage": "error",
|
|
456
|
+
"useGetterReturn": "error",
|
|
457
|
+
"useGoogleFontDisplay": "error",
|
|
458
|
+
"useGuardForIn": "error",
|
|
459
|
+
"useIsArray": "error",
|
|
460
|
+
"useIterableCallbackReturn": "error",
|
|
461
|
+
"useNamespaceKeyword": "error",
|
|
462
|
+
"useNumberToFixedDigitsArgument": "error",
|
|
463
|
+
"useStaticResponseMethods": "error",
|
|
464
|
+
"useStrictMode": "error",
|
|
465
|
+
"noNonNullAssertedOptionalChain": "error",
|
|
466
|
+
|
|
467
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
468
|
+
"noDuplicateAtImportRules": "error",
|
|
469
|
+
"noDuplicateCustomProperties": "error",
|
|
470
|
+
"noDuplicateFontNames": "error",
|
|
471
|
+
"noDuplicateProperties": "error",
|
|
472
|
+
"noDuplicateSelectorsKeyframeBlock": "error",
|
|
473
|
+
"noEmptyBlock": "error",
|
|
474
|
+
"noImportantInKeyframe": "error",
|
|
475
|
+
"noShorthandPropertyOverrides": "error",
|
|
476
|
+
"noUnknownAtRules": "error"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"javascript": {
|
|
481
|
+
"formatter": {
|
|
482
|
+
"arrowParentheses": "always",
|
|
483
|
+
"bracketSameLine": false,
|
|
484
|
+
"jsxQuoteStyle": "double",
|
|
485
|
+
"quoteProperties": "asNeeded",
|
|
486
|
+
"semicolons": "always",
|
|
487
|
+
"trailingCommas": "es5"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"css": {
|
|
491
|
+
"formatter": {
|
|
492
|
+
"lineEnding": "lf",
|
|
493
|
+
"lineWidth": 80,
|
|
494
|
+
"quoteStyle": "double"
|
|
495
|
+
},
|
|
496
|
+
"parser": {
|
|
497
|
+
"allowWrongLineComments": false,
|
|
498
|
+
"cssModules": false,
|
|
499
|
+
"tailwindDirectives": true
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"json": {
|
|
503
|
+
"assist": {
|
|
504
|
+
"enabled": false
|
|
505
|
+
},
|
|
506
|
+
"formatter": {
|
|
507
|
+
"enabled": true,
|
|
508
|
+
"indentStyle": "space",
|
|
509
|
+
"indentWidth": 2,
|
|
510
|
+
"lineEnding": "lf",
|
|
511
|
+
"lineWidth": 80,
|
|
512
|
+
"trailingCommas": "none"
|
|
513
|
+
},
|
|
514
|
+
"parser": {
|
|
515
|
+
"allowComments": false,
|
|
516
|
+
"allowTrailingCommas": false
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"html": {
|
|
520
|
+
"formatter": {
|
|
521
|
+
"enabled": true
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"vcs": {
|
|
525
|
+
"enabled": true,
|
|
526
|
+
"clientKind": "git",
|
|
527
|
+
"useIgnoreFile": true,
|
|
528
|
+
"defaultBranch": "main"
|
|
529
|
+
},
|
|
530
|
+
"overrides": [
|
|
531
|
+
{
|
|
532
|
+
// Configuration files that often need default exports
|
|
533
|
+
"includes": [
|
|
534
|
+
"*.config.{js,ts,mjs,cjs,mts,cts}",
|
|
535
|
+
"vite.config.*",
|
|
536
|
+
"vitest.config.*",
|
|
537
|
+
"jest.config.*",
|
|
538
|
+
"rollup.config.*",
|
|
539
|
+
"webpack.config.*",
|
|
540
|
+
"eslint.config.*",
|
|
541
|
+
"prettier.config.*",
|
|
542
|
+
"stylelint.config.*",
|
|
543
|
+
"commitlint.config.*",
|
|
544
|
+
"lint-staged.config.*",
|
|
545
|
+
"postcss.config.*",
|
|
546
|
+
"tailwind.config.*",
|
|
547
|
+
"playwright.config.*",
|
|
548
|
+
"cypress.config.*",
|
|
549
|
+
"babel.config.*",
|
|
550
|
+
"metro.config.*",
|
|
551
|
+
"next.config.*",
|
|
552
|
+
"nuxt.config.*",
|
|
553
|
+
"astro.config.*",
|
|
554
|
+
"svelte.config.*",
|
|
555
|
+
"tsup.config.*"
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
// Test files
|
|
560
|
+
"includes": ["**/*.{test,spec}.{ts,tsx,js,jsx}", "**/__tests__/**/*"],
|
|
561
|
+
"linter": {
|
|
562
|
+
"rules": {
|
|
563
|
+
"complexity": {
|
|
564
|
+
"noExcessiveCognitiveComplexity": "off"
|
|
565
|
+
},
|
|
566
|
+
"suspicious": {
|
|
567
|
+
"noConsole": "off",
|
|
568
|
+
"noExplicitAny": "off"
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
// Scripts and CLI tools
|
|
575
|
+
"includes": ["**/scripts/**/*", "**/bin/**/*", "*.mjs", "*.cjs"],
|
|
576
|
+
"linter": {
|
|
577
|
+
"rules": {
|
|
578
|
+
"suspicious": {
|
|
579
|
+
"noConsole": "off"
|
|
580
|
+
},
|
|
581
|
+
"style": {
|
|
582
|
+
"noProcessEnv": "off"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
// Storybook files
|
|
589
|
+
"includes": ["**/*.{stories,story}.{ts,tsx,js,jsx}"],
|
|
590
|
+
"linter": {
|
|
591
|
+
"rules": {
|
|
592
|
+
"correctness": {
|
|
593
|
+
"noUnusedVariables": "off",
|
|
594
|
+
"noUnusedImports": "off"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
// Environment and type definition files
|
|
601
|
+
"includes": ["**/*.d.ts", "**/{env,global,types}.d.ts"],
|
|
602
|
+
"linter": {
|
|
603
|
+
"rules": {
|
|
604
|
+
"correctness": {
|
|
605
|
+
"noUnusedVariables": "off",
|
|
606
|
+
"noUndeclaredVariables": "off"
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
// Files that should not be processed (build output, generated files, non-JS files)
|
|
613
|
+
"includes": [
|
|
614
|
+
"**/dist/**/*",
|
|
615
|
+
"**/build/**/*",
|
|
616
|
+
"**/.next/**/*",
|
|
617
|
+
"**/.nuxt/**/*",
|
|
618
|
+
"**/out/**/*",
|
|
619
|
+
"**/coverage/**/*",
|
|
620
|
+
"**/*.min.js",
|
|
621
|
+
"**/*.min.css",
|
|
622
|
+
"**/*.md",
|
|
623
|
+
"**/*.mdx",
|
|
624
|
+
"**/*.graphql",
|
|
625
|
+
"**/*.gql",
|
|
626
|
+
".env",
|
|
627
|
+
".env.*"
|
|
628
|
+
],
|
|
629
|
+
"formatter": {
|
|
630
|
+
"enabled": false
|
|
631
|
+
},
|
|
632
|
+
"linter": {
|
|
633
|
+
"enabled": false
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
// Package.json and similar JSON config files
|
|
638
|
+
"includes": [
|
|
639
|
+
"package.json",
|
|
640
|
+
"{tsconfig,jsconfig}.json",
|
|
641
|
+
"tsconfig.*.json",
|
|
642
|
+
".vscode/*.json",
|
|
643
|
+
".github/**/*.json"
|
|
644
|
+
],
|
|
645
|
+
"json": {
|
|
646
|
+
"parser": {
|
|
647
|
+
"allowComments": true,
|
|
648
|
+
"allowTrailingCommas": true
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
]
|
|
653
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": false,
|
|
3
|
+
"$schema": "../../node_modules/@biomejs/biome/configuration_schema.json",
|
|
4
|
+
"linter": {
|
|
5
|
+
"rules": {
|
|
6
|
+
"nursery": {
|
|
7
|
+
"noNextAsyncClientComponent": "error"
|
|
8
|
+
},
|
|
9
|
+
"performance": {
|
|
10
|
+
"noImgElement": "error"
|
|
11
|
+
},
|
|
12
|
+
"style": {
|
|
13
|
+
"noHeadElement": "error"
|
|
14
|
+
},
|
|
15
|
+
"suspicious": {
|
|
16
|
+
"noDocumentImportInPage": "error",
|
|
17
|
+
"noHeadImportInDocument": "error"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"overrides": [
|
|
22
|
+
{
|
|
23
|
+
"includes": ["next.config.*"],
|
|
24
|
+
"linter": {
|
|
25
|
+
"rules": {
|
|
26
|
+
"suspicious": {
|
|
27
|
+
"useAwait": "off"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|