Skip to content

Commit b7001d9

Browse files
committed
add biome config
1 parent 2ab67a1 commit b7001d9

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

biome.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json",
3+
"files": {
4+
"include": ["./*.cjs", "./*.js", "./*.mjs", "src/**/*.js", "src/**/*.ts"],
5+
"ignore": [".vscode/**", ".idea/**", ".git/**", ".husky/**", "build/**", "configure-package.js", "dist/**", "node_modules/**", "scripts/**"]
6+
},
7+
"formatter": {
8+
"enabled": true,
9+
"formatWithErrors": false,
10+
"indentStyle": "space",
11+
"indentWidth": 4,
12+
"lineWidth": 155,
13+
"lineEnding": "lf",
14+
"ignore": ["package-lock.json", "bun.lockb", "node_modules/**", "dist/**", "build/**"]
15+
},
16+
"linter": {
17+
"enabled": true,
18+
"ignore": ["build/**", "configure-package.js", "dist/**", "node_modules/**", "scripts/**"],
19+
"rules": {
20+
"correctness": {
21+
"noSwitchDeclarations": {
22+
"level": "warn"
23+
}
24+
},
25+
"suspicious": {
26+
"noExplicitAny": {
27+
"level": "off"
28+
}
29+
}
30+
}
31+
},
32+
"javascript": {
33+
"formatter": {
34+
"arrowParentheses": "asNeeded",
35+
"bracketSameLine": false,
36+
"bracketSpacing": true,
37+
"indentWidth": 4,
38+
"indentStyle": "space",
39+
"jsxQuoteStyle": "double",
40+
"quoteProperties": "asNeeded",
41+
"quoteStyle": "single",
42+
"semicolons": "always",
43+
"trailingComma": "all"
44+
}
45+
},
46+
"json": {
47+
"parser": {
48+
"allowComments": true,
49+
"allowTrailingCommas": false
50+
}
51+
},
52+
"vcs": {
53+
"useIgnoreFile": true
54+
}
55+
}

0 commit comments

Comments
 (0)