Skip to content

Commit 635a446

Browse files
committed
chore: fix biome v2 configuration
1 parent 736ad34 commit 635a446

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"files.exclude": {
1414
"**/.DS_Store": true
1515
},
16+
"editor.defaultFormatter": "biomejs.biome",
1617
"mdx.validate.validateFileLinks": "ignore"
1718
}

biome.json

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
3-
"organizeImports": {
4-
"enabled": false
5-
},
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
63
"vcs": {
74
"enabled": true,
85
"defaultBranch": "main",
96
"clientKind": "git",
107
"useIgnoreFile": true
118
},
129
"files": {
13-
"include": ["**/*.js", "**/*.ts", "**/*.json", "**/*.jsonc", "**/*.jsx", "**/*.tsx"],
14-
"ignoreUnknown": true,
15-
"ignore": ["**/auto-imports.d.ts", "**/components.d.ts"]
10+
"includes": [
11+
"**/rspack/**",
12+
"**/rsbuild/**",
13+
"**/rspress/**",
14+
"**/rsdoctor/**",
15+
"!**/dist",
16+
"!**/dist-*",
17+
"!**/doc_build",
18+
"!**/auto-imports.d.ts",
19+
"!**/components.d.ts"
20+
],
21+
"ignoreUnknown": true
1622
},
1723
"javascript": {
1824
"formatter": {
@@ -42,16 +48,18 @@
4248
},
4349
"overrides": [
4450
{
45-
"include": [
51+
"includes": [
4652
"**/.vscode/*.json",
4753
"**/tsconfig.json",
4854
"**/tsconfig.*.json",
4955
"**/tsconfig-*.json"
5056
],
51-
"json": { "parser": { "allowComments": true, "allowTrailingCommas": true } }
57+
"json": {
58+
"parser": { "allowComments": true, "allowTrailingCommas": true }
59+
}
5260
},
5361
{
54-
"include": ["**/worker.js", "**/*-worker.js"],
62+
"includes": ["**/worker.js", "**/*-worker.js"],
5563
"linter": {
5664
"rules": {
5765
"suspicious": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"lint-staged": {
1818
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}": [
19-
"npx @biomejs/biome check --apply --no-errors-on-unmatched --colors=force --diagnostic-level=error"
19+
"npx @biomejs/biome check --write --no-errors-on-unmatched"
2020
]
2121
},
2222
"devDependencies": {

0 commit comments

Comments
 (0)