@knip/mcp 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/docs/docs/features/compilers.md +11 -0
- package/src/docs/docs/reference/faq.md +3 -3
- package/src/docs/docs/reference/plugins/angular.md +5 -6
- package/src/docs/docs/reference/plugins/astro-db.md +6 -6
- package/src/docs/docs/reference/plugins/astro-og-canvas.md +1 -3
- package/src/docs/docs/reference/plugins/astro.md +5 -6
- package/src/docs/docs/reference/plugins/ava.md +6 -6
- package/src/docs/docs/reference/plugins/babel.md +2 -5
- package/src/docs/docs/reference/plugins/biome.md +6 -6
- package/src/docs/docs/reference/plugins/bumpp.md +2 -5
- package/src/docs/docs/reference/plugins/bun.md +5 -6
- package/src/docs/docs/reference/plugins/c8.md +2 -5
- package/src/docs/docs/reference/plugins/capacitor.md +5 -6
- package/src/docs/docs/reference/plugins/changelogen.md +2 -5
- package/src/docs/docs/reference/plugins/changelogithub.md +2 -5
- package/src/docs/docs/reference/plugins/changesets.md +5 -6
- package/src/docs/docs/reference/plugins/commitizen.md +7 -6
- package/src/docs/docs/reference/plugins/commitlint.md +2 -5
- package/src/docs/docs/reference/plugins/convex.md +6 -6
- package/src/docs/docs/reference/plugins/create-typescript-app.md +5 -6
- package/src/docs/docs/reference/plugins/cspell.md +2 -5
- package/src/docs/docs/reference/plugins/cucumber.md +8 -7
- package/src/docs/docs/reference/plugins/cypress.md +5 -6
- package/src/docs/docs/reference/plugins/danger.md +5 -6
- package/src/docs/docs/reference/plugins/dependency-cruiser.md +6 -8
- package/src/docs/docs/reference/plugins/docusaurus.md +5 -6
- package/src/docs/docs/reference/plugins/dotenv.md +2 -5
- package/src/docs/docs/reference/plugins/drizzle.md +5 -6
- package/src/docs/docs/reference/plugins/eleventy.md +10 -7
- package/src/docs/docs/reference/plugins/eslint.md +5 -12
- package/src/docs/docs/reference/plugins/execa.md +1 -3
- package/src/docs/docs/reference/plugins/expo.md +10 -7
- package/src/docs/docs/reference/plugins/expressive-code.md +5 -6
- package/src/docs/docs/reference/plugins/gatsby.md +2 -5
- package/src/docs/docs/reference/plugins/github-action.md +5 -6
- package/src/docs/docs/reference/plugins/github-actions.md +6 -6
- package/src/docs/docs/reference/plugins/glob.md +2 -5
- package/src/docs/docs/reference/plugins/graphql-codegen.md +2 -5
- package/src/docs/docs/reference/plugins/hardhat.md +5 -6
- package/src/docs/docs/reference/plugins/husky.md +2 -5
- package/src/docs/docs/reference/plugins/i18next-parser.md +6 -8
- package/src/docs/docs/reference/plugins/jest.md +7 -8
- package/src/docs/docs/reference/plugins/karma.md +2 -5
- package/src/docs/docs/reference/plugins/knex.md +5 -6
- package/src/docs/docs/reference/plugins/ladle.md +8 -7
- package/src/docs/docs/reference/plugins/lefthook.md +2 -5
- package/src/docs/docs/reference/plugins/lint-staged.md +2 -5
- package/src/docs/docs/reference/plugins/linthtml.md +2 -5
- package/src/docs/docs/reference/plugins/lockfile-lint.md +2 -5
- package/src/docs/docs/reference/plugins/lost-pixel.md +5 -6
- package/src/docs/docs/reference/plugins/markdownlint.md +6 -6
- package/src/docs/docs/reference/plugins/mdx.md +5 -6
- package/src/docs/docs/reference/plugins/mdxlint.md +2 -5
- package/src/docs/docs/reference/plugins/metro.md +9 -6
- package/src/docs/docs/reference/plugins/mocha.md +10 -9
- package/src/docs/docs/reference/plugins/moonrepo.md +7 -6
- package/src/docs/docs/reference/plugins/msw.md +8 -7
- package/src/docs/docs/reference/plugins/nano-staged.md +2 -5
- package/src/docs/docs/reference/plugins/nest.md +8 -6
- package/src/docs/docs/reference/plugins/netlify.md +8 -7
- package/src/docs/docs/reference/plugins/next-intl.md +5 -6
- package/src/docs/docs/reference/plugins/next-mdx.md +8 -7
- package/src/docs/docs/reference/plugins/next.md +5 -6
- package/src/docs/docs/reference/plugins/nitro.md +6 -8
- package/src/docs/docs/reference/plugins/node-modules-inspector.md +3 -7
- package/src/docs/docs/reference/plugins/node.md +6 -8
- package/src/docs/docs/reference/plugins/nodemon.md +2 -5
- package/src/docs/docs/reference/plugins/npm-package-json-lint.md +2 -5
- package/src/docs/docs/reference/plugins/nuxt.md +5 -6
- package/src/docs/docs/reference/plugins/nx.md +4 -9
- package/src/docs/docs/reference/plugins/nyc.md +2 -5
- package/src/docs/docs/reference/plugins/oclif.md +5 -6
- package/src/docs/docs/reference/plugins/openapi-ts.md +2 -5
- package/src/docs/docs/reference/plugins/oxfmt.md +8 -8
- package/src/docs/docs/reference/plugins/oxlint.md +7 -8
- package/src/docs/docs/reference/plugins/panda-css.md +33 -0
- package/src/docs/docs/reference/plugins/parcel.md +5 -6
- package/src/docs/docs/reference/plugins/payload.md +6 -6
- package/src/docs/docs/reference/plugins/playwright-ct.md +5 -6
- package/src/docs/docs/reference/plugins/playwright-test.md +2 -5
- package/src/docs/docs/reference/plugins/playwright.md +9 -9
- package/src/docs/docs/reference/plugins/plop.md +5 -6
- package/src/docs/docs/reference/plugins/pm2.md +2 -5
- package/src/docs/docs/reference/plugins/pnpm.md +5 -6
- package/src/docs/docs/reference/plugins/postcss.md +2 -5
- package/src/docs/docs/reference/plugins/preconstruct.md +5 -6
- package/src/docs/docs/reference/plugins/prettier.md +2 -5
- package/src/docs/docs/reference/plugins/prisma.md +7 -8
- package/src/docs/docs/reference/plugins/qwik.md +5 -6
- package/src/docs/docs/reference/plugins/raycast.md +5 -6
- package/src/docs/docs/reference/plugins/react-cosmos.md +5 -6
- package/src/docs/docs/reference/plugins/react-native.md +5 -6
- package/src/docs/docs/reference/plugins/react-router.md +2 -5
- package/src/docs/docs/reference/plugins/relay.md +7 -8
- package/src/docs/docs/reference/plugins/release-it.md +6 -6
- package/src/docs/docs/reference/plugins/remark.md +2 -5
- package/src/docs/docs/reference/plugins/remix.md +2 -5
- package/src/docs/docs/reference/plugins/rolldown.md +33 -0
- package/src/docs/docs/reference/plugins/rollup.md +6 -8
- package/src/docs/docs/reference/plugins/rsbuild.md +5 -6
- package/src/docs/docs/reference/plugins/rslib.md +5 -6
- package/src/docs/docs/reference/plugins/rspack.md +5 -6
- package/src/docs/docs/reference/plugins/rstest.md +5 -6
- package/src/docs/docs/reference/plugins/sanity.md +2 -5
- package/src/docs/docs/reference/plugins/semantic-release.md +2 -5
- package/src/docs/docs/reference/plugins/sentry.md +5 -6
- package/src/docs/docs/reference/plugins/simple-git-hooks.md +2 -5
- package/src/docs/docs/reference/plugins/size-limit.md +2 -5
- package/src/docs/docs/reference/plugins/sst.md +5 -6
- package/src/docs/docs/reference/plugins/starlight.md +5 -6
- package/src/docs/docs/reference/plugins/stencil.md +36 -0
- package/src/docs/docs/reference/plugins/storybook.md +8 -7
- package/src/docs/docs/reference/plugins/stryker.md +5 -6
- package/src/docs/docs/reference/plugins/stylelint.md +2 -5
- package/src/docs/docs/reference/plugins/svelte.md +6 -6
- package/src/docs/docs/reference/plugins/sveltekit.md +5 -6
- package/src/docs/docs/reference/plugins/svgo.md +5 -6
- package/src/docs/docs/reference/plugins/svgr.md +2 -5
- package/src/docs/docs/reference/plugins/swc.md +5 -6
- package/src/docs/docs/reference/plugins/syncpack.md +2 -5
- package/src/docs/docs/reference/plugins/tailwind.md +14 -7
- package/src/docs/docs/reference/plugins/tanstack-router.md +8 -7
- package/src/docs/docs/reference/plugins/taskfile.md +2 -5
- package/src/docs/docs/reference/plugins/travis.md +5 -6
- package/src/docs/docs/reference/plugins/ts-node.md +2 -5
- package/src/docs/docs/reference/plugins/tsdown.md +7 -8
- package/src/docs/docs/reference/plugins/tsup.md +7 -8
- package/src/docs/docs/reference/plugins/tsx.md +6 -8
- package/src/docs/docs/reference/plugins/typedoc.md +3 -7
- package/src/docs/docs/reference/plugins/typescript.md +7 -10
- package/src/docs/docs/reference/plugins/unbuild.md +5 -6
- package/src/docs/docs/reference/plugins/unocss.md +2 -5
- package/src/docs/docs/reference/plugins/vercel-og.md +2 -5
- package/src/docs/docs/reference/plugins/vike.md +2 -5
- package/src/docs/docs/reference/plugins/vite.md +6 -8
- package/src/docs/docs/reference/plugins/vitepress.md +2 -5
- package/src/docs/docs/reference/plugins/vitest.md +3 -7
- package/src/docs/docs/reference/plugins/vue.md +5 -6
- package/src/docs/docs/reference/plugins/webdriver-io.md +5 -6
- package/src/docs/docs/reference/plugins/webpack.md +6 -8
- package/src/docs/docs/reference/plugins/wireit.md +5 -6
- package/src/docs/docs/reference/plugins/wrangler.md +5 -6
- package/src/docs/docs/reference/plugins/xo.md +6 -6
- package/src/docs/docs/reference/plugins/yarn.md +8 -7
- package/src/docs/docs/reference/plugins/yorkie.md +5 -6
- package/src/docs/docs/reference/plugins/zx.md +1 -3
- package/src/docs/docs/reference/plugins.md +8 -1
- package/src/docs/docs/sponsors.mdx +2 -2
- package/src/docs/docs/writing-a-plugin/index.md +2 -2
- package/src/texts.js +7 -4
- package/src/tools.js +22 -7
- /package/{license → LICENSE} +0 -0
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"tsx": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,7 +26,7 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Shell commands
|
|
30
32
|
|
|
@@ -37,12 +39,8 @@ nodeImportArgs: true
|
|
|
37
39
|
args: (args ) => args.filter(arg => arg !== 'watch')
|
|
38
40
|
```
|
|
39
41
|
|
|
40
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
42
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
41
43
|
|
|
42
44
|
## Generated from source
|
|
43
45
|
|
|
44
|
-
This page was generated from the [tsx plugin source code]
|
|
45
|
-
|
|
46
|
-
[1]: ../../explanations/plugins.md
|
|
47
|
-
[2]: ../../features/script-parser.md
|
|
48
|
-
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/tsx/index.ts
|
|
46
|
+
This page was generated from the [tsx plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/tsx/index.ts).
|
|
@@ -31,7 +31,7 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
31
|
|
|
32
32
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
33
|
|
|
34
|
-
See [Plugins]
|
|
34
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
35
35
|
|
|
36
36
|
## Shell commands
|
|
37
37
|
|
|
@@ -42,12 +42,8 @@ binary. Configuration:
|
|
|
42
42
|
resolve: ["plugin", "theme"]
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
45
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
46
46
|
|
|
47
47
|
## Generated from source
|
|
48
48
|
|
|
49
|
-
This page was generated from the [typedoc plugin source code]
|
|
50
|
-
|
|
51
|
-
[1]: ../../explanations/plugins.md
|
|
52
|
-
[2]: ../../features/script-parser.md
|
|
53
|
-
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typedoc/index.ts
|
|
49
|
+
This page was generated from the [typedoc plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typedoc/index.ts).
|
|
@@ -19,7 +19,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
21
|
"typescript": {
|
|
22
|
-
"config": [
|
|
22
|
+
"config": [
|
|
23
|
+
"tsconfig.json"
|
|
24
|
+
]
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
```
|
|
@@ -28,11 +30,11 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
28
30
|
|
|
29
31
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
30
32
|
|
|
31
|
-
See [Plugins]
|
|
33
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
32
34
|
|
|
33
35
|
## Note
|
|
34
36
|
|
|
35
|
-
[What's up with that configurable tsconfig.json location?]
|
|
37
|
+
[What's up with that configurable tsconfig.json location?](/reference/faq#whats-up-with-that-configurable-tsconfigjson-location)
|
|
36
38
|
|
|
37
39
|
## Shell commands
|
|
38
40
|
|
|
@@ -45,13 +47,8 @@ alias: {"project": ["p"]}
|
|
|
45
47
|
config: [["project", (p ) => (p.endsWith('.json') ? p : join(p, 'tsconfig.json'))]]
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
50
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
49
51
|
|
|
50
52
|
## Generated from source
|
|
51
53
|
|
|
52
|
-
This page was generated from the [typescript plugin source code]
|
|
53
|
-
|
|
54
|
-
[1]: ../../explanations/plugins.md
|
|
55
|
-
[2]: /reference/faq#whats-up-with-that-configurable-tsconfigjson-location
|
|
56
|
-
[3]: ../../features/script-parser.md
|
|
57
|
-
[4]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typescript/index.ts
|
|
54
|
+
This page was generated from the [typescript plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typescript/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"unbuild": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"build.config.{js,cjs,mjs,ts,mts,cts,json}"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [unbuild plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/unbuild/index.ts
|
|
33
|
+
This page was generated from the [unbuild plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/unbuild/index.ts).
|
|
@@ -29,11 +29,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
29
29
|
|
|
30
30
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
31
31
|
|
|
32
|
-
See [Plugins]
|
|
32
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
33
33
|
|
|
34
34
|
## Generated from source
|
|
35
35
|
|
|
36
|
-
This page was generated from the [unocss plugin source code]
|
|
37
|
-
|
|
38
|
-
[1]: ../../explanations/plugins.md
|
|
39
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/unocss/index.ts
|
|
36
|
+
This page was generated from the [unocss plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/unocss/index.ts).
|
|
@@ -31,11 +31,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
31
|
|
|
32
32
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
33
|
|
|
34
|
-
See [Plugins]
|
|
34
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
35
35
|
|
|
36
36
|
## Generated from source
|
|
37
37
|
|
|
38
|
-
This page was generated from the [vercel-og plugin source code]
|
|
39
|
-
|
|
40
|
-
[1]: ../../explanations/plugins.md
|
|
41
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vercel-og/index.ts
|
|
38
|
+
This page was generated from the [vercel-og plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vercel-og/index.ts).
|
|
@@ -27,11 +27,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
27
|
|
|
28
28
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
29
|
|
|
30
|
-
See [Plugins]
|
|
30
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
31
31
|
|
|
32
32
|
## Generated from source
|
|
33
33
|
|
|
34
|
-
This page was generated from the [vike plugin source code]
|
|
35
|
-
|
|
36
|
-
[1]: ../../explanations/plugins.md
|
|
37
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vike/index.ts
|
|
34
|
+
This page was generated from the [vike plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vike/index.ts).
|
|
@@ -19,7 +19,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
21
|
"vite": {
|
|
22
|
-
"config": [
|
|
22
|
+
"config": [
|
|
23
|
+
"vite.config.{js,mjs,ts,cjs,mts,cts}"
|
|
24
|
+
]
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
```
|
|
@@ -28,7 +30,7 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
28
30
|
|
|
29
31
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
30
32
|
|
|
31
|
-
See [Plugins]
|
|
33
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
32
34
|
|
|
33
35
|
## Shell commands
|
|
34
36
|
|
|
@@ -39,12 +41,8 @@ binary. Configuration:
|
|
|
39
41
|
config: true
|
|
40
42
|
```
|
|
41
43
|
|
|
42
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
44
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
43
45
|
|
|
44
46
|
## Generated from source
|
|
45
47
|
|
|
46
|
-
This page was generated from the [vite plugin source code]
|
|
47
|
-
|
|
48
|
-
[1]: ../../explanations/plugins.md
|
|
49
|
-
[2]: ../../features/script-parser.md
|
|
50
|
-
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vite/index.ts
|
|
48
|
+
This page was generated from the [vite plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vite/index.ts).
|
|
@@ -27,11 +27,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
27
|
|
|
28
28
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
29
|
|
|
30
|
-
See [Plugins]
|
|
30
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
31
31
|
|
|
32
32
|
## Generated from source
|
|
33
33
|
|
|
34
|
-
This page was generated from the [vitepress plugin source code]
|
|
35
|
-
|
|
36
|
-
[1]: ../../explanations/plugins.md
|
|
37
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitepress/index.ts
|
|
34
|
+
This page was generated from the [vitepress plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitepress/index.ts).
|
|
@@ -31,7 +31,7 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
31
|
|
|
32
32
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
33
|
|
|
34
|
-
See [Plugins]
|
|
34
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
35
35
|
|
|
36
36
|
## Shell commands
|
|
37
37
|
|
|
@@ -61,12 +61,8 @@ resolveInputs: (parsed ) => {
|
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
64
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
65
65
|
|
|
66
66
|
## Generated from source
|
|
67
67
|
|
|
68
|
-
This page was generated from the [vitest plugin source code]
|
|
69
|
-
|
|
70
|
-
[1]: ../../explanations/plugins.md
|
|
71
|
-
[2]: ../../features/script-parser.md
|
|
72
|
-
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitest/index.ts
|
|
68
|
+
This page was generated from the [vitest plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitest/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"vue": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"vue.config.{js,ts,mjs}"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [vue plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vue/index.ts
|
|
33
|
+
This page was generated from the [vue plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vue/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"webdriver-io": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"wdio.conf.{js,ts}"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [webdriver-io plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webdriver-io/index.ts
|
|
33
|
+
This page was generated from the [webdriver-io plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webdriver-io/index.ts).
|
|
@@ -19,7 +19,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
19
19
|
```json
|
|
20
20
|
{
|
|
21
21
|
"webpack": {
|
|
22
|
-
"config": [
|
|
22
|
+
"config": [
|
|
23
|
+
"webpack.config.{js,ts,mjs,cjs,mts,cts}"
|
|
24
|
+
]
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
```
|
|
@@ -28,7 +30,7 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
28
30
|
|
|
29
31
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
30
32
|
|
|
31
|
-
See [Plugins]
|
|
33
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
32
34
|
|
|
33
35
|
## Shell commands
|
|
34
36
|
|
|
@@ -44,12 +46,8 @@ resolveInputs: (parsed ) => {
|
|
|
44
46
|
}
|
|
45
47
|
```
|
|
46
48
|
|
|
47
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
49
|
+
The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
|
|
48
50
|
|
|
49
51
|
## Generated from source
|
|
50
52
|
|
|
51
|
-
This page was generated from the [webpack plugin source code]
|
|
52
|
-
|
|
53
|
-
[1]: ../../explanations/plugins.md
|
|
54
|
-
[2]: ../../features/script-parser.md
|
|
55
|
-
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webpack/index.ts
|
|
53
|
+
This page was generated from the [webpack plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webpack/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"wireit": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [wireit plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wireit/index.ts
|
|
33
|
+
This page was generated from the [wireit plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wireit/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"wrangler": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"wrangler.{json,jsonc,toml}"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [wrangler plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wrangler/index.ts
|
|
33
|
+
This page was generated from the [wrangler plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wrangler/index.ts).
|
|
@@ -21,7 +21,10 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
21
21
|
".xo-config.{js,cjs,json}",
|
|
22
22
|
"xo.config.{js,cjs}"
|
|
23
23
|
],
|
|
24
|
-
"entry": [
|
|
24
|
+
"entry": [
|
|
25
|
+
".xo-config.{js,cjs}",
|
|
26
|
+
"xo.config.{js,cjs}"
|
|
27
|
+
]
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
```
|
|
@@ -30,11 +33,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
30
33
|
|
|
31
34
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
32
35
|
|
|
33
|
-
See [Plugins]
|
|
36
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
34
37
|
|
|
35
38
|
## Generated from source
|
|
36
39
|
|
|
37
|
-
This page was generated from the [xo plugin source code]
|
|
38
|
-
|
|
39
|
-
[1]: ../../explanations/plugins.md
|
|
40
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/xo/index.ts
|
|
40
|
+
This page was generated from the [xo plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/xo/index.ts).
|
|
@@ -15,8 +15,12 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"yarn": {
|
|
18
|
-
"config": [
|
|
19
|
-
|
|
18
|
+
"config": [
|
|
19
|
+
".yarnrc.yml"
|
|
20
|
+
],
|
|
21
|
+
"entry": [
|
|
22
|
+
"yarn.config.cjs"
|
|
23
|
+
]
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
```
|
|
@@ -25,11 +29,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
25
29
|
|
|
26
30
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
27
31
|
|
|
28
|
-
See [Plugins]
|
|
32
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
29
33
|
|
|
30
34
|
## Generated from source
|
|
31
35
|
|
|
32
|
-
This page was generated from the [yarn plugin source code]
|
|
33
|
-
|
|
34
|
-
[1]: ../../explanations/plugins.md
|
|
35
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yarn/index.ts
|
|
36
|
+
This page was generated from the [yarn plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yarn/index.ts).
|
|
@@ -15,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"yorkie": {
|
|
18
|
-
"config": [
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json"
|
|
20
|
+
]
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
```
|
|
@@ -24,11 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
24
26
|
|
|
25
27
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
28
|
|
|
27
|
-
See [Plugins]
|
|
29
|
+
See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
|
|
28
30
|
|
|
29
31
|
## Generated from source
|
|
30
32
|
|
|
31
|
-
This page was generated from the [yorkie plugin source code]
|
|
32
|
-
|
|
33
|
-
[1]: ../../explanations/plugins.md
|
|
34
|
-
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yorkie/index.ts
|
|
33
|
+
This page was generated from the [yorkie plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yorkie/index.ts).
|
|
@@ -10,6 +10,4 @@ This plugin is enabled if `"zx"` is listed in `"dependencies"` or `"devDependenc
|
|
|
10
10
|
|
|
11
11
|
## Generated from source
|
|
12
12
|
|
|
13
|
-
This page was generated from the [zx plugin source code]
|
|
14
|
-
|
|
15
|
-
[1]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/zx/index.ts
|
|
13
|
+
This page was generated from the [zx plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/zx/index.ts).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Plugins (
|
|
2
|
+
title: Plugins (144)
|
|
3
3
|
tableOfContents: false
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -74,7 +74,10 @@ tableOfContents: false
|
|
|
74
74
|
- [Nx](/reference/plugins/nx "Nx")
|
|
75
75
|
- [nyc](/reference/plugins/nyc "nyc")
|
|
76
76
|
- [oclif](/reference/plugins/oclif "oclif")
|
|
77
|
+
- [openapi-ts](/reference/plugins/openapi-ts "openapi-ts")
|
|
78
|
+
- [Oxfmt](/reference/plugins/oxfmt "Oxfmt")
|
|
77
79
|
- [Oxlint](/reference/plugins/oxlint "Oxlint")
|
|
80
|
+
- [Panda CSS](/reference/plugins/panda-css "Panda CSS")
|
|
78
81
|
- [Parcel](/reference/plugins/parcel "Parcel")
|
|
79
82
|
- [Payload CMS](/reference/plugins/payload "Payload CMS")
|
|
80
83
|
- [Playwright](/reference/plugins/playwright "Playwright")
|
|
@@ -88,6 +91,7 @@ tableOfContents: false
|
|
|
88
91
|
- [Prettier](/reference/plugins/prettier "Prettier")
|
|
89
92
|
- [Prisma](/reference/plugins/prisma "Prisma")
|
|
90
93
|
- [Qwik](/reference/plugins/qwik "Qwik")
|
|
94
|
+
- [Raycast](/reference/plugins/raycast "Raycast")
|
|
91
95
|
- [React Cosmos](/reference/plugins/react-cosmos "React Cosmos")
|
|
92
96
|
- [React Native](/reference/plugins/react-native "React Native")
|
|
93
97
|
- [React Router](/reference/plugins/react-router "React Router")
|
|
@@ -95,17 +99,20 @@ tableOfContents: false
|
|
|
95
99
|
- [Release It!](/reference/plugins/release-it "Release It!")
|
|
96
100
|
- [Remark](/reference/plugins/remark "Remark")
|
|
97
101
|
- [Remix](/reference/plugins/remix "Remix")
|
|
102
|
+
- [Rolldown](/reference/plugins/rolldown "Rolldown")
|
|
98
103
|
- [Rollup](/reference/plugins/rollup "Rollup")
|
|
99
104
|
- [Rsbuild](/reference/plugins/rsbuild "Rsbuild")
|
|
100
105
|
- [Rslib](/reference/plugins/rslib "Rslib")
|
|
101
106
|
- [Rspack](/reference/plugins/rspack "Rspack")
|
|
102
107
|
- [Rstest](/reference/plugins/rstest "Rstest")
|
|
108
|
+
- [Sanity](/reference/plugins/sanity "Sanity")
|
|
103
109
|
- [Semantic Release](/reference/plugins/semantic-release "Semantic Release")
|
|
104
110
|
- [Sentry](/reference/plugins/sentry "Sentry")
|
|
105
111
|
- [simple-git-hooks](/reference/plugins/simple-git-hooks "simple-git-hooks")
|
|
106
112
|
- [size-limit](/reference/plugins/size-limit "size-limit")
|
|
107
113
|
- [SST](/reference/plugins/sst "SST")
|
|
108
114
|
- [Starlight](/reference/plugins/starlight "Starlight")
|
|
115
|
+
- [Stencil](/reference/plugins/stencil "Stencil")
|
|
109
116
|
- [Storybook](/reference/plugins/storybook "Storybook")
|
|
110
117
|
- [Stryker](/reference/plugins/stryker "Stryker")
|
|
111
118
|
- [Stylelint](/reference/plugins/stylelint "Stylelint")
|
|
@@ -39,8 +39,8 @@ one year before that.
|
|
|
39
39
|
|
|
40
40
|
<SponsorsChart />
|
|
41
41
|
|
|
42
|
-
- The monthly aggregated average over the charted period is $
|
|
43
|
-
- The monthly recurring average without one-time payments is $
|
|
42
|
+
- The monthly aggregated average over the charted period is $520.
|
|
43
|
+
- The monthly recurring average without one-time payments is $362.
|
|
44
44
|
- GitHub Sponsors is for my GitHub account. This has more repositories, but in
|
|
45
45
|
practice targets mostly Knip (and perhaps some [release-it][5]).
|
|
46
46
|
- [Chart generated][6] using [Venz][7].
|
|
@@ -366,6 +366,6 @@ plugin, this might be the right time to open a pull request!
|
|
|
366
366
|
[2]: ../reference/plugins.md
|
|
367
367
|
[3]: ../explanations/plugins.md#entry-files-from-config-files
|
|
368
368
|
[4]: https://github.com/webpro-nl/knip/blob/6a6954386b33ee8a2919005230a4bc094e11bc03/knip.json#L12
|
|
369
|
-
[5]:
|
|
369
|
+
[5]: ../writing-a-plugin/inputs.md
|
|
370
370
|
[6]: ../features/script-parser.md
|
|
371
|
-
[7]:
|
|
371
|
+
[7]: ../writing-a-plugin/argument-parsing.md
|
package/src/texts.js
CHANGED
|
@@ -56,13 +56,16 @@ export const ERROR_HINT = `For unexpected errors (exit code 2) such as "error lo
|
|
|
56
56
|
- If no config file exists, create knip.json in the project root
|
|
57
57
|
- Run knip again`;
|
|
58
58
|
|
|
59
|
+
export const UNCONFIGURED_HINT =
|
|
60
|
+
'Issues are suppressed because the project is not yet configured. Reported issues might be false positives. Address configuration hints first, then re-run to get the actual issues.';
|
|
61
|
+
|
|
59
62
|
export const CONFIG_REVIEW_HINT = `Review the existing configuration for potential improvements:
|
|
60
63
|
|
|
61
|
-
- Never use "ignore" patterns (hides real issues!), always prefer specific solutions
|
|
62
|
-
- Many unused exported types
|
|
64
|
+
- Never use "ignore" patterns (hides real issues!), always prefer specific solutions; other ignore* options are allowed
|
|
65
|
+
- Many unused exported types → try ignoreExportsUsedInFile: { interface: true, type: true }
|
|
63
66
|
- Remove ignore patterns that don't match any files
|
|
64
|
-
- Remove redundant ignore patterns
|
|
67
|
+
- Remove redundant ignore patterns — Knip respects .gitignore (node_modules, dist, build, .git)
|
|
65
68
|
- Remove entry patterns covered by config defaults and auto-detected plugins
|
|
66
|
-
- Config files (e.g. vite.config.ts) showing as unused
|
|
69
|
+
- Config files (e.g. vite.config.ts) showing as unused → try enable or disable the plugin explicitly (vite: true)
|
|
67
70
|
- Dependencies matching Node.js builtins: add to ignoreDependencies (e.g. buffer, process)
|
|
68
71
|
- Unresolved imports from path aliases: add paths to Knip config (tsconfig.json semantics)`;
|
package/src/tools.js
CHANGED
|
@@ -3,7 +3,7 @@ import { dirname, join } from 'node:path';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import { createOptions, createSession, finalizeConfigurationHints, KNIP_CONFIG_LOCATIONS } from 'knip/session';
|
|
5
5
|
import { CURATED_RESOURCES } from './curated-resources.js';
|
|
6
|
-
import { CONFIG_REVIEW_HINT } from './texts.js';
|
|
6
|
+
import { CONFIG_REVIEW_HINT, UNCONFIGURED_HINT } from './texts.js';
|
|
7
7
|
|
|
8
8
|
export { ERROR_HINT } from './texts.js';
|
|
9
9
|
|
|
@@ -30,15 +30,30 @@ const docsDir = join(__dirname, './docs');
|
|
|
30
30
|
* @param {{ cwd: string, configFilePath: string | undefined }} options
|
|
31
31
|
*/
|
|
32
32
|
export function buildResults(results, options) {
|
|
33
|
+
const configurationHints = finalizeConfigurationHints(results, options);
|
|
34
|
+
|
|
35
|
+
const isSuppressIssues =
|
|
36
|
+
results.counters.total >= 10 &&
|
|
37
|
+
configurationHints.some(hint => hint.type === 'top-level-unconfigured' || hint.type === 'workspace-unconfigured');
|
|
38
|
+
|
|
39
|
+
const configFile = options.configFilePath
|
|
40
|
+
? { exists: true, filePath: options.configFilePath }
|
|
41
|
+
: { exists: false, locations: KNIP_CONFIG_LOCATIONS };
|
|
42
|
+
|
|
43
|
+
const reviewHint = isSuppressIssues ? UNCONFIGURED_HINT : options.configFilePath ? CONFIG_REVIEW_HINT : undefined;
|
|
44
|
+
const files = isSuppressIssues ? [] : Array.from(results.issues.files);
|
|
45
|
+
const issues = isSuppressIssues
|
|
46
|
+
? []
|
|
47
|
+
: Object.fromEntries(Object.entries(results.issues).filter(([key]) => key !== 'files' && key !== '_files'));
|
|
48
|
+
|
|
33
49
|
return {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
configurationHints: finalizeConfigurationHints(results, options),
|
|
50
|
+
reviewHint,
|
|
51
|
+
configFile,
|
|
52
|
+
configurationHints,
|
|
38
53
|
counters: results.counters,
|
|
39
54
|
enabledPlugins: results.enabledPlugins,
|
|
40
|
-
files
|
|
41
|
-
issues
|
|
55
|
+
files,
|
|
56
|
+
issues,
|
|
42
57
|
};
|
|
43
58
|
}
|
|
44
59
|
|
/package/{license → LICENSE}
RENAMED
|
File without changes
|