mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): configure knip
This commit is contained in:
parent
240f4801db
commit
8a353bc1e3
@ -6,6 +6,20 @@ const config: KnipConfig = {
|
|||||||
'src/app/store/middleware/debugLoggerMiddleware.ts',
|
'src/app/store/middleware/debugLoggerMiddleware.ts',
|
||||||
],
|
],
|
||||||
ignoreBinaries: ['only-allow'],
|
ignoreBinaries: ['only-allow'],
|
||||||
|
rules: {
|
||||||
|
files: 'warn',
|
||||||
|
dependencies: 'warn',
|
||||||
|
unlisted: 'warn',
|
||||||
|
binaries: 'warn',
|
||||||
|
unresolved: 'warn',
|
||||||
|
exports: 'warn',
|
||||||
|
types: 'warn',
|
||||||
|
nsExports: 'warn',
|
||||||
|
nsTypes: 'warn',
|
||||||
|
enumMembers: 'warn',
|
||||||
|
classMembers: 'warn',
|
||||||
|
duplicates: 'warn',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@ -24,16 +24,16 @@
|
|||||||
"build": "pnpm run lint && vite build",
|
"build": "pnpm run lint && vite build",
|
||||||
"typegen": "node scripts/typegen.js",
|
"typegen": "node scripts/typegen.js",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
"lint:knip": "knip",
|
||||||
"lint:madge": "madge --circular src/main.tsx",
|
"lint:madge": "madge --circular src/main.tsx",
|
||||||
"lint:eslint": "eslint --max-warnings=0 .",
|
"lint:eslint": "eslint --max-warnings=0 .",
|
||||||
"lint:prettier": "prettier --check .",
|
"lint:prettier": "prettier --check .",
|
||||||
"lint:tsc": "tsc --noEmit",
|
"lint:tsc": "tsc --noEmit",
|
||||||
"lint": "concurrently -g -n eslint,prettier,tsc,madge -c cyan,green,magenta,yellow \"pnpm run lint:eslint\" \"pnpm run lint:prettier\" \"pnpm run lint:tsc\" \"pnpm run lint:madge\"",
|
"lint": "concurrently -g -c red,green,yellow,blue,magenta pnpm:lint:*",
|
||||||
"fix": "eslint --fix . && prettier --log-level warn --write .",
|
"fix": "knip --fix && eslint --fix . && prettier --log-level warn --write .",
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"knip": "knip",
|
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"test:no-watch": "vitest --no-watch"
|
"test:no-watch": "vitest --no-watch"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user