Update Biome config
This commit is contained in:
47
biome.json
47
biome.json
@@ -1,28 +1,27 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
|
||||
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": true
|
||||
},
|
||||
"files": {
|
||||
"ignore": [
|
||||
".devcontainer/**",
|
||||
"docs/**",
|
||||
"translations/**",
|
||||
"policies/**",
|
||||
"crates/**",
|
||||
"frontend/package.json",
|
||||
"frontend/src/gql/**",
|
||||
"frontend/src/routeTree.gen.ts",
|
||||
"frontend/.storybook/locales.ts",
|
||||
"frontend/.storybook/public/mockServiceWorker.js",
|
||||
"frontend/locales/*.json",
|
||||
"**/coverage/**",
|
||||
"**/dist/**"
|
||||
"includes": [
|
||||
"**",
|
||||
"!**/.devcontainer/**",
|
||||
"!**/docs/**",
|
||||
"!**/translations/**",
|
||||
"!**/policies/**",
|
||||
"!**/crates/**",
|
||||
"!**/frontend/package.json",
|
||||
"!**/frontend/src/gql/**",
|
||||
"!**/frontend/src/routeTree.gen.ts",
|
||||
"!**/frontend/.storybook/locales.ts",
|
||||
"!**/frontend/.storybook/public/mockServiceWorker.js",
|
||||
"!**/frontend/locales/**/*.json",
|
||||
"!**/coverage/**",
|
||||
"!**/dist/**"
|
||||
]
|
||||
},
|
||||
"formatter": {
|
||||
@@ -36,6 +35,18 @@
|
||||
"correctness": {
|
||||
"noUnusedImports": "warn",
|
||||
"noUnusedVariables": "warn"
|
||||
},
|
||||
"style": {
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useDefaultParameterLast": "error",
|
||||
"useEnumInitializers": "error",
|
||||
"useSelfClosingElements": "error",
|
||||
"useSingleVarDeclarator": "error",
|
||||
"noUnusedTemplateLiteral": "error",
|
||||
"useNumberNamespace": "error",
|
||||
"noInferrableTypes": "error",
|
||||
"noUselessElse": "error"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user