Implement the 031-quality-gates-hygiene feature that strengthens automated quality gates by adding pnpm audit to the check script, v8 coverage thresholds with per-directory auto-ratchet (domain 96%, adapters 71%, persistence 87%), Biome cognitive complexity enforcement (max 15), and keyboard accessibility for the combatant row, while cleaning up all blanket biome-ignore comments, refactoring 5 overly complex functions into smaller helpers, and codifying the early-enforcement principle in the constitution and CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,5 +4,24 @@ export default defineConfig({
|
||||
test: {
|
||||
include: ["packages/*/src/**/*.test.ts", "apps/*/src/**/*.test.ts"],
|
||||
passWithNoTests: true,
|
||||
coverage: {
|
||||
provider: "v8",
|
||||
enabled: true,
|
||||
thresholds: {
|
||||
autoUpdate: true,
|
||||
"packages/domain/src": {
|
||||
lines: 96,
|
||||
branches: 96,
|
||||
},
|
||||
"apps/web/src/adapters": {
|
||||
lines: 71,
|
||||
branches: 78,
|
||||
},
|
||||
"apps/web/src/persistence": {
|
||||
lines: 87,
|
||||
branches: 67,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user