-
-
Notifications
You must be signed in to change notification settings - Fork 409
Expand file tree
/
Copy pathknip.ts
More file actions
64 lines (59 loc) · 1.71 KB
/
knip.ts
File metadata and controls
64 lines (59 loc) · 1.71 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import type { KnipConfig } from 'knip'
const config: KnipConfig = {
workspaces: {
'.': {
entry: [
'i18n/**/*.ts',
'lunaria.config.ts',
'lunaria/lunaria.ts',
'pwa-assets.config.ts',
'modules/*.ts',
'.lighthouserc.cjs',
'lighthouse-setup.cjs',
'uno-preset-*.ts!',
'scripts/**/*.ts',
],
project: [
'**/*.{ts,vue,cjs,mjs}',
'!test/fixtures/**',
'!test/test-utils/**',
'!test/e2e/helpers/**',
'!cli/src/**',
'!lexicons/**',
],
msw: {
entry: ['.storybook/.public/mockServiceWorker.js'],
},
ignoreDependencies: [
'@iconify-json/*',
'puppeteer',
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
'unplugin-vue-router',
'vite-plugin-pwa',
'@vueuse/shared',
/** Some components import types from here, but installing it directly could lead to a version mismatch */
'vue-router',
/** Oxlint plugins don't get picked up yet */
'@e18e/eslint-plugin',
'eslint-plugin-regexp',
/** Used in test/e2e/helpers/ which is excluded from knip project scope */
'h3-next',
],
ignoreUnresolved: ['#oauth/config'],
ignoreFiles: [
'app/components/Tooltip/Announce.vue',
'app/components/UserCombobox.vue',
'**/*.unused.*',
],
},
'cli': {
project: ['src/**/*.ts!', '!src/mock-*.ts'],
},
'docs': {
entry: ['app/**/*.{ts,vue,css}', 'shared/**/*.{ts,vue,css}'],
project: ['**/*.{ts,vue,cjs,mjs}'],
ignoreDependencies: ['@nuxtjs/mdc'],
},
},
}
export default config