ultracite 7.4.4 → 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.
- package/config/biome/core/biome.jsonc +6 -1
- package/config/oxfmt/index.ts +22 -0
- package/config/oxlint/angular/index.ts +5 -0
- package/config/oxlint/astro/index.ts +5 -0
- package/config/oxlint/core/{.oxlintrc.json → index.ts} +40 -39
- package/config/oxlint/jest/{.oxlintrc.json → index.ts} +13 -12
- package/config/oxlint/nestjs/index.ts +5 -0
- package/config/oxlint/next/index.ts +14 -0
- package/config/oxlint/qwik/index.ts +5 -0
- package/config/oxlint/react/{.oxlintrc.json → index.ts} +8 -7
- package/config/oxlint/remix/index.ts +14 -0
- package/config/oxlint/solid/index.ts +5 -0
- package/config/oxlint/svelte/index.ts +5 -0
- package/config/oxlint/vitest/{.oxlintrc.json → index.ts} +13 -12
- package/config/oxlint/vue/index.ts +6 -0
- package/dist/index.js +65 -58
- package/package.json +10 -8
- package/config/oxlint/angular/.oxlintrc.json +0 -4
- package/config/oxlint/astro/.oxlintrc.json +0 -4
- package/config/oxlint/nestjs/.oxlintrc.json +0 -4
- package/config/oxlint/next/.oxlintrc.json +0 -13
- package/config/oxlint/qwik/.oxlintrc.json +0 -4
- package/config/oxlint/remix/.oxlintrc.json +0 -13
- package/config/oxlint/solid/.oxlintrc.json +0 -4
- package/config/oxlint/svelte/.oxlintrc.json +0 -4
- package/config/oxlint/vue/.oxlintrc.json +0 -5
|
@@ -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": {
|
|
@@ -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
|
+
});
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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", {
|
|
68
|
+
"no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
|
|
52
69
|
// Avoid conflict with typescript/no-floating-promises
|
|
53
|
-
"no-void": ["error", {
|
|
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", {
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
overrides: [
|
|
4
5
|
{
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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
|
+
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
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
|
+
});
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { defineConfig } from "oxlint";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
overrides: [
|
|
4
5
|
{
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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)
|
|
@@ -66,8 +67,8 @@
|
|
|
66
67
|
"vitest/valid-describe-callback": "error",
|
|
67
68
|
"vitest/valid-expect": "error",
|
|
68
69
|
"vitest/valid-title": "error",
|
|
69
|
-
"vitest/warn-todo": "error"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
70
|
+
"vitest/warn-todo": "error",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
});
|