ultracite 7.4.3 → 7.5.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.
@@ -44,7 +44,12 @@
44
44
  "!!**/.expo-shared",
45
45
  "!!**/android/build",
46
46
  "!!**/ios/build",
47
- "!!**/DerivedData/**/*"
47
+ "!!**/DerivedData/**/*",
48
+ "!!**/bun.lock",
49
+ "!!**/bun.lockb",
50
+ "!!**/package-lock.json",
51
+ "!!**/yarn.lock",
52
+ "!!**/pnpm-lock.yaml"
48
53
  ]
49
54
  },
50
55
  "formatter": {
@@ -24,6 +24,13 @@ const overrideRules = {
24
24
  // Too strict for general use
25
25
  "vitest/prefer-expect-assertions": "off",
26
26
  "vitest/prefer-importing-vitest-globals": "off",
27
+
28
+ // Conflicts with prefer-to-be-truthy and prefer-to-be-falsy (#645)
29
+ // prefer-strict-boolean-matchers: use toBe(true)/toBe(false)
30
+ // prefer-to-be-truthy/falsy: use toBeTruthy()/toBeFalsy()
31
+ "vitest/prefer-strict-boolean-matchers": "off",
32
+
33
+ // Too strict for general use
27
34
  "vitest/prefer-to-have-been-called-times": "off",
28
35
 
29
36
  // Too strict — matching oxlint jest disabled rules
@@ -0,0 +1,22 @@
1
+ import { defineConfig } from "oxfmt";
2
+
3
+ export default defineConfig({
4
+ arrowParens: "always",
5
+ bracketSameLine: false,
6
+ bracketSpacing: true,
7
+ endOfLine: "lf",
8
+ jsxSingleQuote: false,
9
+ printWidth: 80,
10
+ quoteProps: "as-needed",
11
+ semi: true,
12
+ singleQuote: false,
13
+ sortImports: {
14
+ ignoreCase: true,
15
+ newlinesBetween: true,
16
+ order: "asc",
17
+ },
18
+ sortPackageJson: true,
19
+ tabWidth: 2,
20
+ trailingComma: "es5",
21
+ useTabs: false,
22
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -1,6 +1,34 @@
1
- {
2
- "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
- "plugins": [
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ categories: {
5
+ correctness: "error",
6
+ pedantic: "error",
7
+ perf: "error",
8
+ restriction: "error",
9
+ style: "error",
10
+ suspicious: "error",
11
+ },
12
+ env: {
13
+ browser: true,
14
+ },
15
+ overrides: [
16
+ {
17
+ // Shared test file overrides — framework-specific test rules
18
+ // are in separate jest/ and vitest/ configs to avoid conflicts.
19
+ files: [
20
+ "**/*.{test,spec}.{ts,tsx,js,jsx}",
21
+ "**/__tests__/**/*.{ts,tsx,js,jsx}",
22
+ ],
23
+ rules: {
24
+ // Disabled: mock callbacks often need empty functions
25
+ "no-empty-function": "off",
26
+ // Disabled: mock factories use Promise.resolve/reject (conflicts with require-await)
27
+ "promise/prefer-await-to-then": "off",
28
+ },
29
+ },
30
+ ],
31
+ plugins: [
4
32
  "eslint",
5
33
  "typescript",
6
34
  "unicorn",
@@ -8,20 +36,9 @@
8
36
  "import",
9
37
  "jsdoc",
10
38
  "node",
11
- "promise"
39
+ "promise",
12
40
  ],
13
- "env": {
14
- "browser": true
15
- },
16
- "categories": {
17
- "correctness": "error",
18
- "perf": "error",
19
- "restriction": "error",
20
- "suspicious": "error",
21
- "pedantic": "error",
22
- "style": "error"
23
- },
24
- "rules": {
41
+ rules: {
25
42
  "no-await-in-loop": "off",
26
43
  "max-lines-per-function": "off",
27
44
  "no-implicit-coercion": "off",
@@ -35,8 +52,8 @@
35
52
  "error",
36
53
  "expression",
37
54
  {
38
- "allowArrowFunctions": true
39
- }
55
+ allowArrowFunctions: true,
56
+ },
40
57
  ],
41
58
  "arrow-body-style": ["error", "as-needed"],
42
59
  "max-depth": "off",
@@ -48,9 +65,9 @@
48
65
  "init-declarations": "off",
49
66
  // Rely on oxfmt `experimentalSortImports` instead
50
67
  "sort-imports": "off",
51
- "no-duplicate-imports": ["error", { "allowSeparateTypeImports": true }],
68
+ "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
52
69
  // Avoid conflict with typescript/no-floating-promises
53
- "no-void": ["error", { "allowAsStatement": true }],
70
+ "no-void": ["error", { allowAsStatement: true }],
54
71
 
55
72
  "import/no-relative-parent-imports": "off",
56
73
  "import/no-default-export": "off",
@@ -81,7 +98,7 @@
81
98
  "unicorn/no-null": "off",
82
99
  "unicorn/prefer-top-level-await": "off",
83
100
  "unicorn/prefer-string-raw": "off",
84
- "unicorn/text-encoding-identifier-case": ["error", { "withDash": true }],
101
+ "unicorn/text-encoding-identifier-case": ["error", { withDash: true }],
85
102
 
86
103
  "typescript/explicit-module-boundary-types": "off",
87
104
  "typescript/no-require-imports": "off",
@@ -97,22 +114,6 @@
97
114
  "oxc/no-optional-chaining": "off",
98
115
 
99
116
  "promise/catch-or-return": "off",
100
- "promise/always-return": "off"
117
+ "promise/always-return": "off",
101
118
  },
102
- "overrides": [
103
- {
104
- // Shared test file overrides — framework-specific test rules
105
- // are in separate jest/ and vitest/ configs to avoid conflicts.
106
- "files": [
107
- "**/*.{test,spec}.{ts,tsx,js,jsx}",
108
- "**/__tests__/**/*.{ts,tsx,js,jsx}"
109
- ],
110
- "rules": {
111
- // Disabled: mock callbacks often need empty functions
112
- "no-empty-function": "off",
113
- // Disabled: mock factories use Promise.resolve/reject (conflicts with require-await)
114
- "promise/prefer-await-to-then": "off"
115
- }
116
- }
117
- ]
118
- }
119
+ });
@@ -1,13 +1,14 @@
1
- {
2
- "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
- "overrides": [
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ overrides: [
4
5
  {
5
- "files": [
6
+ files: [
6
7
  "**/*.{test,spec}.{ts,tsx,js,jsx}",
7
- "**/__tests__/**/*.{ts,tsx,js,jsx}"
8
+ "**/__tests__/**/*.{ts,tsx,js,jsx}",
8
9
  ],
9
- "plugins": ["jest"],
10
- "rules": {
10
+ plugins: ["jest"],
11
+ rules: {
11
12
  // Disabled: bun:test mock.module() must be called at top level
12
13
  "jest/require-hook": "off",
13
14
  // Disabled: mock factories use conditionals for path-based routing
@@ -67,8 +68,8 @@
67
68
  "jest/require-top-level-describe": "error",
68
69
  "jest/valid-describe-callback": "error",
69
70
  "jest/valid-expect": "error",
70
- "jest/valid-title": "error"
71
- }
72
- }
73
- ]
74
- }
71
+ "jest/valid-title": "error",
72
+ },
73
+ },
74
+ ],
75
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ plugins: ["nextjs"],
5
+ rules: {},
6
+ overrides: [
7
+ {
8
+ files: ["**/next-env.d.ts"],
9
+ rules: {
10
+ "import/no-unassigned-import": "off",
11
+ },
12
+ },
13
+ ],
14
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -1,7 +1,8 @@
1
- {
2
- "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
- "plugins": ["react", "react-perf", "jsx-a11y"],
4
- "rules": {
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ plugins: ["react", "react-perf", "jsx-a11y"],
5
+ rules: {
5
6
  "react/only-export-components": "off",
6
7
  "react/jsx-boolean-value": "off",
7
8
  "react/react-in-jsx-scope": "off",
@@ -15,6 +16,6 @@
15
16
  "react-perf/jsx-no-new-object-as-prop": "off",
16
17
  "react-perf/jsx-no-new-array-as-prop": "off",
17
18
 
18
- "jsx-a11y/no-autofocus": "off"
19
- }
20
- }
19
+ "jsx-a11y/no-autofocus": "off",
20
+ },
21
+ });
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ overrides: [
5
+ {
6
+ files: ["**/routeTree.gen.ts"],
7
+ rules: {
8
+ "unicorn/filename-case": "off",
9
+ "unicorn/no-abusive-eslint-disable": "off",
10
+ },
11
+ },
12
+ ],
13
+ rules: {},
14
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ rules: {},
5
+ });
@@ -1,13 +1,14 @@
1
- {
2
- "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
- "overrides": [
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ overrides: [
4
5
  {
5
- "files": [
6
+ files: [
6
7
  "**/*.{test,spec}.{ts,tsx,js,jsx}",
7
- "**/__tests__/**/*.{ts,tsx,js,jsx}"
8
+ "**/__tests__/**/*.{ts,tsx,js,jsx}",
8
9
  ],
9
- "plugins": ["vitest"],
10
- "rules": {
10
+ plugins: ["vitest"],
11
+ rules: {
11
12
  // Disabled: mock callbacks often need empty functions
12
13
  "no-empty-function": "off",
13
14
  // Disabled: mock factories use Promise.resolve/reject (conflicts with require-await)
@@ -49,6 +50,10 @@
49
50
  "vitest/prefer-mock-promise-shorthand": "error",
50
51
  "vitest/prefer-spy-on": "error",
51
52
  "vitest/prefer-strict-equal": "error",
53
+ // Conflicts with prefer-to-be-truthy and prefer-to-be-falsy (#645)
54
+ // prefer-strict-boolean-matchers: use toBe(true)/toBe(false)
55
+ // prefer-to-be-truthy/falsy: use toBeTruthy()/toBeFalsy()
56
+ "vitest/prefer-strict-boolean-matchers": "off",
52
57
  "vitest/prefer-to-be": "error",
53
58
  "vitest/prefer-to-be-falsy": "error",
54
59
  "vitest/prefer-to-be-object": "error",
@@ -62,8 +67,8 @@
62
67
  "vitest/valid-describe-callback": "error",
63
68
  "vitest/valid-expect": "error",
64
69
  "vitest/valid-title": "error",
65
- "vitest/warn-todo": "error"
66
- }
67
- }
68
- ]
69
- }
70
+ "vitest/warn-todo": "error",
71
+ },
72
+ },
73
+ ],
74
+ });
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ export default defineConfig({
4
+ plugins: ["vue"],
5
+ rules: {},
6
+ });
@@ -0,0 +1 @@
1
+ <svg fill="none" height="96" viewBox="0 0 96 96" width="96" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="48" x2="48" y1="32.0356" y2="44.2862"><stop offset=".134" stop-opacity="0"/><stop offset=".873"/></linearGradient><linearGradient id="b" gradientUnits="userSpaceOnUse" x1="20" x2="76" y1="75.8125" y2="19.8125"><stop offset=".1" stop-color="#a16efb"/><stop offset=".9" stop-color="#0e61fa"/></linearGradient><mask id="c" height="28" maskUnits="userSpaceOnUse" width="56" x="20" y="22"><path d="m72.0066 46.4999c-.255-5.0134-2.0809-9.8196-5.2189-13.738-3.1379-3.9184-7.4289-6.7504-12.2654-8.0949-.0946-.7354-.4533-1.4115-1.0094-1.9021s-1.2715-.7625-2.0129-.7649h-7c-1.5523 0-2.8263 1.1672-3.0223 2.667-4.8365 1.3445-9.1275 4.1765-12.2655 8.0949-3.1379 3.9184-4.9636 8.7246-5.2187 13.738h-3.9935v2.6252h56v-2.6252zm-30.5692-19.0977v15.1603h2.6252v-17.5c0-.116.046-.2273.128-.3094.082-.082.1935-.1281.3094-.1281h7c.1159 0 .2274.0461.3094.1281.082.0821.128.1934.128.3094v17.5h2.6252v-15.1603c4.1127 1.3091 7.7314 3.8357 10.3774 7.2458 2.6463 3.4101 4.195 7.5429 4.4416 11.8519h-42.7631c.2466-4.309 1.7953-8.4418 4.4414-11.8519s6.2648-5.9367 10.3775-7.2458z" fill="#fff"/><path d="m56.75 32.0625v12.25h-17.5v-12.25z" fill="url(#a)"/></mask><path d="m0 0h96v96h-96z" fill="#e9e9e9"/><g mask="url(#c)"><path d="m20 19.8125h56v56h-56z" fill="url(#b)"/></g><g fill="#001d6c"><path d="m62 73.6251h-28c-1.9765-.0025-3.8875-.7081-5.3913-1.9905s-2.502-3.0584-2.8162-5.0095h-.5425c-1.6887 0-3.0625-1.3739-3.0625-3.0626v-10.5h2.625v10.5c0 .2414.196.4374.4375.4374h3.0625v1.3126c.0018 1.5078.6017 2.9534 1.6679 4.0197 1.0662 1.0662 2.5118 1.666 4.0196 1.6677h28c1.5078-.0017 2.9534-.6015 4.0197-1.6677 1.0662-1.0663 1.666-2.5119 1.6677-4.0197v-1.3126h3.0626c.1159 0 .2274-.046.3094-.128s.128-.1935.128-.3094v-10.5h2.6252v10.5c0 1.6887-1.3739 3.0626-3.0626 3.0626h-.5424c-.3144 1.9511-1.3126 3.7271-2.8162 5.0095-1.5039 1.2824-3.4149 1.988-5.3914 1.9905z"/><path d="m58.5 60.0625c1.9331 0 3.5-1.5669 3.5-3.5s-1.5669-3.5-3.5-3.5-3.5 1.5669-3.5 3.5 1.5669 3.5 3.5 3.5z"/><path d="m37.5 60.0625c1.9331 0 3.5-1.5669 3.5-3.5s-1.5669-3.5-3.5-3.5-3.5 1.5669-3.5 3.5 1.5669 3.5 3.5 3.5z"/><path d="m48 68.3746c-2.1789.0075-4.3002-.6995-6.0393-2.0124-.278-.2094-.4617-.5211-.5104-.866-.0485-.345.042-.695.2514-.9733.2097-.2783.5211-.4617.8661-.5104.3449-.0485.6949.042.9732.2514 2.583 1.9443 6.3297 1.9443 8.9234 0 .1374-.1067.2948-.1854.4628-.2307.1683-.0454.3438-.0569.5163-.0339.1728.023.3391.0804.4895.1683.15.0879.2814.2049.3861.3441s.1806.2979.2231.4668c.0426.1688.0513.3444.0255.5168-.0257.1722-.0857.3374-.1761.4864-.0904.1487-.2097.278-.3506.3805-1.7385 1.3127-3.8592 2.0194-6.0373 2.0124z"/></g></svg>