feat: add quality gate tools and Node 22 setup
- Add type-coverage, knip, and dependency-cruiser for code quality - Set up Node 22 (LTS) with .nvmrc file - Configure knip for dead code detection across monorepo - Configure dependency-cruiser with sensible architecture rules - Add ts-reset for better TypeScript built-in types - Fix Tabs component type exports for Storybook - Recreate eslint react.js config that was missing - Add quality gates documentation All quality checks pass with 0 errors (only informational warnings). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
54f2c1a2d1
commit
378b068e38
11 changed files with 1292 additions and 141 deletions
57
knip.json
Normal file
57
knip.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"$schema": "https://unpkg.com/knip@5/schema.json",
|
||||
"workspaces": {
|
||||
".": {
|
||||
"entry": ["turbo.json"],
|
||||
"project": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
|
||||
"ignore": [
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/dist/**",
|
||||
"**/.next/**",
|
||||
"**/node_modules/**",
|
||||
"**/.turbo/**",
|
||||
"**/storybook-static/**"
|
||||
]
|
||||
},
|
||||
"apps/*": {
|
||||
"entry": [
|
||||
"app/**/*.ts",
|
||||
"app/**/*.tsx",
|
||||
"pages/**/*.ts",
|
||||
"pages/**/*.tsx",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx"
|
||||
],
|
||||
"project": ["**/*.ts", "**/*.tsx"]
|
||||
},
|
||||
"packages/*": {
|
||||
"entry": ["src/**/*.ts", "src/**/*.tsx", "index.ts", "index.tsx"],
|
||||
"project": ["**/*.ts", "**/*.tsx"]
|
||||
}
|
||||
},
|
||||
"ignore": [
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/vitest.config.ts",
|
||||
"**/tsup.config.ts",
|
||||
"**/tailwind.config.ts",
|
||||
"reset.d.ts"
|
||||
],
|
||||
"ignoreDependencies": [
|
||||
"@changesets/cli",
|
||||
"lefthook",
|
||||
"turbo",
|
||||
"typescript",
|
||||
"@biomejs/biome",
|
||||
"@total-typescript/ts-reset",
|
||||
"type-coverage",
|
||||
"knip",
|
||||
"dependency-cruiser"
|
||||
],
|
||||
"ignoreExportsUsedInFile": true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue