@knip/mcp 0.0.21 → 0.0.22
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 +2 -2
- package/src/docs/docs/blog/brief-history.md +1 -2
- package/src/docs/docs/blog/for-editors-and-agents.md +1 -2
- package/src/docs/docs/guides/issue-reproduction.md +4 -8
- package/src/docs/docs/guides/using-knip-in-ci.md +2 -2
- package/src/docs/docs/reference/integrations.md +1 -2
- package/src/docs/docs/reference/jsdoc-tsdoc-tags.md +1 -1
- package/src/docs/docs/reference/plugins/angular.md +34 -0
- package/src/docs/docs/reference/plugins/astro-db.md +34 -0
- package/src/docs/docs/reference/plugins/astro-og-canvas.md +15 -0
- package/src/docs/docs/reference/plugins/astro.md +44 -0
- package/src/docs/docs/reference/plugins/ava.md +46 -0
- package/src/docs/docs/reference/plugins/babel.md +41 -0
- package/src/docs/docs/reference/plugins/biome.md +34 -0
- package/src/docs/docs/reference/plugins/bumpp.md +41 -0
- package/src/docs/docs/reference/plugins/bun.md +34 -0
- package/src/docs/docs/reference/plugins/c8.md +29 -0
- package/src/docs/docs/reference/plugins/capacitor.md +36 -0
- package/src/docs/docs/reference/plugins/changelogen.md +41 -0
- package/src/docs/docs/reference/plugins/changelogithub.md +41 -0
- package/src/docs/docs/reference/plugins/changesets.md +34 -0
- package/src/docs/docs/reference/plugins/commitizen.md +34 -0
- package/src/docs/docs/reference/plugins/commitlint.md +42 -0
- package/src/docs/docs/reference/plugins/convex.md +34 -0
- package/src/docs/docs/reference/plugins/create-typescript-app.md +34 -0
- package/src/docs/docs/reference/plugins/cspell.md +39 -0
- package/src/docs/docs/reference/plugins/cucumber.md +35 -0
- package/src/docs/docs/reference/plugins/cypress.md +41 -0
- package/src/docs/docs/reference/plugins/danger.md +34 -0
- package/src/docs/docs/reference/plugins/dependency-cruiser.md +46 -0
- package/src/docs/docs/reference/plugins/docusaurus.md +40 -0
- package/src/docs/docs/reference/plugins/dotenv.md +32 -0
- package/src/docs/docs/reference/plugins/drizzle.md +34 -0
- package/src/docs/docs/reference/plugins/eleventy.md +35 -0
- package/src/docs/docs/reference/plugins/eslint.md +86 -0
- package/src/docs/docs/reference/plugins/execa.md +15 -0
- package/src/docs/docs/reference/plugins/expo.md +35 -0
- package/src/docs/docs/reference/plugins/expressive-code.md +40 -0
- package/src/docs/docs/reference/plugins/gatsby.md +49 -0
- package/src/docs/docs/reference/plugins/github-action.md +34 -0
- package/src/docs/docs/reference/plugins/github-actions.md +34 -0
- package/src/docs/docs/reference/plugins/glob.md +29 -0
- package/src/docs/docs/reference/plugins/graphql-codegen.md +46 -0
- package/src/docs/docs/reference/plugins/hardhat.md +34 -0
- package/src/docs/docs/reference/plugins/husky.md +40 -0
- package/src/docs/docs/reference/plugins/i18next-parser.md +46 -0
- package/src/docs/docs/reference/plugins/jest.md +51 -0
- package/src/docs/docs/reference/plugins/karma.md +39 -0
- package/src/docs/docs/reference/plugins/knex.md +34 -0
- package/src/docs/docs/reference/plugins/ladle.md +39 -0
- package/src/docs/docs/reference/plugins/lefthook.md +46 -0
- package/src/docs/docs/reference/plugins/lint-staged.md +48 -0
- package/src/docs/docs/reference/plugins/linthtml.md +41 -0
- package/src/docs/docs/reference/plugins/lockfile-lint.md +41 -0
- package/src/docs/docs/reference/plugins/lost-pixel.md +34 -0
- package/src/docs/docs/reference/plugins/markdownlint.md +34 -0
- package/src/docs/docs/reference/plugins/mdx.md +38 -0
- package/src/docs/docs/reference/plugins/mdxlint.md +38 -0
- package/src/docs/docs/reference/plugins/metro.md +46 -0
- package/src/docs/docs/reference/plugins/mocha.md +47 -0
- package/src/docs/docs/reference/plugins/moonrepo.md +34 -0
- package/src/docs/docs/reference/plugins/msw.md +35 -0
- package/src/docs/docs/reference/plugins/nano-staged.md +39 -0
- package/src/docs/docs/reference/plugins/nest.md +36 -0
- package/src/docs/docs/reference/plugins/netlify.md +41 -0
- package/src/docs/docs/reference/plugins/next-intl.md +34 -0
- package/src/docs/docs/reference/plugins/next-mdx.md +35 -0
- package/src/docs/docs/reference/plugins/next.md +52 -0
- package/src/docs/docs/reference/plugins/nitro.md +52 -0
- package/src/docs/docs/reference/plugins/node-modules-inspector.md +49 -0
- package/src/docs/docs/reference/plugins/node.md +50 -0
- package/src/docs/docs/reference/plugins/nodemon.md +30 -0
- package/src/docs/docs/reference/plugins/npm-package-json-lint.md +41 -0
- package/src/docs/docs/reference/plugins/nuxt.md +55 -0
- package/src/docs/docs/reference/plugins/nx.md +62 -0
- package/src/docs/docs/reference/plugins/nyc.md +39 -0
- package/src/docs/docs/reference/plugins/oclif.md +34 -0
- package/src/docs/docs/reference/plugins/openapi-ts.md +41 -0
- package/src/docs/docs/reference/plugins/oxfmt.md +46 -0
- package/src/docs/docs/reference/plugins/oxlint.md +46 -0
- package/src/docs/docs/reference/plugins/parcel.md +38 -0
- package/src/docs/docs/reference/plugins/payload.md +40 -0
- package/src/docs/docs/reference/plugins/playwright-ct.md +40 -0
- package/src/docs/docs/reference/plugins/playwright-test.md +29 -0
- package/src/docs/docs/reference/plugins/playwright.md +49 -0
- package/src/docs/docs/reference/plugins/plop.md +34 -0
- package/src/docs/docs/reference/plugins/pm2.md +37 -0
- package/src/docs/docs/reference/plugins/pnpm.md +34 -0
- package/src/docs/docs/reference/plugins/postcss.md +46 -0
- package/src/docs/docs/reference/plugins/preconstruct.md +34 -0
- package/src/docs/docs/reference/plugins/prettier.md +39 -0
- package/src/docs/docs/reference/plugins/prisma.md +62 -0
- package/src/docs/docs/reference/plugins/qwik.md +40 -0
- package/src/docs/docs/reference/plugins/raycast.md +34 -0
- package/src/docs/docs/reference/plugins/react-cosmos.md +40 -0
- package/src/docs/docs/reference/plugins/react-native.md +34 -0
- package/src/docs/docs/reference/plugins/react-router.md +37 -0
- package/src/docs/docs/reference/plugins/relay.md +53 -0
- package/src/docs/docs/reference/plugins/release-it.md +34 -0
- package/src/docs/docs/reference/plugins/remark.md +40 -0
- package/src/docs/docs/reference/plugins/remix.md +43 -0
- package/src/docs/docs/reference/plugins/rollup.md +49 -0
- package/src/docs/docs/reference/plugins/rsbuild.md +34 -0
- package/src/docs/docs/reference/plugins/rslib.md +34 -0
- package/src/docs/docs/reference/plugins/rspack.md +34 -0
- package/src/docs/docs/reference/plugins/rstest.md +34 -0
- package/src/docs/docs/reference/plugins/sanity.md +38 -0
- package/src/docs/docs/reference/plugins/semantic-release.md +41 -0
- package/src/docs/docs/reference/plugins/sentry.md +36 -0
- package/src/docs/docs/reference/plugins/simple-git-hooks.md +38 -0
- package/src/docs/docs/reference/plugins/size-limit.md +38 -0
- package/src/docs/docs/reference/plugins/sst.md +34 -0
- package/src/docs/docs/reference/plugins/starlight.md +34 -0
- package/src/docs/docs/reference/plugins/storybook.md +43 -0
- package/src/docs/docs/reference/plugins/stryker.md +34 -0
- package/src/docs/docs/reference/plugins/stylelint.md +41 -0
- package/src/docs/docs/reference/plugins/svelte.md +34 -0
- package/src/docs/docs/reference/plugins/sveltekit.md +34 -0
- package/src/docs/docs/reference/plugins/svgo.md +38 -0
- package/src/docs/docs/reference/plugins/svgr.md +43 -0
- package/src/docs/docs/reference/plugins/swc.md +34 -0
- package/src/docs/docs/reference/plugins/syncpack.md +41 -0
- package/src/docs/docs/reference/plugins/tailwind.md +34 -0
- package/src/docs/docs/reference/plugins/tanstack-router.md +47 -0
- package/src/docs/docs/reference/plugins/taskfile.md +43 -0
- package/src/docs/docs/reference/plugins/travis.md +34 -0
- package/src/docs/docs/reference/plugins/ts-node.md +30 -0
- package/src/docs/docs/reference/plugins/tsdown.md +46 -0
- package/src/docs/docs/reference/plugins/tsup.md +46 -0
- package/src/docs/docs/reference/plugins/tsx.md +48 -0
- package/src/docs/docs/reference/plugins/typedoc.md +53 -0
- package/src/docs/docs/reference/plugins/typescript.md +57 -0
- package/src/docs/docs/reference/plugins/unbuild.md +34 -0
- package/src/docs/docs/reference/plugins/unocss.md +39 -0
- package/src/docs/docs/reference/plugins/vercel-og.md +41 -0
- package/src/docs/docs/reference/plugins/vike.md +37 -0
- package/src/docs/docs/reference/plugins/vite.md +50 -0
- package/src/docs/docs/reference/plugins/vitepress.md +37 -0
- package/src/docs/docs/reference/plugins/vitest.md +72 -0
- package/src/docs/docs/reference/plugins/vue.md +34 -0
- package/src/docs/docs/reference/plugins/webdriver-io.md +34 -0
- package/src/docs/docs/reference/plugins/webpack.md +55 -0
- package/src/docs/docs/reference/plugins/wireit.md +34 -0
- package/src/docs/docs/reference/plugins/wrangler.md +34 -0
- package/src/docs/docs/reference/plugins/xo.md +40 -0
- package/src/docs/docs/reference/plugins/yarn.md +35 -0
- package/src/docs/docs/reference/plugins/yorkie.md +34 -0
- package/src/docs/docs/reference/plugins/zx.md +15 -0
- package/src/docs/docs/writing-a-plugin/argument-parsing.md +1 -2
- package/src/docs/docs/writing-a-plugin/index.md +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knip/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Knip MCP Server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"knip",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
30
30
|
"zod": "^4.1.11",
|
|
31
|
-
"knip": "^5.
|
|
31
|
+
"knip": "^5.88.1"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=18.18.0"
|
|
@@ -21,8 +21,7 @@ just for you!
|
|
|
21
21
|
- 2023-03-22: [Knip v2][5] saw a full rewrite of the TypeScript backend.
|
|
22
22
|
- 2023-10-15: [Introduction of Knip v3][6].
|
|
23
23
|
|
|
24
|
-
[1]:
|
|
25
|
-
https://github.com/webpro-nl/knip/commit/9589dfe22608da7d89f2613383da6db5826226d2
|
|
24
|
+
[1]: https://github.com/webpro-nl/knip/commit/9589dfe22608da7d89f2613383da6db5826226d2
|
|
26
25
|
[2]: https://github.com/webpro-nl/knip/tree/0.1.2
|
|
27
26
|
[3]: https://github.com/webpro-nl/knip/releases/tag/1.0.0-alpha.0
|
|
28
27
|
[4]: https://github.com/webpro-nl/knip/tree/1.0.0
|
|
@@ -116,8 +116,7 @@ barrel files. Knip warns:
|
|
|
116
116
|
[7]: https://marketplace.visualstudio.com/items?itemName=webpro.vscode-knip
|
|
117
117
|
[8]: https://open-vsx.org/extension/webpro/vscode-knip
|
|
118
118
|
[9]: https://www.npmjs.com/package/@knip/mcp
|
|
119
|
-
[10]:
|
|
120
|
-
https://github.com/webpro-nl/knip/blob/main/packages/language-server/README.md
|
|
119
|
+
[10]: https://github.com/webpro-nl/knip/blob/main/packages/language-server/README.md
|
|
121
120
|
[11]: #contention
|
|
122
121
|
[12]: #circular-dependencies
|
|
123
122
|
[13]: #conflicts
|
|
@@ -87,14 +87,10 @@ development][12].
|
|
|
87
87
|
|
|
88
88
|
[1]: https://github.com/webpro-nl/knip/issues?q=is%3Aissue
|
|
89
89
|
[2]: https://knip.dev/reference/known-issues
|
|
90
|
-
[3]:
|
|
91
|
-
|
|
92
|
-
[
|
|
93
|
-
|
|
94
|
-
[5]:
|
|
95
|
-
https://codesandbox.io/p/devbox/github/webpro-nl/knip/main/templates/issue-reproduction/monorepo
|
|
96
|
-
[6]:
|
|
97
|
-
https://stackblitz.com/github/webpro-nl/knip/tree/main/templates/issue-reproduction/monorepo
|
|
90
|
+
[3]: https://codesandbox.io/p/devbox/github/webpro-nl/knip/main/templates/issue-reproduction/basic
|
|
91
|
+
[4]: https://stackblitz.com/github/webpro-nl/knip/tree/main/templates/issue-reproduction/basic
|
|
92
|
+
[5]: https://codesandbox.io/p/devbox/github/webpro-nl/knip/main/templates/issue-reproduction/monorepo
|
|
93
|
+
[6]: https://stackblitz.com/github/webpro-nl/knip/tree/main/templates/issue-reproduction/monorepo
|
|
98
94
|
[7]: https://codesandbox.io
|
|
99
95
|
[8]: https://stackblitz.com
|
|
100
96
|
[9]: https://github.com/webpro-nl/knip/blob/main/.github/DEVELOPMENT.md#tests
|
|
@@ -95,8 +95,7 @@ dependencies.
|
|
|
95
95
|
[7]: #vs-code-extension-screenshots
|
|
96
96
|
[8]: https://plugins.jetbrains.com/plugin/29765-knip
|
|
97
97
|
[9]: https://www.npmjs.com/package/@knip/mcp
|
|
98
|
-
[10]:
|
|
99
|
-
https://github.com/webpro-nl/knip/blob/main/packages/language-server/README.md
|
|
98
|
+
[10]: https://github.com/webpro-nl/knip/blob/main/packages/language-server/README.md
|
|
100
99
|
[11]: /screenshots/editors-and-agents/diagnostics.webp
|
|
101
100
|
[12]: /screenshots/editors-and-agents/imports-exports.webp
|
|
102
101
|
[13]: /screenshots/editors-and-agents/circular-dependency.webp
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Angular
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@angular/cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"angular": {
|
|
18
|
+
"config": ["angular.json"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [angular plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/angular/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Astro DB
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@astrojs/db"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"astro-db": {
|
|
18
|
+
"entry": ["db/config.{js,ts}", "db/seed.{js,ts}"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [astro-db plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro-db/index.ts
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: astro-og-canvas
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"astro-og-canvas"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Generated from source
|
|
12
|
+
|
|
13
|
+
This page was generated from the [astro-og-canvas plugin source code][1].
|
|
14
|
+
|
|
15
|
+
[1]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro-og-canvas/index.ts
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Astro
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"astro"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"astro": {
|
|
18
|
+
"config": ["astro.config.{js,cjs,mjs,ts,mts}"],
|
|
19
|
+
"entry": [
|
|
20
|
+
"src/content/config.ts",
|
|
21
|
+
"src/content.config.ts",
|
|
22
|
+
"src/pages/**/*.{astro,mdx,js,ts}",
|
|
23
|
+
"!src/pages/**/_*",
|
|
24
|
+
"!src/pages/**/_*/**",
|
|
25
|
+
"src/content/**/*.mdx",
|
|
26
|
+
"src/middleware.{js,ts}",
|
|
27
|
+
"src/actions/index.{js,ts}"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
34
|
+
|
|
35
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
36
|
+
|
|
37
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
38
|
+
|
|
39
|
+
## Generated from source
|
|
40
|
+
|
|
41
|
+
This page was generated from the [astro plugin source code][2].
|
|
42
|
+
|
|
43
|
+
[1]: ../../explanations/plugins.md
|
|
44
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro/index.ts
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Ava
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"ava"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"ava": {
|
|
18
|
+
"config": ["ava.config.{js,cjs,mjs}", "package.json"],
|
|
19
|
+
"entry": [
|
|
20
|
+
"test.{js,cjs,mjs,ts}",
|
|
21
|
+
"{src,source}/test.{js,cjs,mjs,ts}",
|
|
22
|
+
"**/__tests__/**/*.{js,cjs,mjs,ts}",
|
|
23
|
+
"**/*.spec.{js,cjs,mjs,ts}",
|
|
24
|
+
"**/*.test.{js,cjs,mjs,ts}",
|
|
25
|
+
"**/test-*.{js,cjs,mjs,ts}",
|
|
26
|
+
"**/test/**/*.{js,cjs,mjs,ts}",
|
|
27
|
+
"**/tests/**/*.{js,cjs,mjs,ts}",
|
|
28
|
+
"!**/__tests__/**/__{helper,fixture}?(s)__/**/*",
|
|
29
|
+
"!**/test?(s)/**/{helper,fixture}?(s)/**/*"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
36
|
+
|
|
37
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
38
|
+
|
|
39
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
40
|
+
|
|
41
|
+
## Generated from source
|
|
42
|
+
|
|
43
|
+
This page was generated from the [ava plugin source code][2].
|
|
44
|
+
|
|
45
|
+
[1]: ../../explanations/plugins.md
|
|
46
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/ava/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Babel
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
|
|
10
|
+
|
|
11
|
+
- `^@babel\/`
|
|
12
|
+
|
|
13
|
+
## Default configuration
|
|
14
|
+
|
|
15
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"babel": {
|
|
20
|
+
"config": [
|
|
21
|
+
"babel.config.{json,js,cjs,mjs,cts,ts}",
|
|
22
|
+
".babelrc.{json,js,cjs,mjs,cts}",
|
|
23
|
+
".babelrc",
|
|
24
|
+
"package.json"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
31
|
+
|
|
32
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
|
+
|
|
34
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
35
|
+
|
|
36
|
+
## Generated from source
|
|
37
|
+
|
|
38
|
+
This page was generated from the [babel plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/babel/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Biome
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@biomejs/biome"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"biome": {
|
|
18
|
+
"config": ["biome.json", "biome.jsonc"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [biome plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/biome/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: bumpp
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"bumpp"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"bumpp": {
|
|
18
|
+
"entry": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".bumprc",
|
|
21
|
+
".config/bumprc",
|
|
22
|
+
".bumprc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}",
|
|
23
|
+
"bump.config.{js,ts,mjs,cjs,mts,cts}",
|
|
24
|
+
".config/bumprc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
31
|
+
|
|
32
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
|
+
|
|
34
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
35
|
+
|
|
36
|
+
## Generated from source
|
|
37
|
+
|
|
38
|
+
This page was generated from the [bumpp plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/bumpp/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Bun
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"bun"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"bun": {
|
|
18
|
+
"config": ["bunfig.toml"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [bun plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/bun/index.ts
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: c8
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is always enabled.
|
|
10
|
+
|
|
11
|
+
## Shell commands
|
|
12
|
+
|
|
13
|
+
This plugin adds argument parsing for the <code>c8</code>
|
|
14
|
+
binary. Configuration:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
args: (args ) => args.filter(arg => arg !== 'check-coverage')
|
|
18
|
+
boolean: ["all", "check-coverage", "clean", "exclude-after-remap", "per-file", "skip-full"]
|
|
19
|
+
fromArgs: (parsed , args ) => (parsed._[0] ? argsFrom(args, parsed._[0]) : (parsed['--'] ?? []))
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The configuration was generated from source code. Also see [Script Parser][1].
|
|
23
|
+
|
|
24
|
+
## Generated from source
|
|
25
|
+
|
|
26
|
+
This page was generated from the [c8 plugin source code][2].
|
|
27
|
+
|
|
28
|
+
[1]: ../../features/script-parser.md
|
|
29
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/c8/index.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Capacitor
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
|
|
10
|
+
|
|
11
|
+
- `^@capacitor\/`
|
|
12
|
+
|
|
13
|
+
## Default configuration
|
|
14
|
+
|
|
15
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"capacitor": {
|
|
20
|
+
"config": ["capacitor.config.{json,ts}"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
26
|
+
|
|
27
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
|
+
|
|
29
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
30
|
+
|
|
31
|
+
## Generated from source
|
|
32
|
+
|
|
33
|
+
This page was generated from the [capacitor plugin source code][2].
|
|
34
|
+
|
|
35
|
+
[1]: ../../explanations/plugins.md
|
|
36
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/capacitor/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Changelogen
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"changelogen"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"changelogen": {
|
|
18
|
+
"entry": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".changelogrc",
|
|
21
|
+
".config/changelogrc",
|
|
22
|
+
".changelogrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}",
|
|
23
|
+
"changelog.config.{js,ts,mjs,cjs,mts,cts}",
|
|
24
|
+
".config/changelogrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
31
|
+
|
|
32
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
|
+
|
|
34
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
35
|
+
|
|
36
|
+
## Generated from source
|
|
37
|
+
|
|
38
|
+
This page was generated from the [changelogen plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/changelogen/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Changelogithub
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"changelogithub"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"changelogithub": {
|
|
18
|
+
"entry": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".changelogithubrc",
|
|
21
|
+
".config/changelogithubrc",
|
|
22
|
+
".changelogithubrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}",
|
|
23
|
+
"changelogithub.config.{js,ts,mjs,cjs,mts,cts}",
|
|
24
|
+
".config/changelogithubrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
31
|
+
|
|
32
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
|
+
|
|
34
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
35
|
+
|
|
36
|
+
## Generated from source
|
|
37
|
+
|
|
38
|
+
This page was generated from the [changelogithub plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/changelogithub/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Changesets
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@changesets/cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"changesets": {
|
|
18
|
+
"config": [".changeset/config.json"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [changesets plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/changesets/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Commitizen
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"commitizen"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"commitizen": {
|
|
18
|
+
"config": [".czrc", ".cz.json", "package.json"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
24
|
+
|
|
25
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
26
|
+
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
28
|
+
|
|
29
|
+
## Generated from source
|
|
30
|
+
|
|
31
|
+
This page was generated from the [commitizen plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/commitizen/index.ts
|