|
1 | 1 | import type { KnipConfig } from 'knip' |
2 | 2 |
|
3 | 3 | const config: KnipConfig = { |
4 | | - workspaces: { |
5 | | - '.': { |
6 | | - entry: [ |
7 | | - 'app/router.options.ts!', |
8 | | - 'app/app.vue!', |
9 | | - 'app/error.vue!', |
10 | | - 'app/pages/**/*.vue!', |
11 | | - 'app/components/**/*.vue!', |
12 | | - 'app/components/**/*.d.vue.ts!', |
13 | | - 'app/composables/**/*.ts!', |
14 | | - 'app/middleware/**/*.ts!', |
15 | | - 'app/plugins/**/*.ts!', |
16 | | - 'app/utils/**/*.ts!', |
17 | | - 'server/**/*.ts!', |
18 | | - 'modules/**/*.ts!', |
19 | | - 'config/**/*.ts!', |
20 | | - 'lunaria/**/*.ts!', |
21 | | - 'shared/**/*.ts!', |
22 | | - 'i18n/**/*.ts', |
23 | | - 'lunaria.config.ts', |
24 | | - 'pwa-assets.config.ts', |
25 | | - '.lighthouserc.cjs', |
26 | | - 'lighthouse-setup.cjs', |
27 | | - 'uno-preset-rtl.ts!', |
28 | | - 'scripts/**/*.ts', |
29 | | - ], |
30 | | - project: [ |
31 | | - '**/*.{ts,vue,cjs,mjs}', |
32 | | - '!test/fixtures/**', |
33 | | - '!test/test-utils/**', |
34 | | - '!test/e2e/helpers/**', |
35 | | - '!cli/src/**', |
36 | | - ], |
37 | | - ignoreDependencies: [ |
38 | | - '@iconify-json/*', |
39 | | - '@voidzero-dev/vite-plus-core', |
40 | | - 'vite-plus!', |
41 | | - 'puppeteer', |
42 | | - /** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */ |
43 | | - 'unplugin-vue-router', |
44 | | - 'vite-plugin-pwa', |
45 | | - '@vueuse/shared', |
| 4 | + workspaces: { |
| 5 | + '.': { |
| 6 | + entry: [ |
| 7 | + 'app/router.options.ts!', |
| 8 | + 'app/app.vue!', |
| 9 | + 'app/error.vue!', |
| 10 | + 'app/pages/**/*.vue!', |
| 11 | + 'app/components/**/*.vue!', |
| 12 | + 'app/components/**/*.d.vue.ts!', |
| 13 | + 'app/composables/**/*.ts!', |
| 14 | + 'app/middleware/**/*.ts!', |
| 15 | + 'app/plugins/**/*.ts!', |
| 16 | + 'app/utils/**/*.ts!', |
| 17 | + 'server/**/*.ts!', |
| 18 | + 'modules/**/*.ts!', |
| 19 | + 'config/**/*.ts!', |
| 20 | + 'lunaria/**/*.ts!', |
| 21 | + 'shared/**/*.ts!', |
| 22 | + 'i18n/**/*.ts', |
| 23 | + 'lunaria.config.ts', |
| 24 | + 'pwa-assets.config.ts', |
| 25 | + '.lighthouserc.cjs', |
| 26 | + 'lighthouse-setup.cjs', |
| 27 | + 'uno-preset-rtl.ts!', |
| 28 | + 'scripts/**/*.ts', |
| 29 | + ], |
| 30 | + project: [ |
| 31 | + '**/*.{ts,vue,cjs,mjs}', |
| 32 | + '!test/fixtures/**', |
| 33 | + '!test/test-utils/**', |
| 34 | + '!test/e2e/helpers/**', |
| 35 | + '!cli/src/**', |
| 36 | + ], |
| 37 | + ignoreDependencies: [ |
| 38 | + '@iconify-json/*', |
| 39 | + '@voidzero-dev/vite-plus-core', |
| 40 | + 'vite-plus!', |
| 41 | + 'puppeteer', |
| 42 | + /** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */ |
| 43 | + 'unplugin-vue-router', |
| 44 | + 'vite-plugin-pwa', |
| 45 | + '@vueuse/shared', |
46 | 46 |
|
47 | | - /** Some components import types from here, but installing it directly could lead to a version mismatch */ |
48 | | - 'vue-router', |
| 47 | + /** Some components import types from here, but installing it directly could lead to a version mismatch */ |
| 48 | + 'vue-router', |
49 | 49 |
|
50 | | - /** Oxlint plugins don't get picked up yet */ |
51 | | - '@e18e/eslint-plugin', |
52 | | - 'eslint-plugin-regexp', |
| 50 | + /** Oxlint plugins don't get picked up yet */ |
| 51 | + '@e18e/eslint-plugin', |
| 52 | + 'eslint-plugin-regexp', |
53 | 53 |
|
54 | | - /** Used in test/e2e/helpers/ which is excluded from knip project scope */ |
55 | | - 'h3-next', |
| 54 | + /** Used in test/e2e/helpers/ which is excluded from knip project scope */ |
| 55 | + 'h3-next', |
56 | 56 |
|
57 | | - /** Used in Storybook config but not explicitly installed, it's a transitive dependency of @nuxtjs/storybook */ |
58 | | - '@storybook-vue/nuxt', |
59 | | - ], |
60 | | - ignoreUnresolved: ['#components', '#oauth/config'], |
61 | | - }, |
62 | | - 'cli': { |
63 | | - project: ['src/**/*.ts!', '!src/mock-*.ts'], |
64 | | - }, |
65 | | - 'docs': { |
66 | | - entry: ['app/**/*.{ts,vue}'], |
67 | | - ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc', 'nuxt!'], |
68 | | - }, |
69 | | - }, |
| 57 | + /** Used in Storybook config but not explicitly installed, it's a transitive dependency of @nuxtjs/storybook */ |
| 58 | + '@storybook-vue/nuxt', |
| 59 | + ], |
| 60 | + ignoreUnresolved: ['#components', '#oauth/config'], |
| 61 | + }, |
| 62 | + 'cli': { |
| 63 | + project: ['src/**/*.ts!', '!src/mock-*.ts'], |
| 64 | + }, |
| 65 | + 'docs': { |
| 66 | + entry: ['app/**/*.{ts,vue}'], |
| 67 | + ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc', 'nuxt!'], |
| 68 | + }, |
| 69 | + }, |
70 | 70 | } |
71 | 71 |
|
72 | 72 | export default config |
0 commit comments