ultracite 7.5.9 → 7.6.1
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/biome/core/biome.jsonc +64 -3
- package/config/biome/next/biome.jsonc +3 -0
- package/config/biome/qwik/biome.jsonc +3 -1
- package/config/biome/react/biome.jsonc +1 -0
- package/config/biome/vue/biome.jsonc +6 -1
- package/config/eslint/core/rules/import.mjs +0 -1
- package/config/eslint/react/rules/query.mjs +3 -1
- package/config/oxlint/core/index.mjs +6 -0
- package/config/oxlint/jest/index.mjs +3 -0
- package/config/oxlint/vitest/index.mjs +1 -0
- package/config/shared/ignores.mjs +3 -3
- package/dist/index.js +36 -36
- package/package.json +13 -14
- package/config/shared/ignores.jsonc +0 -55
|
@@ -1,9 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"root": false,
|
|
3
3
|
"$schema": "../../../node_modules/@biomejs/biome/configuration_schema.json",
|
|
4
|
-
"extends": ["../../shared/ignores.jsonc"],
|
|
5
4
|
"files": {
|
|
6
|
-
"ignoreUnknown": true
|
|
5
|
+
"ignoreUnknown": true,
|
|
6
|
+
// Populated by scripts/generate-dts.ts from config/shared/ignores.mjs.
|
|
7
|
+
// Inlined (rather than extended from a separate jsonc file) so the !!
|
|
8
|
+
// globs survive merge when consumers define their own files.includes —
|
|
9
|
+
// see issue #679.
|
|
10
|
+
"includes": [
|
|
11
|
+
"**",
|
|
12
|
+
"!!**/dist",
|
|
13
|
+
"!!**/build",
|
|
14
|
+
"!!**/out",
|
|
15
|
+
"!!**/.next",
|
|
16
|
+
"!!**/.open-next",
|
|
17
|
+
"!!**/.nuxt",
|
|
18
|
+
"!!**/.output",
|
|
19
|
+
"!!**/.svelte-kit",
|
|
20
|
+
"!!**/.vitepress/cache",
|
|
21
|
+
"!!**/.vitepress/dist",
|
|
22
|
+
"!!**/.turbo",
|
|
23
|
+
"!!**/.vercel",
|
|
24
|
+
"!!**/.netlify",
|
|
25
|
+
"!!**/.docusaurus",
|
|
26
|
+
"!!**/.cache",
|
|
27
|
+
"!!**/.parcel-cache",
|
|
28
|
+
"!!**/.vite",
|
|
29
|
+
"!!**/.astro",
|
|
30
|
+
"!!**/_astro",
|
|
31
|
+
"!!**/public/build",
|
|
32
|
+
"!!**/storybook-static",
|
|
33
|
+
"!!**/_generated",
|
|
34
|
+
"!!**/*.gen.*",
|
|
35
|
+
"!!**/*.generated.*",
|
|
36
|
+
"!!**/*.auto.*",
|
|
37
|
+
"!!**/generated",
|
|
38
|
+
"!!**/auto-generated",
|
|
39
|
+
"!!**/codegen",
|
|
40
|
+
"!!**/__generated__",
|
|
41
|
+
"!!**/graphql-types.*",
|
|
42
|
+
"!!**/schema.d.ts",
|
|
43
|
+
"!!**/schema.graphql.d.ts",
|
|
44
|
+
"!!**/*.d.ts.map",
|
|
45
|
+
"!!**/coverage",
|
|
46
|
+
"!!**/.nyc_output",
|
|
47
|
+
"!!**/.expo",
|
|
48
|
+
"!!**/.expo-shared",
|
|
49
|
+
"!!**/android/build",
|
|
50
|
+
"!!**/ios/build",
|
|
51
|
+
"!!**/DerivedData/**/*",
|
|
52
|
+
"!!**/bun.lock",
|
|
53
|
+
"!!**/bun.lockb",
|
|
54
|
+
"!!**/package-lock.json",
|
|
55
|
+
"!!**/yarn.lock",
|
|
56
|
+
"!!**/pnpm-lock.yaml",
|
|
57
|
+
"!!**/next-env.d.ts"
|
|
58
|
+
]
|
|
7
59
|
},
|
|
8
60
|
"formatter": {
|
|
9
61
|
"enabled": true,
|
|
@@ -100,6 +152,7 @@
|
|
|
100
152
|
"noStaticOnlyClass": "error",
|
|
101
153
|
"noThisInStatic": "error",
|
|
102
154
|
"noUselessCatch": "error",
|
|
155
|
+
"noUselessCatchBinding": "error",
|
|
103
156
|
"noUselessConstructor": "error",
|
|
104
157
|
"noUselessContinue": "error",
|
|
105
158
|
"noUselessEmptyExport": "error",
|
|
@@ -114,6 +167,7 @@
|
|
|
114
167
|
"noUselessTernary": "error",
|
|
115
168
|
"noUselessThisAlias": "error",
|
|
116
169
|
"noUselessTypeConstraint": "error",
|
|
170
|
+
"noUselessUndefined": "error",
|
|
117
171
|
"noUselessUndefinedInitialization": "error",
|
|
118
172
|
"noVoid": "error",
|
|
119
173
|
"useArrowFunction": "error",
|
|
@@ -130,6 +184,7 @@
|
|
|
130
184
|
|
|
131
185
|
"noExcessiveLinesPerFunction": "off",
|
|
132
186
|
"noImplicitCoercions": "off",
|
|
187
|
+
"useMaxParams": "off",
|
|
133
188
|
|
|
134
189
|
/** ------------------------ CSS Rules ------------------------ **/
|
|
135
190
|
"noImportantStyles": "off"
|
|
@@ -270,6 +325,7 @@
|
|
|
270
325
|
},
|
|
271
326
|
"useCollapsedElseIf": "error",
|
|
272
327
|
"useCollapsedIf": "error",
|
|
328
|
+
"useConsistentArrowReturn": "error",
|
|
273
329
|
"useConsistentArrayType": "error",
|
|
274
330
|
"useConsistentBuiltinInstantiation": "error",
|
|
275
331
|
"useConsistentMemberAccessibility": "error",
|
|
@@ -319,6 +375,7 @@
|
|
|
319
375
|
"noCommonJs": "off",
|
|
320
376
|
"noDefaultExport": "off",
|
|
321
377
|
"noImplicitBoolean": "off",
|
|
378
|
+
"noJsxLiterals": "off",
|
|
322
379
|
"noMagicNumbers": "off",
|
|
323
380
|
"noProcessEnv": "off",
|
|
324
381
|
"useComponentExportOnlyModules": "off",
|
|
@@ -409,6 +466,7 @@
|
|
|
409
466
|
"useStaticResponseMethods": "error",
|
|
410
467
|
"useStrictMode": "error",
|
|
411
468
|
"noNonNullAssertedOptionalChain": "error",
|
|
469
|
+
"noUnusedExpressions": "error",
|
|
412
470
|
|
|
413
471
|
"noConsole": "off",
|
|
414
472
|
|
|
@@ -425,7 +483,10 @@
|
|
|
425
483
|
"noEmptyBlock": "error",
|
|
426
484
|
"noImportantInKeyframe": "error",
|
|
427
485
|
"noShorthandPropertyOverrides": "error",
|
|
428
|
-
"noUnknownAtRules": "error"
|
|
486
|
+
"noUnknownAtRules": "error",
|
|
487
|
+
|
|
488
|
+
/** ------------------------ CSS Rules ------------------------ **/
|
|
489
|
+
"noEmptySource": "error"
|
|
429
490
|
}
|
|
430
491
|
}
|
|
431
492
|
},
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
"linter": {
|
|
14
14
|
"rules": {
|
|
15
15
|
"correctness": {
|
|
16
|
-
"noUnusedImports": "off"
|
|
16
|
+
"noUnusedImports": "off",
|
|
17
|
+
"noVueDataObjectDeclaration": "error",
|
|
18
|
+
"noVueDuplicateKeys": "error",
|
|
19
|
+
"noVueReservedKeys": "error",
|
|
20
|
+
"noVueReservedProps": "error",
|
|
21
|
+
"noVueSetupPropsReactivityLoss": "error"
|
|
17
22
|
},
|
|
18
23
|
"suspicious": {
|
|
19
24
|
"noReactSpecificProps": "error"
|
|
@@ -373,6 +373,8 @@ export default defineConfig({
|
|
|
373
373
|
"typescript/no-unnecessary-type-assertion": "error",
|
|
374
374
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
375
375
|
"typescript/no-unnecessary-type-conversion": "error",
|
|
376
|
+
"typescript/no-unnecessary-qualifier": "error",
|
|
377
|
+
"typescript/no-unnecessary-type-parameters": "error",
|
|
376
378
|
"typescript/no-unsafe-argument": "error",
|
|
377
379
|
"typescript/no-unsafe-assignment": "error",
|
|
378
380
|
"typescript/no-unsafe-call": "error",
|
|
@@ -383,6 +385,7 @@ export default defineConfig({
|
|
|
383
385
|
"typescript/no-unsafe-return": "error",
|
|
384
386
|
"typescript/no-unsafe-type-assertion": "error",
|
|
385
387
|
"typescript/no-unsafe-unary-minus": "error",
|
|
388
|
+
"typescript/no-useless-default-assignment": "error",
|
|
386
389
|
"typescript/no-useless-empty-export": "error",
|
|
387
390
|
"typescript/no-var-requires": "off",
|
|
388
391
|
"typescript/no-wrapper-object-types": "error",
|
|
@@ -400,6 +403,7 @@ export default defineConfig({
|
|
|
400
403
|
"typescript/prefer-nullish-coalescing": "error",
|
|
401
404
|
"typescript/prefer-promise-reject-errors": "error",
|
|
402
405
|
"typescript/prefer-readonly": "error",
|
|
406
|
+
"typescript/prefer-readonly-parameter-types": "off",
|
|
403
407
|
"typescript/prefer-reduce-type-parameter": "error",
|
|
404
408
|
"typescript/prefer-regexp-exec": "error",
|
|
405
409
|
"typescript/prefer-return-this-type": "error",
|
|
@@ -413,6 +417,7 @@ export default defineConfig({
|
|
|
413
417
|
"typescript/restrict-template-expressions": "error",
|
|
414
418
|
"typescript/return-await": "error",
|
|
415
419
|
"typescript/strict-boolean-expressions": "error",
|
|
420
|
+
"typescript/strict-void-return": "error",
|
|
416
421
|
"typescript/switch-exhaustiveness-check": "error",
|
|
417
422
|
"typescript/triple-slash-reference": "error",
|
|
418
423
|
"typescript/unbound-method": "error",
|
|
@@ -420,6 +425,7 @@ export default defineConfig({
|
|
|
420
425
|
"typescript/use-unknown-in-catch-callback-variable": "error",
|
|
421
426
|
|
|
422
427
|
// ── unicorn ────────────────────────────────────────────────────────
|
|
428
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
423
429
|
"unicorn/catch-error-name": "error",
|
|
424
430
|
"unicorn/consistent-assert": "error",
|
|
425
431
|
"unicorn/consistent-date-clone": "error",
|
|
@@ -40,10 +40,12 @@ export default defineConfig({
|
|
|
40
40
|
"jest/prefer-called-with": "error",
|
|
41
41
|
"jest/prefer-comparison-matcher": "error",
|
|
42
42
|
"jest/prefer-each": "error",
|
|
43
|
+
"jest/prefer-ending-with-an-expect": "error",
|
|
43
44
|
"jest/prefer-equality-matcher": "error",
|
|
44
45
|
"jest/prefer-expect-resolves": "error",
|
|
45
46
|
"jest/prefer-hooks-in-order": "error",
|
|
46
47
|
"jest/prefer-hooks-on-top": "error",
|
|
48
|
+
"jest/prefer-importing-jest-globals": "error",
|
|
47
49
|
"jest/prefer-jest-mocked": "error",
|
|
48
50
|
"jest/prefer-lowercase-title": "error",
|
|
49
51
|
"jest/prefer-mock-promise-shorthand": "error",
|
|
@@ -61,6 +63,7 @@ export default defineConfig({
|
|
|
61
63
|
"jest/require-top-level-describe": "error",
|
|
62
64
|
"jest/valid-describe-callback": "error",
|
|
63
65
|
"jest/valid-expect": "error",
|
|
66
|
+
"jest/valid-expect-in-promise": "error",
|
|
64
67
|
"jest/valid-title": "error",
|
|
65
68
|
|
|
66
69
|
// Disabled: bun:test mock.module() must be called at top level
|
|
@@ -61,6 +61,7 @@ export default defineConfig({
|
|
|
61
61
|
"vitest/require-top-level-describe": "error",
|
|
62
62
|
"vitest/valid-describe-callback": "error",
|
|
63
63
|
"vitest/valid-expect": "error",
|
|
64
|
+
"vitest/valid-expect-in-promise": "error",
|
|
64
65
|
// Disabled: conflicts with prefer-describe-function-title — function refs aren't string titles (#665)
|
|
65
66
|
"vitest/valid-title": "off",
|
|
66
67
|
"vitest/warn-todo": "error",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Canonical ignore patterns shared across all linters and formatters.
|
|
3
3
|
*
|
|
4
|
-
* This file is the single source of truth. The prebuild script
|
|
5
|
-
*
|
|
6
|
-
* (oxlint, oxfmt, eslint) import this module directly.
|
|
4
|
+
* This file is the single source of truth. The prebuild script syncs these
|
|
5
|
+
* patterns into biome/core's files.includes (as `!!`-prefixed globs). Other
|
|
6
|
+
* tools (oxlint, oxfmt, eslint) import this module directly.
|
|
7
7
|
*/
|
|
8
8
|
export const ignorePatterns = [
|
|
9
9
|
// ── Build / framework output ──────────────────────────────────────
|