Skip to content

Commit 37b9169

Browse files
committed
chore: convert knip config to ts
1 parent d1fdc3d commit 37b9169

2 files changed

Lines changed: 52 additions & 49 deletions

File tree

knip.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

knip.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
ignoreDependencies: [
30+
'@iconify-json/*',
31+
'@vercel/kv',
32+
'@voidzero-dev/vite-plus-core',
33+
'vite-plus!',
34+
'h3',
35+
'puppeteer',
36+
'unplugin-vue-router',
37+
'vite-plugin-pwa',
38+
'vue-router',
39+
],
40+
ignoreUnresolved: ['#components', '#oauth/config'],
41+
},
42+
'cli': {
43+
project: ['src/**/*.ts!'],
44+
},
45+
'docs': {
46+
entry: ['app/**/*.{ts,vue}'],
47+
ignoreDependencies: ['docus', 'better-sqlite3', 'nuxt!'],
48+
},
49+
},
50+
}
51+
52+
export default config

0 commit comments

Comments
 (0)