diff --git a/apps/api/package.json b/apps/api/package.json index 646850c..43382d4 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -7,6 +7,7 @@ "start": "node dist/main.js", "start:dev": "nest start --watch", "type-check": "tsc --noEmit", + "lint": "biome lint .", "test": "vitest run", "test:watch": "vitest", "postinstall": "test -f prisma/schema.prisma && prisma generate || true" diff --git a/biome.json b/biome.json index d91b8b7..f0e2316 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,16 @@ { "$schema": "https://biomejs.dev/schemas/2.5.0/schema.json", - "organizeImports": { - "enabled": true + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "includes": [ + "**", + "!**/__fixtures__/**", + "!apps/web/src/app/globals.css" + ] }, "formatter": { "enabled": true, @@ -9,10 +18,36 @@ "indentWidth": 2, "lineWidth": 100 }, + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } + }, "linter": { "enabled": true, "rules": { - "recommended": true + "preset": "recommended", + "a11y": "warn", + "correctness": { + "useExhaustiveDependencies": "warn" + }, + "suspicious": { + "noArrayIndexKey": "warn", + "noAssignInExpressions": "warn", + "noControlCharactersInRegex": "warn", + "noDoubleEquals": "warn", + "useIterableCallbackReturn": "warn" + } + } + }, + "javascript": { + "parser": { + "unsafeParameterDecoratorsEnabled": true + }, + "formatter": { + "quoteStyle": "single" } } }