Skip to content

Commit ea146b1

Browse files
committed
build(config): 更新 Biome 配置并保留旧配置
- 新增 biome.next.json 文件,配置 Biome 2.0.0 版本 - 重命名旧的 biome.prettier.json 文件为 biomev1.prettier.json - 新配置启用了格式化功能,禁用了 VCS 和 Linter - JavaScript 格式化设置包括引号风格、尾随逗号等
1 parent bf50996 commit ea146b1

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

config/frontend/biome.next.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": { "ignoreUnknown": false },
5+
"formatter": {
6+
"enabled": true,
7+
"useEditorconfig": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 80,
13+
"attributePosition": "auto",
14+
"bracketSpacing": true
15+
},
16+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
17+
"linter": {
18+
"enabled": false,
19+
"rules": { "recommended": true },
20+
"domains": {
21+
"next": "recommended"
22+
}
23+
},
24+
"javascript": {
25+
"formatter": {
26+
"jsxQuoteStyle": "double",
27+
"quoteProperties": "asNeeded",
28+
"trailingCommas": "all",
29+
"semicolons": "asNeeded",
30+
"arrowParentheses": "always",
31+
"bracketSameLine": false,
32+
"quoteStyle": "single",
33+
"attributePosition": "auto",
34+
"bracketSpacing": true
35+
}
36+
}
37+
}
File renamed without changes.

0 commit comments

Comments
 (0)