@knip/mcp 0.0.13 → 0.0.14

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