Skip to content

Commit d5dcd42

Browse files
committed
chore: add biome.json as an alternative to Prettier and ESLint
For developers who prefer Biome, this config mirrors the existing .prettierrc rules (single quotes, no trailing commas) and ESLint rules (recommended rules, no-console as error, import sorting via assist). This is not a replacement — Prettier and ESLint remain the primary tooling. biome.json is an opt-in for those who already use Biome.
1 parent f300b5d commit d5dcd42

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

biome.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
3+
4+
"vcs": {
5+
"enabled": true,
6+
"clientKind": "git",
7+
"useIgnoreFile": true
8+
},
9+
10+
"files": {
11+
"ignoreUnknown": true,
12+
"includes": ["**", "!!build", "!!dist", "!!out"]
13+
},
14+
15+
"formatter": {
16+
"enabled": true,
17+
"indentStyle": "space",
18+
"indentWidth": 2,
19+
"lineEnding": "lf"
20+
},
21+
22+
"javascript": {
23+
"formatter": {
24+
"quoteStyle": "single",
25+
"jsxQuoteStyle": "double",
26+
"trailingCommas": "none",
27+
"semicolons": "always"
28+
}
29+
},
30+
31+
"linter": {
32+
"enabled": true,
33+
"rules": {
34+
"recommended": true,
35+
"suspicious": {
36+
"noConsole": "error"
37+
},
38+
"style": {
39+
"noNonNullAssertion": "off"
40+
}
41+
}
42+
},
43+
44+
"assist": {
45+
"enabled": true,
46+
"actions": {
47+
"source": {
48+
"organizeImports": "on"
49+
}
50+
}
51+
}
52+
}

0 commit comments

Comments
 (0)