Skip to content

Commit 78baf6b

Browse files
committed
Update Biome config
1 parent 1320e29 commit 78baf6b

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

biome.json

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
64
"vcs": {
75
"enabled": true,
86
"clientKind": "git",
97
"useIgnoreFile": true
108
},
119
"files": {
12-
"ignore": [
13-
".devcontainer/**",
14-
"docs/**",
15-
"translations/**",
16-
"policies/**",
17-
"crates/**",
18-
"frontend/package.json",
19-
"frontend/src/gql/**",
20-
"frontend/src/routeTree.gen.ts",
21-
"frontend/.storybook/locales.ts",
22-
"frontend/.storybook/public/mockServiceWorker.js",
23-
"frontend/locales/*.json",
24-
"**/coverage/**",
25-
"**/dist/**"
10+
"includes": [
11+
"**",
12+
"!**/.devcontainer/**",
13+
"!**/docs/**",
14+
"!**/translations/**",
15+
"!**/policies/**",
16+
"!**/crates/**",
17+
"!**/frontend/package.json",
18+
"!**/frontend/src/gql/**",
19+
"!**/frontend/src/routeTree.gen.ts",
20+
"!**/frontend/.storybook/locales.ts",
21+
"!**/frontend/.storybook/public/mockServiceWorker.js",
22+
"!**/frontend/locales/**/*.json",
23+
"!**/coverage/**",
24+
"!**/dist/**"
2625
]
2726
},
2827
"formatter": {
@@ -36,6 +35,18 @@
3635
"correctness": {
3736
"noUnusedImports": "warn",
3837
"noUnusedVariables": "warn"
38+
},
39+
"style": {
40+
"noParameterAssign": "error",
41+
"useAsConstAssertion": "error",
42+
"useDefaultParameterLast": "error",
43+
"useEnumInitializers": "error",
44+
"useSelfClosingElements": "error",
45+
"useSingleVarDeclarator": "error",
46+
"noUnusedTemplateLiteral": "error",
47+
"useNumberNamespace": "error",
48+
"noInferrableTypes": "error",
49+
"noUselessElse": "error"
3950
}
4051
}
4152
}

0 commit comments

Comments
 (0)