Skip to content

Commit d3e0504

Browse files
committed
Reduce knip config
1 parent ad2b174 commit d3e0504

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

knip.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,12 @@ const config: KnipConfig = {
44
workspaces: {
55
'.': {
66
entry: [
7-
'app/pages/**/*.vue!',
8-
'app/components/**/*.vue!',
9-
'app/components/**/*.d.vue.ts!',
10-
'app/composables/**/*.ts!',
11-
'app/middleware/**/*.ts!',
12-
'app/plugins/**/*.ts!',
13-
'app/utils/**/*.ts!',
14-
'server/**/*.ts!',
15-
'modules/**/*.ts!',
16-
'config/**/*.ts!',
17-
'lunaria/**/*.ts!',
18-
'shared/**/*.ts!',
197
'i18n/**/*.ts',
208
'lunaria.config.ts',
219
'pwa-assets.config.ts',
2210
'.lighthouserc.cjs',
2311
'lighthouse-setup.cjs',
24-
'uno-preset-rtl.ts!',
12+
'uno-preset-*.ts!',
2513
'scripts/**/*.ts',
2614
],
2715
project: [
@@ -45,24 +33,21 @@ const config: KnipConfig = {
4533
/** Some components import types from here, but installing it directly could lead to a version mismatch */
4634
'vue-router',
4735

48-
/** Required by @nuxtjs/i18n at runtime but not directly imported in production code */
49-
'@intlify/shared',
50-
5136
/** Oxlint plugins don't get picked up yet */
5237
'@e18e/eslint-plugin',
5338
'eslint-plugin-regexp',
5439

5540
/** Used in test/e2e/helpers/ which is excluded from knip project scope */
5641
'h3-next',
5742
],
58-
ignoreUnresolved: ['#components', '#oauth/config'],
43+
ignoreUnresolved: ['#oauth/config'],
5944
},
6045
'cli': {
6146
project: ['src/**/*.ts!', '!src/mock-*.ts'],
6247
},
6348
'docs': {
6449
entry: ['app/**/*.{ts,vue,css}'],
65-
ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc', 'nuxt!'],
50+
ignoreDependencies: ['docus', 'better-sqlite3', '@nuxtjs/mdc'],
6651
},
6752
},
6853
}

0 commit comments

Comments
 (0)