Skip to content

Commit 5a89dbb

Browse files
committed
refactor: Use Biome
1 parent 782f5aa commit 5a89dbb

File tree

3 files changed

+367
-1837
lines changed

3 files changed

+367
-1837
lines changed

biome.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": "on"
7+
}
8+
},
9+
"enabled": true
10+
},
11+
"files": {
12+
"ignoreUnknown": false
13+
},
14+
"formatter": {
15+
"attributePosition": "auto",
16+
"bracketSameLine": false,
17+
"bracketSpacing": true,
18+
"enabled": true,
19+
"expand": "auto",
20+
"formatWithErrors": false,
21+
"indentStyle": "space",
22+
"indentWidth": 2,
23+
"lineEnding": "lf",
24+
"lineWidth": 120,
25+
"useEditorconfig": true
26+
},
27+
"html": {
28+
"formatter": {
29+
"selfCloseVoidElements": "always"
30+
}
31+
},
32+
"javascript": {
33+
"formatter": {
34+
"arrowParentheses": "asNeeded",
35+
"attributePosition": "auto",
36+
"bracketSameLine": false,
37+
"bracketSpacing": false,
38+
"jsxQuoteStyle": "double",
39+
"quoteProperties": "asNeeded",
40+
"quoteStyle": "single",
41+
"semicolons": "always",
42+
"trailingCommas": "es5"
43+
}
44+
},
45+
"linter": {
46+
"enabled": true,
47+
"rules": {
48+
"complexity": {
49+
"noCommaOperator": "error",
50+
"noUselessTernary": "error",
51+
"useLiteralKeys": "off"
52+
},
53+
"correctness": {
54+
"noConstAssign": "error",
55+
"noInnerDeclarations": "error",
56+
"noUnusedVariables": "off"
57+
},
58+
"recommended": false,
59+
"style": {
60+
"noNamespace": "error",
61+
"useBlockStatements": "error",
62+
"useCollapsedElseIf": "error",
63+
"useConsistentArrayType": "error",
64+
"useConst": "error",
65+
"useForOf": "off",
66+
"useReadonlyClassProperties": "error",
67+
"useSingleVarDeclarator": "error"
68+
},
69+
"suspicious": {
70+
"noConsole": "off",
71+
"noDuplicateCase": "error",
72+
"noDuplicateClassMembers": "error",
73+
"noRedeclare": "error",
74+
"noSparseArray": "error",
75+
"noTemplateCurlyInString": "error",
76+
"noVar": "error"
77+
}
78+
}
79+
},
80+
"vcs": {
81+
"clientKind": "git",
82+
"enabled": false,
83+
"useIgnoreFile": false
84+
}
85+
}

0 commit comments

Comments
 (0)