@knip/mcp 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/package.json +2 -2
  2. package/src/docs/docs/blog/brief-history.md +29 -0
  3. package/src/docs/docs/blog/for-editors-and-agents.md +130 -0
  4. package/src/docs/docs/blog/knip-v3.mdx +88 -0
  5. package/src/docs/docs/blog/knip-v4.mdx +149 -0
  6. package/src/docs/docs/blog/knip-v5.mdx +190 -0
  7. package/src/docs/docs/blog/migration-to-v1.md +65 -0
  8. package/src/docs/docs/blog/release-notes-v2.md +46 -0
  9. package/src/docs/docs/blog/slim-down-to-speed-up.md +269 -0
  10. package/src/docs/docs/blog/state-of-knip.md +191 -0
  11. package/src/docs/docs/blog/two-years.mdx +107 -0
  12. package/src/docs/docs/explanations/comparison-and-migration.md +133 -0
  13. package/src/docs/docs/explanations/entry-files.md +70 -0
  14. package/src/docs/docs/explanations/plugins.md +347 -0
  15. package/src/docs/docs/explanations/why-use-knip.md +128 -0
  16. package/src/docs/docs/features/auto-fix.mdx +348 -0
  17. package/src/docs/docs/features/compilers.md +172 -0
  18. package/src/docs/docs/features/integrated-monorepos.md +61 -0
  19. package/src/docs/docs/features/monorepos-and-workspaces.md +149 -0
  20. package/src/docs/docs/features/production-mode.md +95 -0
  21. package/src/docs/docs/features/reporters.md +304 -0
  22. package/src/docs/docs/features/rules-and-filters.md +102 -0
  23. package/src/docs/docs/features/script-parser.md +156 -0
  24. package/src/docs/docs/features/source-mapping.md +100 -0
  25. package/src/docs/docs/guides/configuring-project-files.md +205 -0
  26. package/src/docs/docs/guides/contributing.md +24 -0
  27. package/src/docs/docs/guides/handling-issues.mdx +708 -0
  28. package/src/docs/docs/guides/issue-reproduction.md +99 -0
  29. package/src/docs/docs/guides/namespace-imports.md +125 -0
  30. package/src/docs/docs/guides/performance.md +108 -0
  31. package/src/docs/docs/guides/troubleshooting.md +133 -0
  32. package/src/docs/docs/guides/using-knip-in-ci.md +50 -0
  33. package/src/docs/docs/guides/working-with-commonjs.md +72 -0
  34. package/src/docs/docs/index.mdx +160 -0
  35. package/src/docs/docs/overview/configuration.md +104 -0
  36. package/src/docs/docs/overview/features.md +66 -0
  37. package/src/docs/docs/overview/getting-started.mdx +205 -0
  38. package/src/docs/docs/overview/screenshots-videos.md +42 -0
  39. package/src/docs/docs/playground.mdx +38 -0
  40. package/src/docs/docs/reference/cli.md +511 -0
  41. package/src/docs/docs/reference/configuration-hints.md +146 -0
  42. package/src/docs/docs/reference/configuration.md +430 -0
  43. package/src/docs/docs/reference/dynamic-configuration.mdx +72 -0
  44. package/src/docs/docs/reference/faq.md +493 -0
  45. package/src/docs/docs/reference/integrations.md +104 -0
  46. package/src/docs/docs/reference/issue-types.md +45 -0
  47. package/src/docs/docs/reference/jsdoc-tsdoc-tags.md +133 -0
  48. package/src/docs/docs/reference/known-issues.md +86 -0
  49. package/src/docs/docs/reference/plugins/.gitkeep +0 -0
  50. package/src/docs/docs/reference/plugins/angular.md +34 -0
  51. package/src/docs/docs/reference/plugins/astro-db.md +34 -0
  52. package/src/docs/docs/reference/plugins/astro-og-canvas.md +15 -0
  53. package/src/docs/docs/reference/plugins/astro.md +44 -0
  54. package/src/docs/docs/reference/plugins/ava.md +46 -0
  55. package/src/docs/docs/reference/plugins/babel.md +41 -0
  56. package/src/docs/docs/reference/plugins/biome.md +34 -0
  57. package/src/docs/docs/reference/plugins/bumpp.md +41 -0
  58. package/src/docs/docs/reference/plugins/bun.md +34 -0
  59. package/src/docs/docs/reference/plugins/c8.md +29 -0
  60. package/src/docs/docs/reference/plugins/capacitor.md +36 -0
  61. package/src/docs/docs/reference/plugins/changelogen.md +41 -0
  62. package/src/docs/docs/reference/plugins/changelogithub.md +41 -0
  63. package/src/docs/docs/reference/plugins/changesets.md +34 -0
  64. package/src/docs/docs/reference/plugins/commitizen.md +34 -0
  65. package/src/docs/docs/reference/plugins/commitlint.md +42 -0
  66. package/src/docs/docs/reference/plugins/convex.md +34 -0
  67. package/src/docs/docs/reference/plugins/create-typescript-app.md +34 -0
  68. package/src/docs/docs/reference/plugins/cspell.md +39 -0
  69. package/src/docs/docs/reference/plugins/cucumber.md +35 -0
  70. package/src/docs/docs/reference/plugins/cypress.md +41 -0
  71. package/src/docs/docs/reference/plugins/danger.md +34 -0
  72. package/src/docs/docs/reference/plugins/dependency-cruiser.md +46 -0
  73. package/src/docs/docs/reference/plugins/docusaurus.md +40 -0
  74. package/src/docs/docs/reference/plugins/dotenv.md +32 -0
  75. package/src/docs/docs/reference/plugins/drizzle.md +34 -0
  76. package/src/docs/docs/reference/plugins/eleventy.md +35 -0
  77. package/src/docs/docs/reference/plugins/eslint.md +86 -0
  78. package/src/docs/docs/reference/plugins/execa.md +15 -0
  79. package/src/docs/docs/reference/plugins/expo.md +35 -0
  80. package/src/docs/docs/reference/plugins/expressive-code.md +40 -0
  81. package/src/docs/docs/reference/plugins/gatsby.md +49 -0
  82. package/src/docs/docs/reference/plugins/github-action.md +34 -0
  83. package/src/docs/docs/reference/plugins/github-actions.md +34 -0
  84. package/src/docs/docs/reference/plugins/glob.md +29 -0
  85. package/src/docs/docs/reference/plugins/graphql-codegen.md +46 -0
  86. package/src/docs/docs/reference/plugins/hardhat.md +34 -0
  87. package/src/docs/docs/reference/plugins/husky.md +40 -0
  88. package/src/docs/docs/reference/plugins/i18next-parser.md +46 -0
  89. package/src/docs/docs/reference/plugins/jest.md +51 -0
  90. package/src/docs/docs/reference/plugins/karma.md +39 -0
  91. package/src/docs/docs/reference/plugins/knex.md +34 -0
  92. package/src/docs/docs/reference/plugins/ladle.md +39 -0
  93. package/src/docs/docs/reference/plugins/lefthook.md +46 -0
  94. package/src/docs/docs/reference/plugins/lint-staged.md +48 -0
  95. package/src/docs/docs/reference/plugins/linthtml.md +41 -0
  96. package/src/docs/docs/reference/plugins/lockfile-lint.md +41 -0
  97. package/src/docs/docs/reference/plugins/lost-pixel.md +34 -0
  98. package/src/docs/docs/reference/plugins/markdownlint.md +34 -0
  99. package/src/docs/docs/reference/plugins/mdx.md +38 -0
  100. package/src/docs/docs/reference/plugins/mdxlint.md +38 -0
  101. package/src/docs/docs/reference/plugins/metro.md +46 -0
  102. package/src/docs/docs/reference/plugins/mocha.md +47 -0
  103. package/src/docs/docs/reference/plugins/moonrepo.md +34 -0
  104. package/src/docs/docs/reference/plugins/msw.md +35 -0
  105. package/src/docs/docs/reference/plugins/nano-staged.md +39 -0
  106. package/src/docs/docs/reference/plugins/nest.md +36 -0
  107. package/src/docs/docs/reference/plugins/netlify.md +41 -0
  108. package/src/docs/docs/reference/plugins/next-intl.md +34 -0
  109. package/src/docs/docs/reference/plugins/next-mdx.md +35 -0
  110. package/src/docs/docs/reference/plugins/next.md +52 -0
  111. package/src/docs/docs/reference/plugins/nitro.md +52 -0
  112. package/src/docs/docs/reference/plugins/node-modules-inspector.md +49 -0
  113. package/src/docs/docs/reference/plugins/node.md +50 -0
  114. package/src/docs/docs/reference/plugins/nodemon.md +30 -0
  115. package/src/docs/docs/reference/plugins/npm-package-json-lint.md +41 -0
  116. package/src/docs/docs/reference/plugins/nuxt.md +55 -0
  117. package/src/docs/docs/reference/plugins/nx.md +62 -0
  118. package/src/docs/docs/reference/plugins/nyc.md +39 -0
  119. package/src/docs/docs/reference/plugins/oclif.md +34 -0
  120. package/src/docs/docs/reference/plugins/openapi-ts.md +41 -0
  121. package/src/docs/docs/reference/plugins/oxfmt.md +46 -0
  122. package/src/docs/docs/reference/plugins/oxlint.md +46 -0
  123. package/src/docs/docs/reference/plugins/parcel.md +38 -0
  124. package/src/docs/docs/reference/plugins/payload.md +40 -0
  125. package/src/docs/docs/reference/plugins/playwright-ct.md +40 -0
  126. package/src/docs/docs/reference/plugins/playwright-test.md +29 -0
  127. package/src/docs/docs/reference/plugins/playwright.md +49 -0
  128. package/src/docs/docs/reference/plugins/plop.md +34 -0
  129. package/src/docs/docs/reference/plugins/pm2.md +37 -0
  130. package/src/docs/docs/reference/plugins/pnpm.md +34 -0
  131. package/src/docs/docs/reference/plugins/postcss.md +46 -0
  132. package/src/docs/docs/reference/plugins/preconstruct.md +34 -0
  133. package/src/docs/docs/reference/plugins/prettier.md +39 -0
  134. package/src/docs/docs/reference/plugins/prisma.md +62 -0
  135. package/src/docs/docs/reference/plugins/qwik.md +40 -0
  136. package/src/docs/docs/reference/plugins/raycast.md +34 -0
  137. package/src/docs/docs/reference/plugins/react-cosmos.md +40 -0
  138. package/src/docs/docs/reference/plugins/react-native.md +34 -0
  139. package/src/docs/docs/reference/plugins/react-router.md +37 -0
  140. package/src/docs/docs/reference/plugins/relay.md +53 -0
  141. package/src/docs/docs/reference/plugins/release-it.md +34 -0
  142. package/src/docs/docs/reference/plugins/remark.md +40 -0
  143. package/src/docs/docs/reference/plugins/remix.md +43 -0
  144. package/src/docs/docs/reference/plugins/rollup.md +49 -0
  145. package/src/docs/docs/reference/plugins/rsbuild.md +34 -0
  146. package/src/docs/docs/reference/plugins/rslib.md +34 -0
  147. package/src/docs/docs/reference/plugins/rspack.md +34 -0
  148. package/src/docs/docs/reference/plugins/rstest.md +34 -0
  149. package/src/docs/docs/reference/plugins/sanity.md +38 -0
  150. package/src/docs/docs/reference/plugins/semantic-release.md +41 -0
  151. package/src/docs/docs/reference/plugins/sentry.md +36 -0
  152. package/src/docs/docs/reference/plugins/simple-git-hooks.md +38 -0
  153. package/src/docs/docs/reference/plugins/size-limit.md +38 -0
  154. package/src/docs/docs/reference/plugins/sst.md +34 -0
  155. package/src/docs/docs/reference/plugins/starlight.md +34 -0
  156. package/src/docs/docs/reference/plugins/storybook.md +43 -0
  157. package/src/docs/docs/reference/plugins/stryker.md +34 -0
  158. package/src/docs/docs/reference/plugins/stylelint.md +41 -0
  159. package/src/docs/docs/reference/plugins/svelte.md +34 -0
  160. package/src/docs/docs/reference/plugins/sveltekit.md +34 -0
  161. package/src/docs/docs/reference/plugins/svgo.md +38 -0
  162. package/src/docs/docs/reference/plugins/svgr.md +43 -0
  163. package/src/docs/docs/reference/plugins/swc.md +34 -0
  164. package/src/docs/docs/reference/plugins/syncpack.md +41 -0
  165. package/src/docs/docs/reference/plugins/tailwind.md +34 -0
  166. package/src/docs/docs/reference/plugins/tanstack-router.md +47 -0
  167. package/src/docs/docs/reference/plugins/taskfile.md +43 -0
  168. package/src/docs/docs/reference/plugins/travis.md +34 -0
  169. package/src/docs/docs/reference/plugins/ts-node.md +30 -0
  170. package/src/docs/docs/reference/plugins/tsdown.md +46 -0
  171. package/src/docs/docs/reference/plugins/tsup.md +46 -0
  172. package/src/docs/docs/reference/plugins/tsx.md +48 -0
  173. package/src/docs/docs/reference/plugins/typedoc.md +53 -0
  174. package/src/docs/docs/reference/plugins/typescript.md +57 -0
  175. package/src/docs/docs/reference/plugins/unbuild.md +34 -0
  176. package/src/docs/docs/reference/plugins/unocss.md +39 -0
  177. package/src/docs/docs/reference/plugins/vercel-og.md +41 -0
  178. package/src/docs/docs/reference/plugins/vike.md +37 -0
  179. package/src/docs/docs/reference/plugins/vite.md +50 -0
  180. package/src/docs/docs/reference/plugins/vitepress.md +37 -0
  181. package/src/docs/docs/reference/plugins/vitest.md +72 -0
  182. package/src/docs/docs/reference/plugins/vue.md +34 -0
  183. package/src/docs/docs/reference/plugins/webdriver-io.md +34 -0
  184. package/src/docs/docs/reference/plugins/webpack.md +55 -0
  185. package/src/docs/docs/reference/plugins/wireit.md +34 -0
  186. package/src/docs/docs/reference/plugins/wrangler.md +34 -0
  187. package/src/docs/docs/reference/plugins/xo.md +40 -0
  188. package/src/docs/docs/reference/plugins/yarn.md +35 -0
  189. package/src/docs/docs/reference/plugins/yorkie.md +34 -0
  190. package/src/docs/docs/reference/plugins/zx.md +15 -0
  191. package/src/docs/docs/reference/plugins.md +146 -0
  192. package/src/docs/docs/reference/related-tooling.md +46 -0
  193. package/src/docs/docs/sponsors.mdx +64 -0
  194. package/src/docs/docs/typescript/unused-dependencies.md +86 -0
  195. package/src/docs/docs/typescript/unused-exports.md +87 -0
  196. package/src/docs/docs/writing-a-plugin/argument-parsing.md +201 -0
  197. package/src/docs/docs/writing-a-plugin/index.md +391 -0
  198. package/src/docs/docs/writing-a-plugin/inputs.md +162 -0
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: Playwright
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@playwright/test"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "playwright": {
18
+ "config": ["playwright.config.{js,ts,mjs}"],
19
+ "entry": ["**/*.@(spec|test).?(c|m)[jt]s?(x)"]
20
+ }
21
+ }
22
+ ```
23
+
24
+ Depending on local configuration, plugins may modify the defaults as shown.
25
+
26
+ Custom `config` or `entry` options override default values, they are not merged.
27
+
28
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
29
+
30
+ ## Shell commands
31
+
32
+ This plugin adds argument parsing for the <code>playwright</code>
33
+ binary. Configuration:
34
+
35
+ ```
36
+ positional: true
37
+ args: (args ) => args.filter(arg => arg !== 'install' && arg !== 'test')
38
+ config: true
39
+ ```
40
+
41
+ The configuration was generated from source code. Also see [Script Parser][2].
42
+
43
+ ## Generated from source
44
+
45
+ This page was generated from the [playwright plugin source code][3].
46
+
47
+ [1]: ../../explanations/plugins.md
48
+ [2]: ../../features/script-parser.md
49
+ [3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/playwright/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Plop
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"plop"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "plop": {
18
+ "config": ["plopfile.{cjs,mjs,js,ts}"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [plop plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/plop/index.ts
@@ -0,0 +1,37 @@
1
+ ---
2
+ title: pm2
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"pm2"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "pm2": {
18
+ "config": [
19
+ "pm2.config.{json,js,cjs,mjs}",
20
+ "ecosystem.config.{json,js,cjs,mjs}"
21
+ ]
22
+ }
23
+ }
24
+ ```
25
+
26
+ Depending on local configuration, plugins may modify the defaults as shown.
27
+
28
+ Custom `config` or `entry` options override default values, they are not merged.
29
+
30
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
31
+
32
+ ## Generated from source
33
+
34
+ This page was generated from the [pm2 plugin source code][2].
35
+
36
+ [1]: ../../explanations/plugins.md
37
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/pm2/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: pnpm
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is always enabled.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "pnpm": {
18
+ "config": [".pnpmfile.cjs"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [pnpm plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/pnpm/index.ts
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: PostCSS
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
10
+
11
+ - `postcss`
12
+
13
+ - `postcss-cli`
14
+
15
+ - `next`
16
+
17
+ ## Default configuration
18
+
19
+ If this plugin is enabled, the following configuration is added automatically:
20
+
21
+ ```json
22
+ {
23
+ "postcss": {
24
+ "config": [
25
+ "package.json",
26
+ "postcss.config.json",
27
+ ".postcssrc",
28
+ ".postcssrc.{json,ts,js,cjs,mjs,mts,cts,yaml,yml}",
29
+ "postcss.config.{ts,js,cjs,mjs,mts,cts}"
30
+ ]
31
+ }
32
+ }
33
+ ```
34
+
35
+ Depending on local configuration, plugins may modify the defaults as shown.
36
+
37
+ Custom `config` or `entry` options override default values, they are not merged.
38
+
39
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
40
+
41
+ ## Generated from source
42
+
43
+ This page was generated from the [postcss plugin source code][2].
44
+
45
+ [1]: ../../explanations/plugins.md
46
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/postcss/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Preconstruct
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@preconstruct/cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "preconstruct": {
18
+ "config": ["package.json"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [preconstruct plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/preconstruct/index.ts
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: Prettier
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"prettier"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "prettier": {
18
+ "config": [
19
+ ".prettierrc",
20
+ ".prettierrc.{json,js,cjs,mjs,ts,cts,mts,yml,yaml,toml,json5}",
21
+ "prettier.config.{js,cjs,mjs,ts,cts,mts}",
22
+ "package.{json,yaml}"
23
+ ]
24
+ }
25
+ }
26
+ ```
27
+
28
+ Depending on local configuration, plugins may modify the defaults as shown.
29
+
30
+ Custom `config` or `entry` options override default values, they are not merged.
31
+
32
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
33
+
34
+ ## Generated from source
35
+
36
+ This page was generated from the [prettier plugin source code][2].
37
+
38
+ [1]: ../../explanations/plugins.md
39
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prettier/index.ts
@@ -0,0 +1,62 @@
1
+ ---
2
+ title: Prisma
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
10
+
11
+ - `prisma`
12
+
13
+ - `^@prisma\/.*`
14
+
15
+ ## Default configuration
16
+
17
+ If this plugin is enabled, the following configuration is added automatically:
18
+
19
+ ```json
20
+ {
21
+ "prisma": {
22
+ "config": [
23
+ "prisma.config.{js,ts,mjs,cjs,mts,cts}",
24
+ ".config/prisma.{js,ts,mjs,cjs,mts,cts}",
25
+ "package.json"
26
+ ],
27
+ "entry": ["prisma/schema.prisma", "schema.prisma"]
28
+ }
29
+ }
30
+ ```
31
+
32
+ Depending on local configuration, plugins may modify the defaults as shown.
33
+
34
+ Custom `config` or `entry` options override default values, they are not merged.
35
+
36
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
37
+
38
+ ## Shell commands
39
+
40
+ This plugin adds argument parsing for the <code>prisma</code>
41
+ binary. Configuration:
42
+
43
+ ```
44
+ config: true
45
+ resolveInputs: (parsed , { cwd }) => {
46
+ const inputs = [];
47
+ if (typeof parsed['schema'] === 'string') {
48
+ inputs.push(resolveSchema(parsed['schema'], cwd));
49
+ }
50
+ return inputs;
51
+ }
52
+ ```
53
+
54
+ The configuration was generated from source code. Also see [Script Parser][2].
55
+
56
+ ## Generated from source
57
+
58
+ This page was generated from the [prisma plugin source code][3].
59
+
60
+ [1]: ../../explanations/plugins.md
61
+ [2]: ../../features/script-parser.md
62
+ [3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prisma/index.ts
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Qwik
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@builder.io/qwik"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "qwik": {
18
+ "config": ["vite.config.{js,mjs,ts,cjs,mts,cts}"],
19
+ "entry": [
20
+ "src/entry.dev.tsx",
21
+ "src/root.tsx",
22
+ "src/entry.*.tsx",
23
+ "src/routes/**/*.{tsx,ts,md,mdx}"
24
+ ]
25
+ }
26
+ }
27
+ ```
28
+
29
+ Depending on local configuration, plugins may modify the defaults as shown.
30
+
31
+ Custom `config` or `entry` options override default values, they are not merged.
32
+
33
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
34
+
35
+ ## Generated from source
36
+
37
+ This page was generated from the [qwik plugin source code][2].
38
+
39
+ [1]: ../../explanations/plugins.md
40
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/qwik/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Raycast
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@raycast/api"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "raycast": {
18
+ "config": ["package.json"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [raycast plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/raycast/index.ts
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: React Cosmos
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"react-cosmos"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "react-cosmos": {
18
+ "config": ["cosmos.config.json"],
19
+ "entry": [
20
+ "**/*.fixture.{js,jsx,ts,tsx,md,mdx}",
21
+ "__fixtures__/**/*.{js,jsx,ts,tsx,md,mdx}",
22
+ "**/fixture.{js,jsx,ts,tsx,md,mdx}",
23
+ "**/cosmos.decorator.{jsx,tsx}"
24
+ ]
25
+ }
26
+ }
27
+ ```
28
+
29
+ Depending on local configuration, plugins may modify the defaults as shown.
30
+
31
+ Custom `config` or `entry` options override default values, they are not merged.
32
+
33
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
34
+
35
+ ## Generated from source
36
+
37
+ This page was generated from the [react-cosmos plugin source code][2].
38
+
39
+ [1]: ../../explanations/plugins.md
40
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-cosmos/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: React Native
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"react-native"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "react-native": {
18
+ "config": ["react-native.config.js"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [react-native plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-native/index.ts
@@ -0,0 +1,37 @@
1
+ ---
2
+ title: React Router
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@react-router/dev"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "react-router": {
18
+ "config": [
19
+ "react-router.config.{js,ts}",
20
+ "vite.config.{js,mjs,ts,cjs,mts,cts}"
21
+ ]
22
+ }
23
+ }
24
+ ```
25
+
26
+ Depending on local configuration, plugins may modify the defaults as shown.
27
+
28
+ Custom `config` or `entry` options override default values, they are not merged.
29
+
30
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
31
+
32
+ ## Generated from source
33
+
34
+ This page was generated from the [react-router plugin source code][2].
35
+
36
+ [1]: ../../explanations/plugins.md
37
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/react-router/index.ts
@@ -0,0 +1,53 @@
1
+ ---
2
+ title: Relay
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if there's a match in `"dependencies"` or `"devDependencies"` in `package.json`:
10
+
11
+ - `vite-plugin-relay`
12
+
13
+ - `@swc/plugin-relay`
14
+
15
+ - `babel-plugin-relay`
16
+
17
+ ## Default configuration
18
+
19
+ If this plugin is enabled, the following configuration is added automatically:
20
+
21
+ ```json
22
+ {
23
+ "relay": {
24
+ "config": ["relay.config.json", "relay.config.js"]
25
+ }
26
+ }
27
+ ```
28
+
29
+ Depending on local configuration, plugins may modify the defaults as shown.
30
+
31
+ Custom `config` or `entry` options override default values, they are not merged.
32
+
33
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
34
+
35
+ ## Shell commands
36
+
37
+ This plugin adds argument parsing for the <code>relay-compiler</code>
38
+ binary. Configuration:
39
+
40
+ ```
41
+ args: (args ) => ['-c', parseArgs(args)._[0]]
42
+ config: true
43
+ ```
44
+
45
+ The configuration was generated from source code. Also see [Script Parser][2].
46
+
47
+ ## Generated from source
48
+
49
+ This page was generated from the [relay plugin source code][3].
50
+
51
+ [1]: ../../explanations/plugins.md
52
+ [2]: ../../features/script-parser.md
53
+ [3]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/relay/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Release It!
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"release-it"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "release-it": {
18
+ "config": [".release-it.{json,js,cjs,ts,yml,yaml,toml}", "package.json"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [release-it plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/release-it/index.ts
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Remark
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"remark-cli"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Default configuration
12
+
13
+ If this plugin is enabled, the following configuration is added automatically:
14
+
15
+ ```json
16
+ {
17
+ "remark": {
18
+ "config": [
19
+ "package.json",
20
+ ".remarkrc",
21
+ ".remarkrc.json",
22
+ ".remarkrc.{js,cjs,mjs}",
23
+ ".remarkrc.{yml,yaml}"
24
+ ]
25
+ }
26
+ }
27
+ ```
28
+
29
+ Depending on local configuration, plugins may modify the defaults as shown.
30
+
31
+ Custom `config` or `entry` options override default values, they are not merged.
32
+
33
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
34
+
35
+ ## Generated from source
36
+
37
+ This page was generated from the [remark plugin source code][2].
38
+
39
+ [1]: ../../explanations/plugins.md
40
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/remark/index.ts