Skip to content

Commit 3979404

Browse files
chore: add biome formatter configuration
1 parent 55d8454 commit 3979404

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

biome.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false },
5+
"formatter": {
6+
"enabled": true,
7+
"formatWithErrors": false,
8+
"indentStyle": "space",
9+
"indentWidth": 2,
10+
"lineEnding": "lf",
11+
"lineWidth": 120,
12+
"attributePosition": "auto",
13+
"bracketSameLine": false,
14+
"bracketSpacing": true,
15+
"expand": "auto",
16+
"useEditorconfig": true,
17+
"includes": ["**", "!./coverage", "!./dist", "!**/package.json"]
18+
},
19+
"javascript": {
20+
"formatter": {
21+
"jsxQuoteStyle": "single",
22+
"quoteProperties": "preserve",
23+
"trailingCommas": "es5",
24+
"semicolons": "asNeeded",
25+
"arrowParentheses": "asNeeded",
26+
"bracketSameLine": false,
27+
"quoteStyle": "single",
28+
"attributePosition": "auto",
29+
"bracketSpacing": true
30+
}
31+
},
32+
"html": { "formatter": { "selfCloseVoidElements": "always" } }
33+
}

0 commit comments

Comments
 (0)