Skip to content

Commit 6527655

Browse files
committed
migrate to biome 2
1 parent cbbc853 commit 6527655

File tree

1 file changed

+27
-16
lines changed

1 file changed

+27
-16
lines changed

biome.jsonc

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
66
"useIgnoreFile": true
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"ignore": [
11-
"node_modules/",
12-
"**/node_modules",
13-
"**/dist",
14-
"routeTree.gen.ts",
15-
"tsconfig.json",
16-
"tsconfig.*.json",
17-
"**/variant-schema.ts",
18-
"apps/typesync/client/src/generated",
19-
"apps/create-hypergraph-app/template-*/**",
20-
"*.css"
10+
"includes": [
11+
"**",
12+
"!**/node_modules/",
13+
"!**/node_modules",
14+
"!**/dist",
15+
"!**/routeTree.gen.ts",
16+
"!**/tsconfig.json",
17+
"!**/tsconfig.*.json",
18+
"!**/variant-schema.ts",
19+
"!**/apps/typesync/client/src/generated",
20+
"!**/apps/create-hypergraph-app/template-*/**",
21+
"!**/*.css"
2122
]
2223
},
2324
"formatter": {
@@ -26,13 +27,23 @@
2627
"indentWidth": 2,
2728
"lineWidth": 120
2829
},
29-
"organizeImports": {
30-
"enabled": true
31-
},
30+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
3231
"linter": {
3332
"enabled": true,
3433
"rules": {
35-
"recommended": true
34+
"recommended": true,
35+
"style": {
36+
"noParameterAssign": "error",
37+
"useAsConstAssertion": "error",
38+
"useDefaultParameterLast": "error",
39+
"useEnumInitializers": "error",
40+
"useSelfClosingElements": "error",
41+
"useSingleVarDeclarator": "error",
42+
"noUnusedTemplateLiteral": "error",
43+
"useNumberNamespace": "error",
44+
"noInferrableTypes": "error",
45+
"noUselessElse": "error"
46+
}
3647
}
3748
},
3849
"javascript": {

0 commit comments

Comments
 (0)