diff --git a/packages/biome-config/README.md b/packages/biome-config/README.md index 8a07948..c5df4d1 100644 --- a/packages/biome-config/README.md +++ b/packages/biome-config/README.md @@ -7,6 +7,8 @@ Significa's shared [Biome](https://biomejs.dev) configuration. - Space indent, line width 100. - `organizeImports` on (alphabetical, named-imports sorted, preserves blank-line groups). - `console.*` warns (not error — so it doesn't fail CI; bump per-project if you want). +- `noFloatingPromises` errors — catches unhandled async calls (a common AI-generated bug). +- `noExcessiveCognitiveComplexity` warns at threshold 25 — catches god-functions without being pedantic. - Build/cache directories ignored: `.astro`, `.output`, `.vite`, `.next`, `dist`, `build`, `coverage`, `node_modules`. ## Install diff --git a/packages/biome-config/biome.json b/packages/biome-config/biome.json index e219373..2bccd47 100644 --- a/packages/biome-config/biome.json +++ b/packages/biome-config/biome.json @@ -40,6 +40,15 @@ "recommended": true, "suspicious": { "noConsole": "warn" + }, + "nursery": { + "noFloatingPromises": "error" + }, + "complexity": { + "noExcessiveCognitiveComplexity": { + "level": "warn", + "options": { "maxAllowedComplexity": 25 } + } } } } diff --git a/packages/biome-config/package.json b/packages/biome-config/package.json index 4c222ce..f891c90 100644 --- a/packages/biome-config/package.json +++ b/packages/biome-config/package.json @@ -1,6 +1,6 @@ { "name": "@significa/biome-config", - "version": "0.1.0", + "version": "0.2.0", "description": "Significa's shared Biome configuration.", "license": "MIT", "repository": {