diff --git a/biome.json b/biome.json index 8800caa30..17393dfd1 100644 --- a/biome.json +++ b/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" } } }