@knip/mcp 0.0.21 → 0.0.23
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/blog/brief-history.md +2 -3
- package/src/docs/docs/blog/for-editors-and-agents.md +2 -3
- package/src/docs/docs/blog/knip-v3.mdx +1 -1
- package/src/docs/docs/blog/knip-v4.mdx +1 -1
- package/src/docs/docs/blog/knip-v5.mdx +1 -1
- package/src/docs/docs/blog/knip-v6.md +145 -0
- package/src/docs/docs/blog/release-notes-v2.md +1 -1
- package/src/docs/docs/blog/slim-down-to-speed-up.md +1 -1
- package/src/docs/docs/blog/state-of-knip.md +1 -1
- package/src/docs/docs/blog/two-years.mdx +1 -1
- package/src/docs/docs/explanations/comparison-and-migration.md +2 -2
- package/src/docs/docs/features/auto-fix.mdx +3 -33
- package/src/docs/docs/features/reporters.md +16 -13
- package/src/docs/docs/features/rules-and-filters.md +1 -1
- package/src/docs/docs/guides/handling-issues.mdx +32 -48
- package/src/docs/docs/guides/issue-reproduction.md +4 -8
- package/src/docs/docs/guides/performance.md +7 -62
- package/src/docs/docs/guides/using-knip-in-ci.md +2 -2
- package/src/docs/docs/index.mdx +3 -3
- package/src/docs/docs/overview/configuration.md +1 -1
- package/src/docs/docs/overview/getting-started.mdx +1 -1
- package/src/docs/docs/reference/cli.md +31 -56
- package/src/docs/docs/reference/configuration.md +7 -7
- package/src/docs/docs/reference/faq.md +48 -63
- package/src/docs/docs/reference/integrations.md +1 -2
- package/src/docs/docs/reference/issue-types.md +17 -17
- 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/typescript/unused-exports.md +7 -8
- package/src/docs/docs/writing-a-plugin/argument-parsing.md +1 -2
- package/src/docs/docs/writing-a-plugin/index.md +15 -36
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: GitHub Actions
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled when a `.yml` or `.yaml` file is found in the `.github/workflows` folder.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"github-actions": {
|
|
18
|
+
"config": [".github/workflows/*.{yml,yaml}", ".github/**/action.{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 [github-actions plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/github-actions/index.ts
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: glob
|
|
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>glob</code>
|
|
14
|
+
binary. Configuration:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
positional: true
|
|
18
|
+
alias: {"cmd": ["c"]}
|
|
19
|
+
fromArgs: ["cmd"]
|
|
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 [glob 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/glob/index.ts
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: GraphQL Codegen
|
|
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
|
+
- `^@graphql-codegen\/`
|
|
12
|
+
|
|
13
|
+
- `graphql-config`
|
|
14
|
+
|
|
15
|
+
## Default configuration
|
|
16
|
+
|
|
17
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"graphql-codegen": {
|
|
22
|
+
"config": [
|
|
23
|
+
"package.json",
|
|
24
|
+
"codegen.{json,yml,yaml,js,ts}",
|
|
25
|
+
".codegenrc.{json,yml,yaml,js,ts}",
|
|
26
|
+
"codegen.config.js",
|
|
27
|
+
".graphqlrc",
|
|
28
|
+
".graphqlrc.{json,yml,yaml,toml,js,ts}",
|
|
29
|
+
"graphql.config.{json,yml,yaml,toml,js,cjs,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
|
+
## Generated from source
|
|
42
|
+
|
|
43
|
+
This page was generated from the [graphql-codegen plugin source code][2].
|
|
44
|
+
|
|
45
|
+
[1]: ../../explanations/plugins.md
|
|
46
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/graphql-codegen/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Hardhat
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"hardhat"` 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
|
+
"hardhat": {
|
|
18
|
+
"entry": ["hardhat.config.{js,cjs,mjs,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 [hardhat plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/hardhat/index.ts
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: husky
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"husky"` 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
|
+
"husky": {
|
|
18
|
+
"config": [
|
|
19
|
+
".husky/prepare-commit-msg",
|
|
20
|
+
".husky/commit-msg",
|
|
21
|
+
".husky/pre-{applypatch,commit,merge-commit,push,rebase,receive}",
|
|
22
|
+
".husky/post-{checkout,commit,merge,rewrite}",
|
|
23
|
+
"package.json"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
30
|
+
|
|
31
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
32
|
+
|
|
33
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
34
|
+
|
|
35
|
+
## Generated from source
|
|
36
|
+
|
|
37
|
+
This page was generated from the [husky plugin source code][2].
|
|
38
|
+
|
|
39
|
+
[1]: ../../explanations/plugins.md
|
|
40
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/husky/index.ts
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: i18next Parser
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"i18next-parser"` 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
|
+
"i18next-parser": {
|
|
18
|
+
"config": ["i18next-parser.config.{js,mjs,json,ts,yaml,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
|
+
## Shell commands
|
|
30
|
+
|
|
31
|
+
This plugin adds argument parsing for the <code>i18next</code>
|
|
32
|
+
binary. Configuration:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
config: true
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
39
|
+
|
|
40
|
+
## Generated from source
|
|
41
|
+
|
|
42
|
+
This page was generated from the [i18next-parser plugin source code][3].
|
|
43
|
+
|
|
44
|
+
[1]: ../../explanations/plugins.md
|
|
45
|
+
[2]: ../../features/script-parser.md
|
|
46
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/i18next-parser/index.ts
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Jest
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"jest"` 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
|
+
"jest": {
|
|
18
|
+
"config": ["jest.config.{js,ts,mjs,cjs,json}", "package.json"],
|
|
19
|
+
"entry": [
|
|
20
|
+
"**/__tests__/**/*.[jt]s?(x)",
|
|
21
|
+
"**/?(*.)+(spec|test).[jt]s?(x)",
|
|
22
|
+
"**/__mocks__/**/*.[jt]s?(x)"
|
|
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
|
+
## Shell commands
|
|
35
|
+
|
|
36
|
+
This plugin adds argument parsing for the <code>jest</code>
|
|
37
|
+
binary. Configuration:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
config: true
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
44
|
+
|
|
45
|
+
## Generated from source
|
|
46
|
+
|
|
47
|
+
This page was generated from the [jest plugin source code][3].
|
|
48
|
+
|
|
49
|
+
[1]: ../../explanations/plugins.md
|
|
50
|
+
[2]: ../../features/script-parser.md
|
|
51
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/jest/index.ts
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Karma
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"karma"` 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
|
+
"karma": {
|
|
18
|
+
"config": [
|
|
19
|
+
"karma.conf.js",
|
|
20
|
+
"karma.conf.ts",
|
|
21
|
+
".config/karma.conf.js",
|
|
22
|
+
".config/karma.conf.ts"
|
|
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 [karma plugin source code][2].
|
|
37
|
+
|
|
38
|
+
[1]: ../../explanations/plugins.md
|
|
39
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/karma/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Knex
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"knex"` 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
|
+
"knex": {
|
|
18
|
+
"config": ["knexfile.{js,cjs,mjs,ts,cts,mts}"]
|
|
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 [knex plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/knex/index.ts
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Ladle
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@ladle/react"` 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
|
+
"ladle": {
|
|
18
|
+
"config": [".ladle/config.{mjs,js,ts}"],
|
|
19
|
+
"entry": [
|
|
20
|
+
".ladle/components.{js,jsx,ts,tsx}",
|
|
21
|
+
"src/**/*.stories.{js,jsx,ts,tsx,mdx}"
|
|
22
|
+
],
|
|
23
|
+
"project": [".ladle/**/*.{js,jsx,ts,tsx}"]
|
|
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 [ladle plugin source code][2].
|
|
37
|
+
|
|
38
|
+
[1]: ../../explanations/plugins.md
|
|
39
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/ladle/index.ts
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Lefthook
|
|
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
|
+
- `lefthook`
|
|
12
|
+
|
|
13
|
+
- `@arkweid/lefthook`
|
|
14
|
+
|
|
15
|
+
- `@evilmartians/lefthook`
|
|
16
|
+
|
|
17
|
+
## Default configuration
|
|
18
|
+
|
|
19
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"lefthook": {
|
|
24
|
+
"config": [
|
|
25
|
+
"lefthook.yml",
|
|
26
|
+
"../../../../../.git/hooks/prepare-commit-msg",
|
|
27
|
+
"../../../../../.git/hooks/commit-msg",
|
|
28
|
+
"../../../../../.git/hooks/pre-{applypatch,commit,merge-commit,push,rebase,receive}",
|
|
29
|
+
"../../../../../.git/hooks/post-{checkout,commit,merge,rewrite}"
|
|
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 [lefthook plugin source code][2].
|
|
44
|
+
|
|
45
|
+
[1]: ../../explanations/plugins.md
|
|
46
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/lefthook/index.ts
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: lint-staged
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"lint-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
|
+
"lint-staged": {
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json",
|
|
20
|
+
"package.yaml",
|
|
21
|
+
"package.yml",
|
|
22
|
+
".lint-stagedrc",
|
|
23
|
+
".config/lint-stagedrc",
|
|
24
|
+
".lint-stagedrc.{json,ts,js,cjs,mjs}",
|
|
25
|
+
"lint-staged.config.{ts,js,cjs,mjs}",
|
|
26
|
+
".config/lint-stagedrc.{json,ts,js,cjs,mjs}",
|
|
27
|
+
".lintstagedrc",
|
|
28
|
+
".config/lintstagedrc",
|
|
29
|
+
".lintstagedrc.{json,ts,js,cjs,mjs}",
|
|
30
|
+
"lintstaged.config.{ts,js,cjs,mjs}",
|
|
31
|
+
".config/lintstagedrc.{json,ts,js,cjs,mjs}"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Depending on local configuration, plugins may modify the defaults as shown.
|
|
38
|
+
|
|
39
|
+
Custom `config` or `entry` options override default values, they are not merged.
|
|
40
|
+
|
|
41
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config` options.
|
|
42
|
+
|
|
43
|
+
## Generated from source
|
|
44
|
+
|
|
45
|
+
This page was generated from the [lint-staged plugin source code][2].
|
|
46
|
+
|
|
47
|
+
[1]: ../../explanations/plugins.md
|
|
48
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/lint-staged/index.ts
|
|
@@ -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
|