test(config-audit): add baseline-all-a fixture + grade-stability regression test
This commit is contained in:
parent
a9fb328584
commit
350cebc39c
8 changed files with 167 additions and 0 deletions
13
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/rules/typescript.md
vendored
Normal file
13
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/rules/typescript.md
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
paths: src/**/*.ts
|
||||
---
|
||||
|
||||
# TypeScript Rules
|
||||
|
||||
Use strict TypeScript throughout.
|
||||
|
||||
## Mandatory
|
||||
|
||||
- `strict: true` in tsconfig
|
||||
- No `any` — prefer `unknown` at boundaries
|
||||
- Prefer `type` aliases for simple shapes, `interface` for extendable objects
|
||||
8
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/settings.json
vendored
Normal file
8
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/settings.json
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
||||
"permissions": {
|
||||
"allow": ["Bash(npm run *)", "Read(src/**)"],
|
||||
"deny": ["Read(./.env)"]
|
||||
},
|
||||
"effortLevel": "medium"
|
||||
}
|
||||
15
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/shared.md
vendored
Normal file
15
plugins/config-audit/tests/fixtures/baseline-all-a/.claude/shared.md
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Shared Configuration
|
||||
|
||||
Common patterns and conventions shared across the baseline fixture.
|
||||
|
||||
## Naming Conventions
|
||||
|
||||
- `camelCase` for variables and functions
|
||||
- `PascalCase` for classes, interfaces, and types
|
||||
- `UPPER_SNAKE_CASE` for module-level constants
|
||||
|
||||
## Error Handling
|
||||
|
||||
- Prefer early return over deep nesting
|
||||
- Throw `Error` subclasses with typed messages
|
||||
- Never swallow errors silently
|
||||
Loading…
Add table
Add a link
Reference in a new issue