[READ-ONLY] a fast, modern browser for the npm registry
at main 69 lines 2.0 kB view raw
1import type { KnipConfig } from 'knip' 2 3const 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', 46 47 /** Some components import types from here, but installing it directly could lead to a version mismatch */ 48 'vue-router', 49 50 /** Oxlint plugins don't get picked up yet */ 51 '@e18e/eslint-plugin', 52 'eslint-plugin-regexp', 53 54 /** Used in test/e2e/helpers/ which is excluded from knip project scope */ 55 'h3-next', 56 ], 57 ignoreUnresolved: ['#components', '#oauth/config'], 58 }, 59 'cli': { 60 project: ['src/**/*.ts!', '!src/mock-*.ts'], 61 }, 62 'docs': { 63 entry: ['app/**/*.{ts,vue}'], 64 ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc', 'nuxt!'], 65 }, 66 }, 67} 68 69export default config