Skip to content

Commit 251c4f0

Browse files
feat: migrate to Biome v2.2.4
- Update @biomejs/biome from 1.9.4 to 2.2.4 - Migrate biome.json configuration to v2 format - Fix package script syntax from --apply to --write - Remove deprecated 'all': true rule syntax 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8349407 commit 251c4f0

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

biome.json

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",
66
"useIgnoreFile": false
77
},
8-
"files": { "ignoreUnknown": false, "ignore": [".turbo", "yarn.lock", "dist", "node_modules", "storybook-static"] },
9-
"organizeImports": { "enabled": true },
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["**", "!**/.turbo", "!**/yarn.lock", "!**/dist", "!**/node_modules", "!**/storybook-static"]
11+
},
12+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
1013
"formatter": {
1114
"enabled": true,
1215
"formatWithErrors": false,
@@ -22,35 +25,29 @@
2225
"linter": {
2326
"enabled": true,
2427
"rules": {
25-
"all": true,
2628
"style": {
27-
"all": true,
2829
"useBlockStatements": "off",
2930
"useNamingConvention": "off",
3031
"noImplicitBoolean": "off",
3132
"noDefaultExport": "off",
3233
"noUnusedTemplateLiteral": "off",
33-
"useFilenamingConvention": "off",
34-
"noNamespaceImport": "off"
34+
"useFilenamingConvention": "off"
3535
},
3636
"complexity": {
37-
"all": true,
3837
"noForEach": "off",
3938
"useLiteralKeys": "off"
4039
},
4140
"performance": {
42-
"all": true,
4341
"noAccumulatingSpread": "off",
4442
"noReExportAll": "off",
45-
"noBarrelFile": "off"
43+
"noBarrelFile": "off",
44+
"noNamespaceImport": "off"
4645
},
4746
"suspicious": {
48-
"noConsoleLog": "off",
4947
"noConsole": "off",
5048
"noReactSpecificProps": "off"
5149
},
5250
"correctness": {
53-
"all": true,
5451
"noNodejsModules": "off",
5552
"noUndeclaredDependencies": "off",
5653
"useImportExtensions": "off"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build-storybook": "turbo run build-storybook"
2121
},
2222
"devDependencies": {
23-
"@biomejs/biome": "^1.9.4",
23+
"@biomejs/biome": "2.2.4",
2424
"@playwright/test": "^1.54.2",
2525
"@types/react-dom": "^19",
2626
"turbo": "^2.3.3"

packages/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"prepublishOnly": "yarn run build",
3434
"build": "vite build",
3535
"lint": "biome check .",
36-
"lint:fix": "biome check --apply .",
36+
"lint:fix": "biome check . --write",
3737
"type-check": "tsc --noEmit"
3838
},
3939
"peerDependencies": {

0 commit comments

Comments
 (0)