@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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Vitest
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"vitest"` 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
|
+
"vitest": {
|
|
18
|
+
"config": [
|
|
19
|
+
"vitest.config.{js,mjs,ts,cjs,mts,cts}",
|
|
20
|
+
"vitest.{workspace,projects}.{js,mjs,ts,cjs,mts,cts,json}"
|
|
21
|
+
],
|
|
22
|
+
"entry": [
|
|
23
|
+
"**/*.{bench,test,test-d,spec,spec-d}.?(c|m)[jt]s?(x)",
|
|
24
|
+
"**/__mocks__/**/*.[jt]s?(x)"
|
|
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
|
+
## Shell commands
|
|
37
|
+
|
|
38
|
+
This plugin adds argument parsing for the <code>vitest</code>
|
|
39
|
+
binary. Configuration:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
config: true
|
|
43
|
+
resolveInputs: (parsed ) => {
|
|
44
|
+
const inputs = [];
|
|
45
|
+
if (parsed['ui']) inputs.push(toDependency('@vitest/ui', { optional: true }));
|
|
46
|
+
if (typeof parsed['coverage'] === 'object' && parsed['coverage'].provider) {
|
|
47
|
+
inputs.push(toDependency(`@vitest/coverage-${parsed['coverage'].provider}`));
|
|
48
|
+
}
|
|
49
|
+
if (parsed['reporter']) {
|
|
50
|
+
for (const reporter of getExternalReporters([parsed['reporter']].flat())) {
|
|
51
|
+
inputs.push(toDependency(reporter));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (parsed['environment'] && parsed['environment'] !== 'node') {
|
|
55
|
+
inputs.push(toDependency(getEnvSpecifier(parsed['environment'])));
|
|
56
|
+
}
|
|
57
|
+
if (typeof parsed['typecheck'] === 'object' && parsed['typecheck'].checker) {
|
|
58
|
+
inputs.push(toDependency(parsed['typecheck'].checker === 'tsc' ? 'typescript' : parsed['typecheck'].checker));
|
|
59
|
+
}
|
|
60
|
+
return inputs;
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
65
|
+
|
|
66
|
+
## Generated from source
|
|
67
|
+
|
|
68
|
+
This page was generated from the [vitest plugin source code][3].
|
|
69
|
+
|
|
70
|
+
[1]: ../../explanations/plugins.md
|
|
71
|
+
[2]: ../../features/script-parser.md
|
|
72
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitest/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Vue
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"vue"` 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
|
+
"vue": {
|
|
18
|
+
"config": ["vue.config.{js,ts,mjs}"]
|
|
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 [vue plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vue/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: WebdriverIO
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"@wdio/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
|
+
"webdriver-io": {
|
|
18
|
+
"config": ["wdio.conf.{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 [webdriver-io plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webdriver-io/index.ts
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: webpack
|
|
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
|
+
- `webpack`
|
|
12
|
+
|
|
13
|
+
- `webpack-cli`
|
|
14
|
+
|
|
15
|
+
## Default configuration
|
|
16
|
+
|
|
17
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"webpack": {
|
|
22
|
+
"config": ["webpack.config.{js,ts,mjs,cjs,mts,cts}"]
|
|
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
|
+
## Shell commands
|
|
34
|
+
|
|
35
|
+
This plugin adds argument parsing for the <code>webpack and webpack-dev-server</code>
|
|
36
|
+
binaries. Configuration:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
config: true
|
|
40
|
+
resolveInputs: (parsed ) => {
|
|
41
|
+
const inputs = [toDependency('webpack-cli')];
|
|
42
|
+
if (parsed._[0] === 'serve') inputs.push(toDependency('webpack-dev-server'));
|
|
43
|
+
return inputs;
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
48
|
+
|
|
49
|
+
## Generated from source
|
|
50
|
+
|
|
51
|
+
This page was generated from the [webpack plugin source code][3].
|
|
52
|
+
|
|
53
|
+
[1]: ../../explanations/plugins.md
|
|
54
|
+
[2]: ../../features/script-parser.md
|
|
55
|
+
[3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/webpack/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Wireit
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"wireit"` 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
|
+
"wireit": {
|
|
18
|
+
"config": ["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 [wireit plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wireit/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Wrangler
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"wrangler"` 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
|
+
"wrangler": {
|
|
18
|
+
"config": ["wrangler.{json,jsonc,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 [wrangler plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/wrangler/index.ts
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: xo
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"xo"` 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
|
+
"xo": {
|
|
18
|
+
"config": [
|
|
19
|
+
"package.json",
|
|
20
|
+
".xo-config",
|
|
21
|
+
".xo-config.{js,cjs,json}",
|
|
22
|
+
"xo.config.{js,cjs}"
|
|
23
|
+
],
|
|
24
|
+
"entry": [".xo-config.{js,cjs}", "xo.config.{js,cjs}"]
|
|
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 [xo plugin source code][2].
|
|
38
|
+
|
|
39
|
+
[1]: ../../explanations/plugins.md
|
|
40
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/xo/index.ts
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Yarn
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled when a `yarn.lock` file is found in the root folder.
|
|
10
|
+
|
|
11
|
+
## Default configuration
|
|
12
|
+
|
|
13
|
+
If this plugin is enabled, the following configuration is added automatically:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"yarn": {
|
|
18
|
+
"config": [".yarnrc.yml"],
|
|
19
|
+
"entry": ["yarn.config.cjs"]
|
|
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 [yarn plugin source code][2].
|
|
33
|
+
|
|
34
|
+
[1]: ../../explanations/plugins.md
|
|
35
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yarn/index.ts
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: yorkie
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"yorkie"` 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
|
+
"yorkie": {
|
|
18
|
+
"config": ["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 [yorkie plugin source code][2].
|
|
32
|
+
|
|
33
|
+
[1]: ../../explanations/plugins.md
|
|
34
|
+
[2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/yorkie/index.ts
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: zx
|
|
3
|
+
sidebar:
|
|
4
|
+
hidden: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Enabled
|
|
8
|
+
|
|
9
|
+
This plugin is enabled if `"zx"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
|
|
10
|
+
|
|
11
|
+
## Generated from source
|
|
12
|
+
|
|
13
|
+
This page was generated from the [zx plugin source code][1].
|
|
14
|
+
|
|
15
|
+
[1]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/zx/index.ts
|
|
@@ -190,8 +190,7 @@ returned as numbers by minimist.
|
|
|
190
190
|
[3]: #boolean
|
|
191
191
|
[4]: #string
|
|
192
192
|
[5]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/types/args.ts
|
|
193
|
-
[6]:
|
|
194
|
-
https://github.com/search?q=repo%3Awebpro-nl%2Fknip++path%3Apackages%2Fknip%2Fsrc%2Fplugins+%22const+args+%3D%22&type=code
|
|
193
|
+
[6]: https://github.com/search?q=repo%3Awebpro-nl%2Fknip++path%3Apackages%2Fknip%2Fsrc%2Fplugins+%22const+args+%3D%22&type=code
|
|
195
194
|
[7]: #args
|
|
196
195
|
[8]: #binaries
|
|
197
196
|
[9]: #config
|
|
@@ -385,8 +385,7 @@ plugin, this might be the right time to open a pull request!
|
|
|
385
385
|
[1]: #create-a-new-plugin
|
|
386
386
|
[2]: ../reference/plugins.md
|
|
387
387
|
[3]: ../explanations/plugins.md#entry-files-from-config-files
|
|
388
|
-
[4]:
|
|
389
|
-
https://github.com/webpro-nl/knip/blob/6a6954386b33ee8a2919005230a4bc094e11bc03/knip.json#L12
|
|
388
|
+
[4]: https://github.com/webpro-nl/knip/blob/6a6954386b33ee8a2919005230a4bc094e11bc03/knip.json#L12
|
|
390
389
|
[5]: ./inputs.md
|
|
391
390
|
[6]: ../features/script-parser.md
|
|
392
391
|
[7]: ./argument-parsing.md
|