ultracite 7.5.7 → 7.5.9
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 +3 -49
- package/config/eslint/core/eslint.config.mjs +2 -1
- package/config/oxfmt/index.mjs +3 -0
- package/config/oxlint/core/index.mjs +3 -0
- package/config/oxlint/vitest/index.mjs +2 -1
- package/config/shared/ignores.d.mts +1 -0
- package/config/shared/ignores.jsonc +55 -0
- package/config/shared/ignores.mjs +66 -0
- package/dist/index.js +52 -56
- package/package.json +6 -3
|
@@ -1,56 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"root": false,
|
|
3
3
|
"$schema": "../../../node_modules/@biomejs/biome/configuration_schema.json",
|
|
4
|
+
"extends": ["../../shared/ignores.jsonc"],
|
|
4
5
|
"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
|
-
"!!**/bun.lock",
|
|
49
|
-
"!!**/bun.lockb",
|
|
50
|
-
"!!**/package-lock.json",
|
|
51
|
-
"!!**/yarn.lock",
|
|
52
|
-
"!!**/pnpm-lock.yaml"
|
|
53
|
-
]
|
|
6
|
+
"ignoreUnknown": true
|
|
54
7
|
},
|
|
55
8
|
"formatter": {
|
|
56
9
|
"enabled": true,
|
|
@@ -613,6 +566,7 @@
|
|
|
613
566
|
"**/dist",
|
|
614
567
|
"**/build",
|
|
615
568
|
"**/.next",
|
|
569
|
+
"**/.open-next",
|
|
616
570
|
"**/.nuxt",
|
|
617
571
|
"**/out",
|
|
618
572
|
"**/coverage",
|
|
@@ -18,6 +18,7 @@ import unicorn from "eslint-plugin-unicorn";
|
|
|
18
18
|
import unusedImports from "eslint-plugin-unused-imports";
|
|
19
19
|
import globals from "globals";
|
|
20
20
|
|
|
21
|
+
import { ignorePatterns } from "../../shared/ignores.mjs";
|
|
21
22
|
import compatRules from "./rules/compat.mjs";
|
|
22
23
|
import cypressRules from "./rules/cypress.mjs";
|
|
23
24
|
import eslintTypescriptRules from "./rules/eslint-typescript.mjs";
|
|
@@ -36,7 +37,7 @@ import unusedImportsRules from "./rules/unused-imports.mjs";
|
|
|
36
37
|
const config = [
|
|
37
38
|
importX.flatConfigs.typescript,
|
|
38
39
|
{
|
|
39
|
-
ignores:
|
|
40
|
+
ignores: ignorePatterns,
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
files: [
|
package/config/oxfmt/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { defineConfig } from "oxfmt";
|
|
2
2
|
|
|
3
|
+
import { ignorePatterns } from "../shared/ignores.mjs";
|
|
4
|
+
|
|
3
5
|
export default defineConfig({
|
|
4
6
|
arrowParens: "always",
|
|
5
7
|
bracketSameLine: false,
|
|
6
8
|
bracketSpacing: true,
|
|
7
9
|
endOfLine: "lf",
|
|
10
|
+
ignorePatterns,
|
|
8
11
|
jsxSingleQuote: false,
|
|
9
12
|
printWidth: 80,
|
|
10
13
|
quoteProps: "as-needed",
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { defineConfig } from "oxlint";
|
|
2
2
|
|
|
3
|
+
import { ignorePatterns } from "../../shared/ignores.mjs";
|
|
4
|
+
|
|
3
5
|
export default defineConfig({
|
|
4
6
|
env: {
|
|
5
7
|
browser: true,
|
|
6
8
|
},
|
|
9
|
+
ignorePatterns,
|
|
7
10
|
overrides: [
|
|
8
11
|
{
|
|
9
12
|
// Shared test file overrides — framework-specific test rules
|
|
@@ -61,7 +61,8 @@ 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
|
-
|
|
64
|
+
// Disabled: conflicts with prefer-describe-function-title — function refs aren't string titles (#665)
|
|
65
|
+
"vitest/valid-title": "off",
|
|
65
66
|
"vitest/warn-todo": "error",
|
|
66
67
|
|
|
67
68
|
// Disabled: mock callbacks often need empty functions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ignorePatterns: string[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Auto-generated from ignores.mjs — do not edit directly.
|
|
3
|
+
// This file exists so biome can extend it via "extends".
|
|
4
|
+
"files": {
|
|
5
|
+
"includes": [
|
|
6
|
+
"**",
|
|
7
|
+
"!!**/dist",
|
|
8
|
+
"!!**/build",
|
|
9
|
+
"!!**/out",
|
|
10
|
+
"!!**/.next",
|
|
11
|
+
"!!**/.open-next",
|
|
12
|
+
"!!**/.nuxt",
|
|
13
|
+
"!!**/.output",
|
|
14
|
+
"!!**/.svelte-kit",
|
|
15
|
+
"!!**/.vitepress/cache",
|
|
16
|
+
"!!**/.vitepress/dist",
|
|
17
|
+
"!!**/.turbo",
|
|
18
|
+
"!!**/.vercel",
|
|
19
|
+
"!!**/.netlify",
|
|
20
|
+
"!!**/.docusaurus",
|
|
21
|
+
"!!**/.cache",
|
|
22
|
+
"!!**/.parcel-cache",
|
|
23
|
+
"!!**/.vite",
|
|
24
|
+
"!!**/.astro",
|
|
25
|
+
"!!**/_astro",
|
|
26
|
+
"!!**/public/build",
|
|
27
|
+
"!!**/storybook-static",
|
|
28
|
+
"!!**/_generated",
|
|
29
|
+
"!!**/*.gen.*",
|
|
30
|
+
"!!**/*.generated.*",
|
|
31
|
+
"!!**/*.auto.*",
|
|
32
|
+
"!!**/generated",
|
|
33
|
+
"!!**/auto-generated",
|
|
34
|
+
"!!**/codegen",
|
|
35
|
+
"!!**/__generated__",
|
|
36
|
+
"!!**/graphql-types.*",
|
|
37
|
+
"!!**/schema.d.ts",
|
|
38
|
+
"!!**/schema.graphql.d.ts",
|
|
39
|
+
"!!**/*.d.ts.map",
|
|
40
|
+
"!!**/coverage",
|
|
41
|
+
"!!**/.nyc_output",
|
|
42
|
+
"!!**/.expo",
|
|
43
|
+
"!!**/.expo-shared",
|
|
44
|
+
"!!**/android/build",
|
|
45
|
+
"!!**/ios/build",
|
|
46
|
+
"!!**/DerivedData/**/*",
|
|
47
|
+
"!!**/bun.lock",
|
|
48
|
+
"!!**/bun.lockb",
|
|
49
|
+
"!!**/package-lock.json",
|
|
50
|
+
"!!**/yarn.lock",
|
|
51
|
+
"!!**/pnpm-lock.yaml",
|
|
52
|
+
"!!**/next-env.d.ts"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical ignore patterns shared across all linters and formatters.
|
|
3
|
+
*
|
|
4
|
+
* This file is the single source of truth. The prebuild script generates
|
|
5
|
+
* ignores.jsonc from this list (for biome's `extends`). Other tools
|
|
6
|
+
* (oxlint, oxfmt, eslint) import this module directly.
|
|
7
|
+
*/
|
|
8
|
+
export const ignorePatterns = [
|
|
9
|
+
// ── Build / framework output ──────────────────────────────────────
|
|
10
|
+
"**/dist",
|
|
11
|
+
"**/build",
|
|
12
|
+
"**/out",
|
|
13
|
+
"**/.next",
|
|
14
|
+
"**/.open-next",
|
|
15
|
+
"**/.nuxt",
|
|
16
|
+
"**/.output",
|
|
17
|
+
"**/.svelte-kit",
|
|
18
|
+
"**/.vitepress/cache",
|
|
19
|
+
"**/.vitepress/dist",
|
|
20
|
+
"**/.turbo",
|
|
21
|
+
"**/.vercel",
|
|
22
|
+
"**/.netlify",
|
|
23
|
+
"**/.docusaurus",
|
|
24
|
+
"**/.cache",
|
|
25
|
+
"**/.parcel-cache",
|
|
26
|
+
"**/.vite",
|
|
27
|
+
"**/.astro",
|
|
28
|
+
"**/_astro",
|
|
29
|
+
"**/public/build",
|
|
30
|
+
"**/storybook-static",
|
|
31
|
+
|
|
32
|
+
// ── Generated code ────────────────────────────────────────────────
|
|
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
|
+
|
|
46
|
+
// ── Test coverage ─────────────────────────────────────────────────
|
|
47
|
+
"**/coverage",
|
|
48
|
+
"**/.nyc_output",
|
|
49
|
+
|
|
50
|
+
// ── Mobile ────────────────────────────────────────────────────────
|
|
51
|
+
"**/.expo",
|
|
52
|
+
"**/.expo-shared",
|
|
53
|
+
"**/android/build",
|
|
54
|
+
"**/ios/build",
|
|
55
|
+
"**/DerivedData/**/*",
|
|
56
|
+
|
|
57
|
+
// ── Lock files ────────────────────────────────────────────────────
|
|
58
|
+
"**/bun.lock",
|
|
59
|
+
"**/bun.lockb",
|
|
60
|
+
"**/package-lock.json",
|
|
61
|
+
"**/yarn.lock",
|
|
62
|
+
"**/pnpm-lock.yaml",
|
|
63
|
+
|
|
64
|
+
// ── Framework type definitions ────────────────────────────────────
|
|
65
|
+
"**/next-env.d.ts",
|
|
66
|
+
];
|