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