|
| 1 | +import type { KnipConfig } from 'knip' |
| 2 | + |
| 3 | +const config: KnipConfig = { |
| 4 | + workspaces: { |
| 5 | + '.': { |
| 6 | + entry: [ |
| 7 | + 'app/app.vue!', |
| 8 | + 'app/error.vue!', |
| 9 | + 'app/pages/**/*.vue!', |
| 10 | + 'app/components/**/*.vue!', |
| 11 | + 'app/composables/**/*.ts!', |
| 12 | + 'app/middleware/**/*.ts!', |
| 13 | + 'app/plugins/**/*.ts!', |
| 14 | + 'app/utils/**/*.ts!', |
| 15 | + 'server/**/*.ts!', |
| 16 | + 'modules/**/*.ts!', |
| 17 | + 'config/**/*.ts!', |
| 18 | + 'lunaria/**/*.ts!', |
| 19 | + 'shared/**/*.ts!', |
| 20 | + 'i18n/**/*.ts', |
| 21 | + 'lunaria.config.ts', |
| 22 | + 'pwa-assets.config.ts', |
| 23 | + '.lighthouserc.cjs', |
| 24 | + 'lighthouse-setup.cjs', |
| 25 | + 'uno-preset-rtl.ts!', |
| 26 | + 'scripts/**/*.ts', |
| 27 | + ], |
| 28 | + project: ['**/*.{ts,vue,cjs,mjs}'], |
| 29 | + ignore: ['test/fixtures/**'], |
| 30 | + ignoreDependencies: [ |
| 31 | + '@iconify-json/*', |
| 32 | + '@vercel/kv', |
| 33 | + '@voidzero-dev/vite-plus-core', |
| 34 | + 'vite-plus!', |
| 35 | + 'h3', |
| 36 | + /** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */ |
| 37 | + 'unplugin-vue-router', |
| 38 | + 'vite-plugin-pwa', |
| 39 | + |
| 40 | + /** Some components import types from here, but installing it directly could lead to a version mismatch */ |
| 41 | + 'vue-router', |
| 42 | + ], |
| 43 | + ignoreUnresolved: ['#components', '#oauth/config'], |
| 44 | + }, |
| 45 | + 'cli': { |
| 46 | + project: ['src/**/*.ts!'], |
| 47 | + }, |
| 48 | + 'docs': { |
| 49 | + entry: ['app/**/*.{ts,vue}'], |
| 50 | + ignoreDependencies: ['docus', 'better-sqlite3', 'nuxt!'], |
| 51 | + }, |
| 52 | + }, |
| 53 | +} |
| 54 | + |
| 55 | +export default config |
0 commit comments