@knip/mcp 0.0.17 → 0.0.18

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.
Files changed (146) hide show
  1. package/package.json +2 -2
  2. package/src/docs/docs/features/auto-fix.mdx +2 -2
  3. package/src/docs/docs/features/production-mode.md +1 -1
  4. package/src/docs/docs/features/reporters.md +9 -7
  5. package/src/docs/docs/guides/handling-issues.mdx +125 -109
  6. package/src/docs/docs/guides/issue-reproduction.md +11 -7
  7. package/src/docs/docs/guides/performance.md +19 -8
  8. package/src/docs/docs/guides/using-knip-in-ci.md +16 -20
  9. package/src/docs/docs/overview/features.md +2 -2
  10. package/src/docs/docs/overview/getting-started.mdx +6 -7
  11. package/src/docs/docs/reference/configuration-hints.md +146 -0
  12. package/src/docs/docs/reference/faq.md +26 -34
  13. package/src/docs/docs/reference/integrations.md +105 -0
  14. package/src/docs/docs/reference/plugins/angular.md +6 -10
  15. package/src/docs/docs/reference/plugins/astro-db.md +7 -10
  16. package/src/docs/docs/reference/plugins/astro-og-canvas.md +13 -0
  17. package/src/docs/docs/reference/plugins/astro.md +6 -10
  18. package/src/docs/docs/reference/plugins/ava.md +7 -10
  19. package/src/docs/docs/reference/plugins/babel.md +3 -9
  20. package/src/docs/docs/reference/plugins/biome.md +7 -10
  21. package/src/docs/docs/reference/plugins/bumpp.md +3 -9
  22. package/src/docs/docs/reference/plugins/bun.md +2 -6
  23. package/src/docs/docs/reference/plugins/c8.md +4 -7
  24. package/src/docs/docs/reference/plugins/capacitor.md +6 -10
  25. package/src/docs/docs/reference/plugins/changelogen.md +3 -9
  26. package/src/docs/docs/reference/plugins/changelogithub.md +3 -9
  27. package/src/docs/docs/reference/plugins/changesets.md +6 -10
  28. package/src/docs/docs/reference/plugins/commitizen.md +8 -10
  29. package/src/docs/docs/reference/plugins/commitlint.md +3 -9
  30. package/src/docs/docs/reference/plugins/convex.md +7 -10
  31. package/src/docs/docs/reference/plugins/create-typescript-app.md +6 -10
  32. package/src/docs/docs/reference/plugins/cspell.md +3 -9
  33. package/src/docs/docs/reference/plugins/cucumber.md +9 -11
  34. package/src/docs/docs/reference/plugins/cypress.md +6 -10
  35. package/src/docs/docs/reference/plugins/danger.md +6 -10
  36. package/src/docs/docs/reference/plugins/dependency-cruiser.md +9 -14
  37. package/src/docs/docs/reference/plugins/docusaurus.md +6 -10
  38. package/src/docs/docs/reference/plugins/dotenv.md +4 -8
  39. package/src/docs/docs/reference/plugins/drizzle.md +6 -10
  40. package/src/docs/docs/reference/plugins/eleventy.md +11 -11
  41. package/src/docs/docs/reference/plugins/eslint.md +10 -22
  42. package/src/docs/docs/reference/plugins/expo.md +11 -11
  43. package/src/docs/docs/reference/plugins/expressive-code.md +39 -0
  44. package/src/docs/docs/reference/plugins/gatsby.md +3 -9
  45. package/src/docs/docs/reference/plugins/github-action.md +6 -10
  46. package/src/docs/docs/reference/plugins/github-actions.md +7 -10
  47. package/src/docs/docs/reference/plugins/glob.md +4 -8
  48. package/src/docs/docs/reference/plugins/graphql-codegen.md +3 -9
  49. package/src/docs/docs/reference/plugins/hardhat.md +6 -10
  50. package/src/docs/docs/reference/plugins/husky.md +3 -9
  51. package/src/docs/docs/reference/plugins/i18next-parser.md +9 -14
  52. package/src/docs/docs/reference/plugins/jest.md +10 -14
  53. package/src/docs/docs/reference/plugins/karma.md +3 -9
  54. package/src/docs/docs/reference/plugins/knex.md +6 -10
  55. package/src/docs/docs/reference/plugins/ladle.md +9 -11
  56. package/src/docs/docs/reference/plugins/lefthook.md +3 -9
  57. package/src/docs/docs/reference/plugins/lint-staged.md +3 -9
  58. package/src/docs/docs/reference/plugins/linthtml.md +3 -9
  59. package/src/docs/docs/reference/plugins/lockfile-lint.md +3 -9
  60. package/src/docs/docs/reference/plugins/lost-pixel.md +6 -10
  61. package/src/docs/docs/reference/plugins/markdownlint.md +7 -10
  62. package/src/docs/docs/reference/plugins/mdx.md +6 -10
  63. package/src/docs/docs/reference/plugins/mdxlint.md +3 -9
  64. package/src/docs/docs/reference/plugins/metro.md +9 -12
  65. package/src/docs/docs/reference/plugins/mocha.md +13 -15
  66. package/src/docs/docs/reference/plugins/moonrepo.md +8 -10
  67. package/src/docs/docs/reference/plugins/msw.md +9 -11
  68. package/src/docs/docs/reference/plugins/nano-staged.md +3 -9
  69. package/src/docs/docs/reference/plugins/nest.md +9 -10
  70. package/src/docs/docs/reference/plugins/netlify.md +9 -11
  71. package/src/docs/docs/reference/plugins/next-intl.md +6 -10
  72. package/src/docs/docs/reference/plugins/next-mdx.md +9 -11
  73. package/src/docs/docs/reference/plugins/next.md +6 -10
  74. package/src/docs/docs/reference/plugins/nitro.md +50 -0
  75. package/src/docs/docs/reference/plugins/node-modules-inspector.md +4 -11
  76. package/src/docs/docs/reference/plugins/node.md +8 -12
  77. package/src/docs/docs/reference/plugins/nodemon.md +4 -8
  78. package/src/docs/docs/reference/plugins/npm-package-json-lint.md +3 -9
  79. package/src/docs/docs/reference/plugins/nuxt.md +8 -14
  80. package/src/docs/docs/reference/plugins/nx.md +7 -15
  81. package/src/docs/docs/reference/plugins/nyc.md +3 -9
  82. package/src/docs/docs/reference/plugins/oclif.md +6 -10
  83. package/src/docs/docs/reference/plugins/oxlint.md +9 -14
  84. package/src/docs/docs/reference/plugins/parcel.md +6 -10
  85. package/src/docs/docs/reference/plugins/playwright-ct.md +6 -10
  86. package/src/docs/docs/reference/plugins/playwright-test.md +5 -10
  87. package/src/docs/docs/reference/plugins/playwright.md +12 -15
  88. package/src/docs/docs/reference/plugins/plop.md +6 -10
  89. package/src/docs/docs/reference/plugins/pnpm.md +5 -8
  90. package/src/docs/docs/reference/plugins/postcss.md +3 -9
  91. package/src/docs/docs/reference/plugins/preconstruct.md +6 -10
  92. package/src/docs/docs/reference/plugins/prettier.md +3 -9
  93. package/src/docs/docs/reference/plugins/prisma.md +11 -15
  94. package/src/docs/docs/reference/plugins/react-cosmos.md +6 -10
  95. package/src/docs/docs/reference/plugins/react-router.md +3 -9
  96. package/src/docs/docs/reference/plugins/relay.md +10 -14
  97. package/src/docs/docs/reference/plugins/release-it.md +7 -10
  98. package/src/docs/docs/reference/plugins/remark.md +3 -9
  99. package/src/docs/docs/reference/plugins/remix.md +3 -9
  100. package/src/docs/docs/reference/plugins/rollup.md +9 -14
  101. package/src/docs/docs/reference/plugins/rsbuild.md +6 -10
  102. package/src/docs/docs/reference/plugins/rslib.md +6 -10
  103. package/src/docs/docs/reference/plugins/rspack.md +6 -10
  104. package/src/docs/docs/reference/plugins/rstest.md +6 -10
  105. package/src/docs/docs/reference/plugins/semantic-release.md +3 -9
  106. package/src/docs/docs/reference/plugins/sentry.md +6 -10
  107. package/src/docs/docs/reference/plugins/simple-git-hooks.md +3 -9
  108. package/src/docs/docs/reference/plugins/size-limit.md +4 -11
  109. package/src/docs/docs/reference/plugins/sst.md +6 -10
  110. package/src/docs/docs/reference/plugins/starlight.md +6 -10
  111. package/src/docs/docs/reference/plugins/storybook.md +9 -11
  112. package/src/docs/docs/reference/plugins/stryker.md +6 -10
  113. package/src/docs/docs/reference/plugins/stylelint.md +3 -9
  114. package/src/docs/docs/reference/plugins/svelte.md +4 -13
  115. package/src/docs/docs/reference/plugins/sveltekit.md +33 -0
  116. package/src/docs/docs/reference/plugins/svgo.md +6 -10
  117. package/src/docs/docs/reference/plugins/svgr.md +3 -9
  118. package/src/docs/docs/reference/plugins/swc.md +6 -10
  119. package/src/docs/docs/reference/plugins/syncpack.md +3 -9
  120. package/src/docs/docs/reference/plugins/tailwind.md +6 -10
  121. package/src/docs/docs/reference/plugins/tanstack-router.md +9 -10
  122. package/src/docs/docs/reference/plugins/taskfile.md +13 -10
  123. package/src/docs/docs/reference/plugins/travis.md +5 -8
  124. package/src/docs/docs/reference/plugins/ts-node.md +4 -8
  125. package/src/docs/docs/reference/plugins/tsdown.md +10 -14
  126. package/src/docs/docs/reference/plugins/tsup.md +10 -14
  127. package/src/docs/docs/reference/plugins/tsx.md +8 -12
  128. package/src/docs/docs/reference/plugins/typedoc.md +6 -13
  129. package/src/docs/docs/reference/plugins/typescript.md +10 -17
  130. package/src/docs/docs/reference/plugins/unbuild.md +6 -10
  131. package/src/docs/docs/reference/plugins/unocss.md +3 -9
  132. package/src/docs/docs/reference/plugins/vercel-og.md +3 -9
  133. package/src/docs/docs/reference/plugins/vike.md +3 -9
  134. package/src/docs/docs/reference/plugins/vite.md +9 -14
  135. package/src/docs/docs/reference/plugins/vitepress.md +3 -9
  136. package/src/docs/docs/reference/plugins/vitest.md +6 -13
  137. package/src/docs/docs/reference/plugins/vue.md +6 -10
  138. package/src/docs/docs/reference/plugins/webdriver-io.md +6 -10
  139. package/src/docs/docs/reference/plugins/webpack.md +9 -14
  140. package/src/docs/docs/reference/plugins/wireit.md +6 -10
  141. package/src/docs/docs/reference/plugins/wrangler.md +6 -10
  142. package/src/docs/docs/reference/plugins/xo.md +7 -10
  143. package/src/docs/docs/reference/plugins/yarn.md +5 -8
  144. package/src/docs/docs/reference/plugins/yorkie.md +6 -10
  145. package/src/docs/docs/reference/plugins.md +5 -1
  146. package/src/docs/docs/sponsors.mdx +2 -2
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@preconstruct/cli"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@preconstruct/cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "preconstruct": {
19
- "config": ["package.json"]
18
+ "config": [
19
+ "package.json"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Generated from source
32
32
 
33
- This page was generated from the [preconstruct plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/preconstruct/index.ts
33
+ This page was generated from the [preconstruct plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/preconstruct/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"prettier"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"prettier"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -30,13 +29,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
30
29
 
31
30
  Custom `config` or `entry` options override default values, they are not merged.
32
31
 
33
- See [Plugins][1] for more details about plugins and their `entry` and `config`
34
- options.
32
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
35
33
 
36
34
  ## Generated from source
37
35
 
38
- This page was generated from the [prettier plugin source code][2].
39
-
40
- [1]: ../../explanations/plugins.md
41
- [2]:
42
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prettier/index.ts
36
+ This page was generated from the [prettier plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prettier/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
11
10
 
12
11
  - `prisma`
13
12
 
@@ -25,7 +24,10 @@ If this plugin is enabled, the following configuration is added automatically:
25
24
  ".config/prisma.{js,ts,mjs,cjs,mts,cts}",
26
25
  "package.json"
27
26
  ],
28
- "entry": ["prisma/schema.prisma", "schema.prisma"]
27
+ "entry": [
28
+ "prisma/schema.prisma",
29
+ "schema.prisma"
30
+ ]
29
31
  }
30
32
  }
31
33
  ```
@@ -34,26 +36,20 @@ Depending on local configuration, plugins may modify the defaults as shown.
34
36
 
35
37
  Custom `config` or `entry` options override default values, they are not merged.
36
38
 
37
- See [Plugins][1] for more details about plugins and their `entry` and `config`
38
- options.
39
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
39
40
 
40
41
  ## Shell commands
41
42
 
42
- This plugin adds argument parsing for the <code>prisma</code> binary.
43
- Configuration:
43
+ This plugin adds argument parsing for the <code>prisma</code>
44
+ binary. Configuration:
44
45
 
45
46
  ```
46
47
  config: true
47
- resolveInputs: (parsed,{cwd})=>{const inputs=[];if(parsed["schema"]){inputs.push(resolveSchema(parsed["schema"],cwd))}return inputs}
48
+ resolveInputs: (parsed,{cwd})=>{const inputs=[];if(typeof parsed["schema"]==="string"){inputs.push(resolveSchema(parsed["schema"],cwd))}return inputs}
48
49
  ```
49
50
 
50
- The configuration was generated from source code. Also see [Script Parser][2].
51
+ The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
51
52
 
52
53
  ## Generated from source
53
54
 
54
- This page was generated from the [prisma plugin source code][3].
55
-
56
- [1]: ../../explanations/plugins.md
57
- [2]: ../../features/script-parser.md
58
- [3]:
59
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prisma/index.ts
55
+ This page was generated from the [prisma plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prisma/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"react-cosmos"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"react-cosmos"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "react-cosmos": {
19
- "config": ["cosmos.config.json"],
18
+ "config": [
19
+ "cosmos.config.json"
20
+ ],
20
21
  "entry": [
21
22
  "**/*.fixture.{js,jsx,ts,tsx,md,mdx}",
22
23
  "__fixtures__/**/*.{js,jsx,ts,tsx,md,mdx}",
@@ -31,13 +32,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
31
32
 
32
33
  Custom `config` or `entry` options override default values, they are not merged.
33
34
 
34
- See [Plugins][1] for more details about plugins and their `entry` and `config`
35
- options.
35
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
36
36
 
37
37
  ## Generated from source
38
38
 
39
- This page was generated from the [react-cosmos plugin source code][2].
40
-
41
- [1]: ../../explanations/plugins.md
42
- [2]:
43
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-cosmos/index.ts
39
+ This page was generated from the [react-cosmos plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-cosmos/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@react-router/dev"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@react-router/dev"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -28,13 +27,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
28
27
 
29
28
  Custom `config` or `entry` options override default values, they are not merged.
30
29
 
31
- See [Plugins][1] for more details about plugins and their `entry` and `config`
32
- options.
30
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
33
31
 
34
32
  ## Generated from source
35
33
 
36
- This page was generated from the [react-router plugin source code][2].
37
-
38
- [1]: ../../explanations/plugins.md
39
- [2]:
40
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-router/index.ts
34
+ This page was generated from the [react-router plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-router/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
11
10
 
12
11
  - `vite-plugin-relay`
13
12
 
@@ -22,7 +21,10 @@ If this plugin is enabled, the following configuration is added automatically:
22
21
  ```json
23
22
  {
24
23
  "relay": {
25
- "config": ["relay.config.json", "relay.config.js"]
24
+ "config": [
25
+ "relay.config.json",
26
+ "relay.config.js"
27
+ ]
26
28
  }
27
29
  }
28
30
  ```
@@ -31,26 +33,20 @@ Depending on local configuration, plugins may modify the defaults as shown.
31
33
 
32
34
  Custom `config` or `entry` options override default values, they are not merged.
33
35
 
34
- See [Plugins][1] for more details about plugins and their `entry` and `config`
35
- options.
36
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
36
37
 
37
38
  ## Shell commands
38
39
 
39
- This plugin adds argument parsing for the <code>relay-compiler</code> binary.
40
- Configuration:
40
+ This plugin adds argument parsing for the <code>relay-compiler</code>
41
+ binary. Configuration:
41
42
 
42
43
  ```
43
44
  args: args2=>["-c",parseArgs(args2)._[0]]
44
45
  config: true
45
46
  ```
46
47
 
47
- The configuration was generated from source code. Also see [Script Parser][2].
48
+ The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
48
49
 
49
50
  ## Generated from source
50
51
 
51
- This page was generated from the [relay plugin source code][3].
52
-
53
- [1]: ../../explanations/plugins.md
54
- [2]: ../../features/script-parser.md
55
- [3]:
56
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/relay/index.ts
52
+ This page was generated from the [relay plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/relay/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"release-it"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"release-it"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,10 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "release-it": {
19
- "config": [".release-it.{json,js,cjs,ts,yml,yaml,toml}", "package.json"]
18
+ "config": [
19
+ ".release-it.{json,js,cjs,ts,yml,yaml,toml}",
20
+ "package.json"
21
+ ]
20
22
  }
21
23
  }
22
24
  ```
@@ -25,13 +27,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
27
 
26
28
  Custom `config` or `entry` options override default values, they are not merged.
27
29
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
30
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
31
 
31
32
  ## Generated from source
32
33
 
33
- This page was generated from the [release-it plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/release-it/index.ts
34
+ This page was generated from the [release-it plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/release-it/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"remark-cli"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"remark-cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -31,13 +30,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
31
30
 
32
31
  Custom `config` or `entry` options override default values, they are not merged.
33
32
 
34
- See [Plugins][1] for more details about plugins and their `entry` and `config`
35
- options.
33
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
36
34
 
37
35
  ## Generated from source
38
36
 
39
- This page was generated from the [remark plugin source code][2].
40
-
41
- [1]: ../../explanations/plugins.md
42
- [2]:
43
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/remark/index.ts
37
+ This page was generated from the [remark plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/remark/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
11
10
 
12
11
  - `^@remix-run\/`
13
12
 
@@ -34,13 +33,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
34
33
 
35
34
  Custom `config` or `entry` options override default values, they are not merged.
36
35
 
37
- See [Plugins][1] for more details about plugins and their `entry` and `config`
38
- options.
36
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
39
37
 
40
38
  ## Generated from source
41
39
 
42
- This page was generated from the [remix plugin source code][2].
43
-
44
- [1]: ../../explanations/plugins.md
45
- [2]:
46
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/remix/index.ts
40
+ This page was generated from the [remix plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/remix/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"rollup"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"rollup"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "rollup": {
19
- "entry": ["rollup.config.{js,cjs,mjs,ts}"]
18
+ "entry": [
19
+ "rollup.config.{js,cjs,mjs,ts}"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,12 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Shell commands
32
32
 
33
- This plugin adds argument parsing for the <code>rollup</code> binary.
34
- Configuration:
33
+ This plugin adds argument parsing for the <code>rollup</code>
34
+ binary. Configuration:
35
35
 
36
36
  ```
37
37
  alias: {"plugin": ["p"]}
@@ -40,13 +40,8 @@ fromArgs: ["_exec"]
40
40
  resolve: ["plugin", "configPlugin"]
41
41
  ```
42
42
 
43
- The configuration was generated from source code. Also see [Script Parser][2].
43
+ The configuration was generated from source code. Also see [Script Parser](../../features/script-parser.md).
44
44
 
45
45
  ## Generated from source
46
46
 
47
- This page was generated from the [rollup plugin source code][3].
48
-
49
- [1]: ../../explanations/plugins.md
50
- [2]: ../../features/script-parser.md
51
- [3]:
52
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rollup/index.ts
47
+ This page was generated from the [rollup plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rollup/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@rsbuild/core"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@rsbuild/core"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "rsbuild": {
19
- "config": ["rsbuild*.config.{mjs,ts,js,cjs,mts,cts}"]
18
+ "config": [
19
+ "rsbuild*.config.{mjs,ts,js,cjs,mts,cts}"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Generated from source
32
32
 
33
- This page was generated from the [rsbuild plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rsbuild/index.ts
33
+ This page was generated from the [rsbuild plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rsbuild/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@rslib/core"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@rslib/core"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "rslib": {
19
- "entry": ["rslib*.config.{mjs,ts,js,cjs,mts,cts}"]
18
+ "entry": [
19
+ "rslib*.config.{mjs,ts,js,cjs,mts,cts}"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Generated from source
32
32
 
33
- This page was generated from the [rslib plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rslib/index.ts
33
+ This page was generated from the [rslib plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rslib/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@rspack/core"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@rspack/core"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "rspack": {
19
- "config": ["rspack.config*.{js,ts,mjs,mts,cjs,cts}"]
18
+ "config": [
19
+ "rspack.config*.{js,ts,mjs,mts,cjs,cts}"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Generated from source
32
32
 
33
- This page was generated from the [rspack plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rspack/index.ts
33
+ This page was generated from the [rspack plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rspack/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"@rstest/core"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"@rstest/core"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,7 +15,9 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "rstest": {
19
- "config": ["rstest.config.{js,cjs,mjs,ts,cts,mts}"]
18
+ "config": [
19
+ "rstest.config.{js,cjs,mjs,ts,cts,mts}"
20
+ ]
20
21
  }
21
22
  }
22
23
  ```
@@ -25,13 +26,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
25
26
 
26
27
  Custom `config` or `entry` options override default values, they are not merged.
27
28
 
28
- See [Plugins][1] for more details about plugins and their `entry` and `config`
29
- options.
29
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
30
30
 
31
31
  ## Generated from source
32
32
 
33
- This page was generated from the [rstest plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rstest/index.ts
33
+ This page was generated from the [rstest plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/rstest/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"semantic-release"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"semantic-release"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -32,13 +31,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
32
31
 
33
32
  Custom `config` or `entry` options override default values, they are not merged.
34
33
 
35
- See [Plugins][1] for more details about plugins and their `entry` and `config`
36
- options.
34
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
37
35
 
38
36
  ## Generated from source
39
37
 
40
- This page was generated from the [semantic-release plugin source code][2].
41
-
42
- [1]: ../../explanations/plugins.md
43
- [2]:
44
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/semantic-release/index.ts
38
+ This page was generated from the [semantic-release plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/semantic-release/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
11
10
 
12
11
  - `^@sentry\/`
13
12
 
@@ -18,7 +17,9 @@ If this plugin is enabled, the following configuration is added automatically:
18
17
  ```json
19
18
  {
20
19
  "sentry": {
21
- "entry": ["sentry.{client,server,edge}.config.{js,ts}"]
20
+ "entry": [
21
+ "sentry.{client,server,edge}.config.{js,ts}"
22
+ ]
22
23
  }
23
24
  }
24
25
  ```
@@ -27,13 +28,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
27
28
 
28
29
  Custom `config` or `entry` options override default values, they are not merged.
29
30
 
30
- See [Plugins][1] for more details about plugins and their `entry` and `config`
31
- options.
31
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
32
32
 
33
33
  ## Generated from source
34
34
 
35
- This page was generated from the [sentry plugin source code][2].
36
-
37
- [1]: ../../explanations/plugins.md
38
- [2]:
39
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/sentry/index.ts
35
+ This page was generated from the [sentry plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/sentry/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"simple-git-hooks"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"simple-git-hooks"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -29,13 +28,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
29
28
 
30
29
  Custom `config` or `entry` options override default values, they are not merged.
31
30
 
32
- See [Plugins][1] for more details about plugins and their `entry` and `config`
33
- options.
31
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
34
32
 
35
33
  ## Generated from source
36
34
 
37
- This page was generated from the [simple-git-hooks plugin source code][2].
38
-
39
- [1]: ../../explanations/plugins.md
40
- [2]:
41
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/simple-git-hooks/index.ts
35
+ This page was generated from the [simple-git-hooks plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/simple-git-hooks/index.ts).
@@ -6,8 +6,7 @@ sidebar:
6
6
 
7
7
  ## Enabled
8
8
 
9
- This plugin is enabled if `"size-limit"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
9
+ This plugin is enabled if `"size-limit"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
11
10
 
12
11
  ## Default configuration
13
12
 
@@ -16,8 +15,7 @@ If this plugin is enabled, the following configuration is added automatically:
16
15
  ```json
17
16
  {
18
17
  "size-limit": {
19
- "config": [
20
- "package.json",
18
+ "entry": [
21
19
  ".size-limit",
22
20
  ".size-limit.{json,ts,js,cjs,mjs,mts,cts}",
23
21
  "size-limit.config.{ts,js,cjs,mjs,mts,cts}"
@@ -30,13 +28,8 @@ Depending on local configuration, plugins may modify the defaults as shown.
30
28
 
31
29
  Custom `config` or `entry` options override default values, they are not merged.
32
30
 
33
- See [Plugins][1] for more details about plugins and their `entry` and `config`
34
- options.
31
+ See [Plugins](../../explanations/plugins.md) for more details about plugins and their `entry` and `config` options.
35
32
 
36
33
  ## Generated from source
37
34
 
38
- This page was generated from the [size-limit plugin source code][2].
39
-
40
- [1]: ../../explanations/plugins.md
41
- [2]:
42
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/size-limit/index.ts
35
+ This page was generated from the [size-limit plugin source code](https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/size-limit/index.ts).