Skip to content

Commit 3cd6e7b

Browse files
committed
Upgrade Biome to 2.4, for #544
1 parent 15badc2 commit 3cd6e7b

File tree

9 files changed

+46
-95
lines changed

9 files changed

+46
-95
lines changed

.changeset/polite-peaches-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ultracite": patch
3+
---
4+
5+
Upgrade Biome to 2.4

bun.lock

Lines changed: 31 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"version": "0.0.0",
66
"catalog": {
7-
"@biomejs/biome": "2.3.10",
7+
"@biomejs/biome": "2.4.0",
88
"@icons-pack/react-simple-icons": "^13.8.0",
99
"@supabase/ssr": "^0.8.0",
1010
"@supabase/supabase-js": "^2.89.0",

packages/cli/__tests__/preload.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const vscodeBiomeConfig = {
2626
"[json]": { "editor.defaultFormatter": "biomejs.biome" },
2727
"[jsonc]": { "editor.defaultFormatter": "biomejs.biome" },
2828
"editor.codeActionsOnSave": {
29+
"source.action.noDuplicateClasses.biome": "explicit",
2930
"source.fixAll.biome": "explicit",
3031
"source.organizeImports.biome": "explicit",
3132
},

packages/cli/config/biome/astro/biome.jsonc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,14 @@
77
"indentScriptAndStyle": true
88
}
99
},
10-
// Disable organizeImports for Astro files — Biome's import organizer
11-
// incorrectly removes all imports in template-based files when used with
12-
// experimentalFullSupportEnabled. Upstream: https://github.com/biomejs/biome/issues/8596
13-
"assist": {
14-
"actions": {
15-
"source": {
16-
"organizeImports": "off"
17-
}
18-
}
19-
},
2010
"overrides": [
2111
{
2212
"includes": ["**/*.astro"],
2313
"linter": {
2414
"rules": {
2515
"correctness": {
26-
"noUnusedVariables": "off",
2716
"noUnusedImports": "off"
2817
},
29-
"style": {
30-
"useConst": "off",
31-
"useImportType": "off"
32-
},
3318
"suspicious": {
3419
"noReactSpecificProps": "error"
3520
}

packages/cli/config/biome/core/biome.jsonc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,13 @@
6565
// Enforce attribute sorting in JSX elements.
6666
"useSortedAttributes": "on",
6767
// Enforce ordering of a JS object properties.
68-
"useSortedKeys": "off"
68+
"useSortedKeys": "off",
69+
// Enforce no duplicate classes in the file.
70+
"noDuplicateClasses": "on",
71+
// Enforce ordering of a TypeScript interface members.
72+
"useSortedInterfaceMembers": "on",
73+
// Enforce ordering of a JavaScript object properties.
74+
"useSortedProperties": "on"
6975
}
7076
}
7177
},

packages/cli/config/biome/svelte/biome.jsonc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,14 @@
77
"indentScriptAndStyle": true
88
}
99
},
10-
// Disable organizeImports for Svelte files — Biome's import organizer
11-
// incorrectly removes all imports in template-based files when used with
12-
// experimentalFullSupportEnabled. Upstream: https://github.com/biomejs/biome/issues/8596
13-
"assist": {
14-
"actions": {
15-
"source": {
16-
"organizeImports": "off"
17-
}
18-
}
19-
},
2010
"overrides": [
2111
{
2212
"includes": ["**/*.svelte"],
2313
"linter": {
2414
"rules": {
2515
"correctness": {
26-
"noUnusedVariables": "off",
2716
"noUnusedImports": "off"
2817
},
29-
"style": {
30-
"useConst": "off",
31-
"useImportType": "off"
32-
},
3318
"suspicious": {
3419
"noReactSpecificProps": "error"
3520
}

packages/cli/config/biome/vue/biome.jsonc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,14 @@
77
"indentScriptAndStyle": true
88
}
99
},
10-
// Disable organizeImports for Vue files — Biome's import organizer
11-
// incorrectly removes all imports in template-based files when used with
12-
// experimentalFullSupportEnabled. Upstream: https://github.com/biomejs/biome/issues/8596
13-
"assist": {
14-
"actions": {
15-
"source": {
16-
"organizeImports": "off"
17-
}
18-
}
19-
},
2010
"overrides": [
2111
{
2212
"includes": ["**/*.vue"],
2313
"linter": {
2414
"rules": {
2515
"correctness": {
26-
"noUnusedVariables": "off",
2716
"noUnusedImports": "off"
2817
},
29-
"style": {
30-
"useConst": "off",
31-
"useImportType": "off"
32-
},
3318
"suspicious": {
3419
"noReactSpecificProps": "error"
3520
}

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"url": "git+https://github.com/haydenbleasel/ultracite.git"
4848
},
4949
"devDependencies": {
50-
"@biomejs/biome": "2.3.15",
50+
"@biomejs/biome": "2.4.0",
5151
"@eslint/js": "^10.0.1",
5252
"@next/eslint-plugin-next": "^16.1.6",
5353
"@repo/data": "workspace:*",

0 commit comments

Comments
 (0)