@knip/mcp 0.0.20 → 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 +29 -0
- package/src/docs/docs/blog/for-editors-and-agents.md +130 -0
- package/src/docs/docs/blog/knip-v3.mdx +88 -0
- package/src/docs/docs/blog/knip-v4.mdx +149 -0
- package/src/docs/docs/blog/knip-v5.mdx +190 -0
- package/src/docs/docs/blog/migration-to-v1.md +65 -0
- package/src/docs/docs/blog/release-notes-v2.md +46 -0
- package/src/docs/docs/blog/slim-down-to-speed-up.md +269 -0
- package/src/docs/docs/blog/state-of-knip.md +191 -0
- package/src/docs/docs/blog/two-years.mdx +107 -0
- package/src/docs/docs/explanations/comparison-and-migration.md +133 -0
- package/src/docs/docs/explanations/entry-files.md +70 -0
- package/src/docs/docs/explanations/plugins.md +347 -0
- package/src/docs/docs/explanations/why-use-knip.md +128 -0
- package/src/docs/docs/features/auto-fix.mdx +348 -0
- package/src/docs/docs/features/compilers.md +172 -0
- package/src/docs/docs/features/integrated-monorepos.md +61 -0
- package/src/docs/docs/features/monorepos-and-workspaces.md +149 -0
- package/src/docs/docs/features/production-mode.md +95 -0
- package/src/docs/docs/features/reporters.md +304 -0
- package/src/docs/docs/features/rules-and-filters.md +102 -0
- package/src/docs/docs/features/script-parser.md +156 -0
- package/src/docs/docs/features/source-mapping.md +100 -0
- package/src/docs/docs/guides/configuring-project-files.md +205 -0
- package/src/docs/docs/guides/contributing.md +24 -0
- package/src/docs/docs/guides/handling-issues.mdx +708 -0
- package/src/docs/docs/guides/issue-reproduction.md +99 -0
- package/src/docs/docs/guides/namespace-imports.md +125 -0
- package/src/docs/docs/guides/performance.md +108 -0
- package/src/docs/docs/guides/troubleshooting.md +133 -0
- package/src/docs/docs/guides/using-knip-in-ci.md +50 -0
- package/src/docs/docs/guides/working-with-commonjs.md +72 -0
- package/src/docs/docs/index.mdx +160 -0
- package/src/docs/docs/overview/configuration.md +104 -0
- package/src/docs/docs/overview/features.md +66 -0
- package/src/docs/docs/overview/getting-started.mdx +205 -0
- package/src/docs/docs/overview/screenshots-videos.md +42 -0
- package/src/docs/docs/playground.mdx +38 -0
- package/src/docs/docs/reference/cli.md +511 -0
- package/src/docs/docs/reference/configuration-hints.md +146 -0
- package/src/docs/docs/reference/configuration.md +430 -0
- package/src/docs/docs/reference/dynamic-configuration.mdx +72 -0
- package/src/docs/docs/reference/faq.md +493 -0
- package/src/docs/docs/reference/integrations.md +104 -0
- package/src/docs/docs/reference/issue-types.md +45 -0
- package/src/docs/docs/reference/jsdoc-tsdoc-tags.md +133 -0
- package/src/docs/docs/reference/known-issues.md +86 -0
- package/src/docs/docs/reference/plugins/.gitkeep +0 -0
- 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/reference/plugins.md +146 -0
- package/src/docs/docs/reference/related-tooling.md +46 -0
- package/src/docs/docs/sponsors.mdx +64 -0
- package/src/docs/docs/typescript/unused-dependencies.md +86 -0
- package/src/docs/docs/typescript/unused-exports.md +87 -0
- package/src/docs/docs/writing-a-plugin/argument-parsing.md +201 -0
- package/src/docs/docs/writing-a-plugin/index.md +391 -0
- package/src/docs/docs/writing-a-plugin/inputs.md +162 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: LintHTML
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@linthtml/linthtml"` 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
|
+
"linthtml": {
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".linthtmlrc",
|
|
21
|
+
".config/linthtmlrc",
|
|
22
|
+
".linthtmlrc.{json,yaml,yml,js,ts,cjs,mjs}",
|
|
23
|
+
"linthtml.config.{js,ts,cjs,mjs}",
|
|
24
|
+
".config/linthtmlrc.{json,yaml,yml,js,ts,cjs,mjs}"
|
|
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 [linthtml plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/linthtml/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: lockfile-lint
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"lockfile-lint"` 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
|
+
"lockfile-lint": {
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".lockfile-lintrc",
|
|
21
|
+
".config/lockfile-lintrc",
|
|
22
|
+
".lockfile-lintrc.{json,yaml,yml,js,ts,cjs,mjs,toml}",
|
|
23
|
+
"lockfile-lint.config.{js,ts,cjs,mjs}",
|
|
24
|
+
".config/lockfile-lintrc.{json,yaml,yml,js,ts,cjs,mjs,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 [lockfile-lint plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/lockfile-lint/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Lost Pixel
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"lost-pixel"` 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
|
+
"lost-pixel": {
|
|
18
|
+
"config": ["lostpixel.config.{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 [lost-pixel plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/lost-pixel/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: markdownlint
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"markdownlint-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
|
+
"markdownlint": {
|
|
18
|
+
"config": [".markdownlint.{json,jsonc}", ".markdownlint.{yml,yaml}"]
|
|
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 [markdownlint plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/markdownlint/index.ts
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MDX
|
|
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
|
+
- `astro`
|
|
12
|
+
|
|
13
|
+
- `mdxlint`
|
|
14
|
+
|
|
15
|
+
## Default configuration
|
|
16
|
+
|
|
17
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"mdx": {
|
|
22
|
+
"config": ["tsconfig.json"]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
28
|
+
|
|
29
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
30
|
+
|
|
31
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
32
|
+
|
|
33
|
+
## Generated from source
|
|
34
|
+
|
|
35
|
+
This page was generated from the [mdx plugin source code][2].
|
|
36
|
+
|
|
37
|
+
[1]: ../../explanations/plugins.md
|
|
38
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/mdx/index.ts
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: mdxlint
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"mdxlint"` 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
|
+
"mdxlint": {
|
|
18
|
+
"config": [
|
|
19
|
+
".mdxlintrc",
|
|
20
|
+
".mdxlintrc.{json,js,cjs,mjs,yml,yaml}",
|
|
21
|
+
"package.json"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
28
|
+
|
|
29
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
30
|
+
|
|
31
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
32
|
+
|
|
33
|
+
## Generated from source
|
|
34
|
+
|
|
35
|
+
This page was generated from the [mdxlint plugin source code][2].
|
|
36
|
+
|
|
37
|
+
[1]: ../../explanations/plugins.md
|
|
38
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/mdxlint/index.ts
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Metro
|
|
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
|
+
- `metro`
|
|
12
|
+
|
|
13
|
+
- `@react-native/metro-config`
|
|
14
|
+
|
|
15
|
+
## Default configuration
|
|
16
|
+
|
|
17
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"metro": {
|
|
22
|
+
"config": ["metro.config.{js,cjs,json}", "package.json"],
|
|
23
|
+
"entry": [
|
|
24
|
+
"src/**/*.{ios,android,windows,web,native,default}.{js,jsx,json,ts,tsx}"
|
|
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
|
+
## Note
|
|
37
|
+
|
|
38
|
+
False positives for platform-specific unused files?
|
|
39
|
+
Override the default `entry` patterns to match platforms and extensions.
|
|
40
|
+
|
|
41
|
+
## Generated from source
|
|
42
|
+
|
|
43
|
+
This page was generated from the [metro plugin source code][2].
|
|
44
|
+
|
|
45
|
+
[1]: ../../explanations/plugins.md
|
|
46
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/metro/index.ts
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Mocha
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"mocha"` 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
|
+
"mocha": {
|
|
18
|
+
"config": [".mocharc.{js,cjs,json,jsonc,yml,yaml}", "package.json"],
|
|
19
|
+
"entry": ["**/test/*.{js,cjs,mjs}"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
25
|
+
|
|
26
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
27
|
+
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
29
|
+
|
|
30
|
+
## Shell commands
|
|
31
|
+
|
|
32
|
+
This plugin adds argument parsing for the <code>mocha</code>
|
|
33
|
+
binary. Configuration:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
nodeImportArgs: true
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
40
|
+
|
|
41
|
+
## Generated from source
|
|
42
|
+
|
|
43
|
+
This page was generated from the [mocha plugin source code][3].
|
|
44
|
+
|
|
45
|
+
[1]: ../../explanations/plugins.md
|
|
46
|
+
[2]: ../../features/script-parser.md
|
|
47
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/mocha/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: moonrepo
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@moonrepo/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
|
+
"moonrepo": {
|
|
18
|
+
"config": ["moon.yml", ".moon/tasks.yml", ".moon/tasks/*.yml"]
|
|
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 [moonrepo plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/moonrepo/index.ts
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Mock Service Worker
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"msw"` 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
|
+
"msw": {
|
|
18
|
+
"config": ["package.json"],
|
|
19
|
+
"entry": ["mockServiceWorker.js"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
25
|
+
|
|
26
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
27
|
+
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
29
|
+
|
|
30
|
+
## Generated from source
|
|
31
|
+
|
|
32
|
+
This page was generated from the [msw plugin source code][2].
|
|
33
|
+
|
|
34
|
+
[1]: ../../explanations/plugins.md
|
|
35
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/msw/index.ts
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Nano Staged
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"nano-staged"` 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
|
+
"nano-staged": {
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".nano-staged.{js,cjs,mjs,json}",
|
|
21
|
+
"nano-staged.{js,cjs,mjs,json}",
|
|
22
|
+
".nanostagedrc"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
29
|
+
|
|
30
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
31
|
+
|
|
32
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
33
|
+
|
|
34
|
+
## Generated from source
|
|
35
|
+
|
|
36
|
+
This page was generated from the [nano-staged plugin source code][2].
|
|
37
|
+
|
|
38
|
+
[1]: ../../explanations/plugins.md
|
|
39
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nano-staged/index.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Nest
|
|
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
|
+
- `^@nestjs\/.*`
|
|
12
|
+
|
|
13
|
+
## Default configuration
|
|
14
|
+
|
|
15
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"nest": {
|
|
20
|
+
"config": ["nest-cli.json", ".nestcli.json", ".nest-cli.json", "nest.json"]
|
|
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 [nest plugin source code][2].
|
|
34
|
+
|
|
35
|
+
[1]: ../../explanations/plugins.md
|
|
36
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nest/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Netlify
|
|
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
|
+
- `^@netlify\/plugin-`
|
|
12
|
+
|
|
13
|
+
- `netlify-cli`
|
|
14
|
+
|
|
15
|
+
- `@netlify/functions`
|
|
16
|
+
|
|
17
|
+
## Default configuration
|
|
18
|
+
|
|
19
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"netlify": {
|
|
24
|
+
"config": ["netlify.toml"],
|
|
25
|
+
"entry": ["netlify/functions/**/*.{js,mjs,cjs,ts,mts,cts}"]
|
|
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 [netlify plugin source code][2].
|
|
39
|
+
|
|
40
|
+
[1]: ../../explanations/plugins.md
|
|
41
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/netlify/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: next-intl
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"next-intl"` 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
|
+
"next-intl": {
|
|
18
|
+
"entry": ["{src/,}i18n/request.{js,jsx,ts,tsx}"]
|
|
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 [next-intl plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/next-intl/index.ts
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Next.js MDX
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@next/mdx"` 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
|
+
"next-mdx": {
|
|
18
|
+
"config": ["next.config.{js,ts,cjs,mjs}"],
|
|
19
|
+
"entry": ["{src/,}mdx-components.{js,jsx,ts,tsx}"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
25
|
+
|
|
26
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
27
|
+
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
29
|
+
|
|
30
|
+
## Generated from source
|
|
31
|
+
|
|
32
|
+
This page was generated from the [next-mdx plugin source code][2].
|
|
33
|
+
|
|
34
|
+
[1]: ../../explanations/plugins.md
|
|
35
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/next-mdx/index.ts
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Next.js
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"next"` 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
|
+
"next": {
|
|
18
|
+
"config": ["next.config.{js,ts,cjs,mjs}"],
|
|
19
|
+
"entry": [
|
|
20
|
+
"app/{,[(]*[)]/}{manifest,robots}.{js,ts}",
|
|
21
|
+
"src/app/{,[(]*[)]/}{manifest,robots}.{js,ts}",
|
|
22
|
+
"app/**/sitemap.{js,ts}",
|
|
23
|
+
"src/app/**/sitemap.{js,ts}",
|
|
24
|
+
"app/**/{icon,apple-icon,opengraph-image,twitter-image}.{js,jsx,ts,tsx}",
|
|
25
|
+
"src/app/**/{icon,apple-icon,opengraph-image,twitter-image}.{js,jsx,ts,tsx}",
|
|
26
|
+
"{instrumentation,instrumentation-client,middleware,proxy}.{js,jsx,ts,tsx}",
|
|
27
|
+
"src/{instrumentation,instrumentation-client,middleware,proxy}.{js,jsx,ts,tsx}",
|
|
28
|
+
"app/global-{error,not-found}.{js,jsx,ts,tsx}",
|
|
29
|
+
"src/app/global-{error,not-found}.{js,jsx,ts,tsx}",
|
|
30
|
+
"app/**/{default,error,forbidden,loading,not-found,unauthorized}.{js,jsx,ts,tsx}",
|
|
31
|
+
"src/app/**/{default,error,forbidden,loading,not-found,unauthorized}.{js,jsx,ts,tsx}",
|
|
32
|
+
"app/**/{layout,page,route,template}.{js,jsx,ts,tsx}",
|
|
33
|
+
"src/app/**/{layout,page,route,template}.{js,jsx,ts,tsx}",
|
|
34
|
+
"pages/**/*.{js,jsx,ts,tsx}",
|
|
35
|
+
"src/pages/**/*.{js,jsx,ts,tsx}"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
42
|
+
|
|
43
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
44
|
+
|
|
45
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
46
|
+
|
|
47
|
+
## Generated from source
|
|
48
|
+
|
|
49
|
+
This page was generated from the [next plugin source code][2].
|
|
50
|
+
|
|
51
|
+
[1]: ../../explanations/plugins.md
|
|
52
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/next/index.ts
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Nitro
|
|
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
|
+
- `nitropack`
|
|
12
|
+
|
|
13
|
+
- `nitro`
|
|
14
|
+
|
|
15
|
+
## Default configuration
|
|
16
|
+
|
|
17
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"nitro": {
|
|
22
|
+
"config": ["nitro.config.{js,mjs,ts}"],
|
|
23
|
+
"entry": [
|
|
24
|
+
"server.{js,mjs,ts}",
|
|
25
|
+
"api/**/*.ts",
|
|
26
|
+
"routes/**/*.ts",
|
|
27
|
+
"middleware/**/*.ts",
|
|
28
|
+
"plugins/**/*.ts",
|
|
29
|
+
".nitro/types/*.d.ts"
|
|
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
|
+
## Note
|
|
42
|
+
|
|
43
|
+
Knip works best with [manual imports][2].
|
|
44
|
+
Nitro allows you to disable auto-imports by setting `imports: false` in your Nitro config.
|
|
45
|
+
|
|
46
|
+
## Generated from source
|
|
47
|
+
|
|
48
|
+
This page was generated from the [nitro plugin source code][3].
|
|
49
|
+
|
|
50
|
+
[1]: ../../explanations/plugins.md
|
|
51
|
+
[2]: https://nitro.build/guide/utils#manual-imports
|
|
52
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nitro/index.ts
|