feat(ui): add knip + minimal config

https://knip.dev/

Replaces `unimported`
This commit is contained in:
psychedelicious 2024-02-27 13:21:03 +11:00 committed by Kent Keirsey
parent daef68d3c1
commit 3632c5cd57
4 changed files with 774 additions and 12 deletions

View File

@ -1,9 +0,0 @@
{
"entry": ["src/main.tsx"],
"extensions": [".ts", ".tsx"],
"ignorePatterns": ["**/node_modules/**", "dist/**", "public/**", "**/*.stories.tsx", "config/**"],
"ignoreUnresolved": [],
"ignoreUnimported": ["src/i18.d.ts", "vite.config.ts", "src/vite-env.d.ts"],
"respectGitignore": true,
"ignoreUnused": []
}

View File

@ -0,0 +1,4 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignore": ["src/features/nodes/types/v2/**/*", "src/features/nodes/types/v1/**/*"]
}

View File

@ -33,7 +33,7 @@
"preinstall": "npx only-allow pnpm",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"unimported": "npx unimported",
"knip": "knip",
"test": "vitest",
"test:no-watch": "vitest --no-watch"
},
@ -136,6 +136,7 @@
"eslint": "^8.56.0",
"eslint-plugin-i18next": "^6.0.3",
"eslint-plugin-path": "^1.2.4",
"knip": "^5.0.2",
"madge": "^6.1.0",
"openapi-types": "^12.1.3",
"openapi-typescript": "^6.7.4",

File diff suppressed because it is too large Load Diff