chore(knip): 改进配置
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
!hero.ts
|
||||
!postcss.config.js
|
||||
!eslint.config.ts
|
||||
!knip.config.ts
|
||||
!tsconfig.json
|
||||
!README.md
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import type { KnipConfig } from 'knip';
|
||||
import type { KnipConfig } from 'knip'
|
||||
|
||||
const config: KnipConfig = {
|
||||
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts'],
|
||||
ignoreDependencies: ["tailwindcss", "tw-animate-css"],
|
||||
rules:{
|
||||
files:'warn',
|
||||
dependencies:'warn',
|
||||
exports:'warn',
|
||||
types: 'warn'
|
||||
}
|
||||
};
|
||||
ignoreDependencies: ['tailwindcss', 'tw-animate-css'],
|
||||
rules: {
|
||||
files: 'warn',
|
||||
dependencies: 'warn',
|
||||
devDependencies: 'warn',
|
||||
exports: 'warn',
|
||||
types: 'warn',
|
||||
},
|
||||
}
|
||||
|
||||
export default config;
|
||||
export default config
|
||||
|
||||
Reference in New Issue
Block a user