-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathknip.config.ts
More file actions
27 lines (26 loc) · 825 Bytes
/
Copy pathknip.config.ts
File metadata and controls
27 lines (26 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import type { KnipConfig } from 'knip'
export default {
// knip's Nuxt plugin doesn't support the Nuxt 5 app/ directory convention yet.
// Note: custom entry replaces (not merges with) the plugin defaults.
nuxt: {
entry: [
'app/app.vue',
'app/error.vue',
'app/pages/**/*.vue',
'app/components/**/*.vue',
'app/composables/**/*.ts',
'app/utils/**/*.ts',
'app/layouts/**/*.vue',
'app/middleware/**/*.ts',
'server/api/**/*.ts',
'server/routes/**/*.ts',
'server/middleware/**/*.ts',
'server/plugins/**/*.ts',
'server/**/*.ts',
],
config: ['nuxt.config.ts'],
},
ignoreFiles: ['uno.config.ts'],
ignoreDependencies: ['vue', 'vue-router', 'vue-tsc', 'vitest-environment-nuxt'],
ignoreBinaries: ['zizmor'],
} satisfies KnipConfig