@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,133 @@
1
+ ---
2
+ title: JSDoc & TSDoc Tags
3
+ ---
4
+
5
+ JSDoc or TSDoc tags can be used to make exceptions for unused or duplicate
6
+ exports.
7
+
8
+ Knip tries to minimize configuration and introduces no new syntax. That's why it
9
+ hooks into JSDoc and TSDoc tags.
10
+
11
+ :::caution
12
+
13
+ Adding tags or excluding a certain type of issues from the report is usually not
14
+ recommended. It hides issues, which is often a sign of code smell or ambiguity
15
+ and ends up harder to maintain. It's usually better to refactor the code (or
16
+ report an issue with Knip for false positives).
17
+
18
+ :::
19
+
20
+ JSDoc comments always start with `/**` (not `//`) and can be single or
21
+ multi-line.
22
+
23
+ ## Tags
24
+
25
+ Use arbitrary [tags][1] to exclude or include tagged exports from the report.
26
+ Example:
27
+
28
+ ```ts
29
+ /** @lintignore */
30
+ export const myUnusedExport = 1;
31
+
32
+ /** @lintignore */
33
+ import Unresolved from './generated/lib.js';
34
+ ```
35
+
36
+ And then include (`+`) or exclude (`-`) these tagged exports from the report
37
+ like so:
38
+
39
+ ```shell
40
+ knip --tags=-lintignore,-internal
41
+ ```
42
+
43
+ Tags can also be [configured in `knip.json`][2].
44
+
45
+ When an excluded tag is no longer necessary because the export is actually used,
46
+ Knip reports a **tag hint**:
47
+
48
+ ```sh
49
+ Tag hints (1)
50
+ ignored unimported.ts Unused tag in unimported.ts: ignored → @custom
51
+ ```
52
+
53
+ This helps you clean up tags that were added to suppress issues that have since
54
+ been resolved.
55
+
56
+ ## `@public`
57
+
58
+ By default, Knip reports unused exports in non-entry files.
59
+
60
+ Tag the export as `@public` and Knip will not report it.
61
+
62
+ Example:
63
+
64
+ ```ts
65
+ /**
66
+ * @public
67
+ */
68
+ export const unusedFunction = () => {};
69
+ ```
70
+
71
+ This tag can also be used to make exceptions in entry files when using
72
+ [--include-entry-exports][3].
73
+
74
+ [JSDoc: @public][4] and [TSDoc: @public][5]
75
+
76
+ ## `@internal`
77
+
78
+ Internal exports are not meant for public consumption, but only for internal
79
+ usage such as tests. This means they would be reported in [production mode][6].
80
+
81
+ Mark the export with `@internal` and Knip will not report the export in
82
+ production mode.
83
+
84
+ Example:
85
+
86
+ ```ts
87
+ /** @internal */
88
+ export const internalTestedFunction = () => {};
89
+ ```
90
+
91
+ In general it's not recommended to expose and test implementation details, but
92
+ exceptions are possible. Those should not be reported as false positives, so
93
+ when using production mode you'll need to help Knip out by tagging them as
94
+ `@internal`.
95
+
96
+ [TSDoc: @internal][7]
97
+
98
+ ## `@alias`
99
+
100
+ Knip reports duplicate exports. To prevent this, tag one of the exports as
101
+ `@alias`.
102
+
103
+ Example:
104
+
105
+ ```ts
106
+ export const Component = () => {};
107
+
108
+ /** @alias */
109
+ export default Component;
110
+ ```
111
+
112
+ An alternative solution is to use `--exclude duplicates` and exclude all
113
+ duplicates from being reported.
114
+
115
+ [JSDoc: @alias][8]
116
+
117
+ ## `@beta`
118
+
119
+ Works identical to [`@public`][9]. Knip ignores other tags like `@alpha` and
120
+ `@experimental`.
121
+
122
+ [TSDoc: @beta][10]
123
+
124
+ [1]: ../reference/cli.md#--tags
125
+ [2]: ./configuration.md#tags
126
+ [3]: ./cli.md#--include-entry-exports
127
+ [4]: https://jsdoc.app/tags-public.html
128
+ [5]: https://tsdoc.org/pages/tags/public/
129
+ [6]: ../features/production-mode.md
130
+ [7]: https://tsdoc.org/pages/tags/internal/
131
+ [8]: https://jsdoc.app/tags-alias.html
132
+ [9]: #public
133
+ [10]: https://tsdoc.org/pages/tags/beta/
@@ -0,0 +1,86 @@
1
+ ---
2
+ title: Known Issues
3
+ ---
4
+
5
+ List of known issues and workarounds for exceptions thrown during a Knip run.
6
+
7
+ See [handling issues][1] to learn more about dealing with lint issues.
8
+
9
+ ## Exceptions from config files
10
+
11
+ An exception may be thrown when a Knip plugin loads a JavaScript or TypeScript
12
+ configuration file such as `webpack.config.js` or `vite.config.ts`:
13
+
14
+ ```sh
15
+ $ knip
16
+ Error loading .../vite.config.ts
17
+ ```
18
+
19
+ Knip may load such files differently, in a different environment, with missing
20
+ environment variables, missing path aliases, etcetera. Use `--debug` to locate
21
+ the cause of the issue with more details.
22
+
23
+ Potential workarounds:
24
+
25
+ - [Set path aliases][2] for "Cannot find module" errors
26
+ - Set missing environment variable(s), potential solutions:
27
+ - Use a helper package like [dotenvx][3]
28
+ - `KEY=VAL knip`
29
+ - `node --env-file .env $(which knip)`
30
+ - Disable loading the file by overriding the default `config` for that plugin.
31
+ - Example: `vite: { config: [] }`
32
+ - In a monorepo, be more specific like so:
33
+ `workspaces: { "packages/lib": { vite: { config: [] } } }`
34
+ - If this helps, add the file as an `entry` file for static analysis.
35
+ - Disable the related plugin.
36
+ - Example: `eslint: false`
37
+ - In a monorepo, be more specific like so:
38
+ `workspaces: { "packages/lib": { eslint: false } }`
39
+ - If this helps, add the file as an `entry` file for static analysis.
40
+ - As a last resort, ignore the workspace: `ignoreWorkspaces: ["packages/lib"]`.
41
+
42
+ ## Path aliases in config files
43
+
44
+ Loading the configuration file (e.g. `cypress.config.ts`) for one of Knip's
45
+ plugins may give an error:
46
+
47
+ ```sh
48
+ $ knip
49
+ Analyzing workspace ....
50
+ Error loading .../cypress.config.ts
51
+ Reason: Cannot find module '@alias/name'
52
+ Require stack:
53
+ - .../cypress.config.ts
54
+ ```
55
+
56
+ Some tools (such as Cypress and Jest) support using TypeScript path aliases in
57
+ the configuration file.
58
+
59
+ Potential workarounds:
60
+
61
+ - Rewrite the import in the configuration file to a relative import.
62
+ - Inject support with a module like `tsx`: `NODE_OPTIONS="--import tsx" knip`
63
+ - Or `tsconfig-paths`: `NODE_OPTIONS="--import tsconfig-paths/register.js" knip`
64
+ - Use Bun with [knip-bun][4].
65
+ - See [exceptions from config files][5] for more potential workarounds.
66
+
67
+ ## Nx Daemon
68
+
69
+ In Nx projects you might encounter this error:
70
+
71
+ ```sh
72
+ NX Daemon process terminated and closed the connection
73
+ ```
74
+
75
+ The solution is to [disable the Nx Daemon][6]:
76
+
77
+ ```sh
78
+ NX_DAEMON=false knip
79
+ ```
80
+
81
+ [1]: ../guides/handling-issues.mdx
82
+ [2]: #path-aliases-in-config-files
83
+ [3]: https://dotenvx.com/
84
+ [4]: ./cli.md#knip-bun
85
+ [5]: #exceptions-from-config-files
86
+ [6]: https://nx.dev/concepts/nx-daemon#turning-it-off
File without changes
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Angular
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@angular/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
+ "angular": {
18
+ "config": ["angular.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 [angular plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/angular/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Astro DB
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@astrojs/db"` 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
+ "astro-db": {
18
+ "entry": ["db/config.{js,ts}", "db/seed.{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 [astro-db plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro-db/index.ts
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: astro-og-canvas
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"astro-og-canvas"` is listed in `"dependencies"` or `"devDependencies"` in `package.json`.
10
+
11
+ ## Generated from source
12
+
13
+ This page was generated from the [astro-og-canvas plugin source code][1].
14
+
15
+ [1]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro-og-canvas/index.ts
@@ -0,0 +1,44 @@
1
+ ---
2
+ title: Astro
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"astro"` 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
+ "astro": {
18
+ "config": ["astro.config.{js,cjs,mjs,ts,mts}"],
19
+ "entry": [
20
+ "src/content/config.ts",
21
+ "src/content.config.ts",
22
+ "src/pages/**/*.{astro,mdx,js,ts}",
23
+ "!src/pages/**/_*",
24
+ "!src/pages/**/_*/**",
25
+ "src/content/**/*.mdx",
26
+ "src/middleware.{js,ts}",
27
+ "src/actions/index.{js,ts}"
28
+ ]
29
+ }
30
+ }
31
+ ```
32
+
33
+ Depending on local configuration, plugins may modify the defaults as shown.
34
+
35
+ Custom `config` or `entry` options override default values, they are not merged.
36
+
37
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
38
+
39
+ ## Generated from source
40
+
41
+ This page was generated from the [astro plugin source code][2].
42
+
43
+ [1]: ../../explanations/plugins.md
44
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/astro/index.ts
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Ava
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"ava"` 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
+ "ava": {
18
+ "config": ["ava.config.{js,cjs,mjs}", "package.json"],
19
+ "entry": [
20
+ "test.{js,cjs,mjs,ts}",
21
+ "{src,source}/test.{js,cjs,mjs,ts}",
22
+ "**/__tests__/**/*.{js,cjs,mjs,ts}",
23
+ "**/*.spec.{js,cjs,mjs,ts}",
24
+ "**/*.test.{js,cjs,mjs,ts}",
25
+ "**/test-*.{js,cjs,mjs,ts}",
26
+ "**/test/**/*.{js,cjs,mjs,ts}",
27
+ "**/tests/**/*.{js,cjs,mjs,ts}",
28
+ "!**/__tests__/**/__{helper,fixture}?(s)__/**/*",
29
+ "!**/test?(s)/**/{helper,fixture}?(s)/**/*"
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 [ava plugin source code][2].
44
+
45
+ [1]: ../../explanations/plugins.md
46
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/ava/index.ts
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: Babel
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
+ - `^@babel\/`
12
+
13
+ ## Default configuration
14
+
15
+ If this plugin is enabled, the following configuration is added automatically:
16
+
17
+ ```json
18
+ {
19
+ "babel": {
20
+ "config": [
21
+ "babel.config.{json,js,cjs,mjs,cts,ts}",
22
+ ".babelrc.{json,js,cjs,mjs,cts}",
23
+ ".babelrc",
24
+ "package.json"
25
+ ]
26
+ }
27
+ }
28
+ ```
29
+
30
+ Depending on local configuration, plugins may modify the defaults as shown.
31
+
32
+ Custom `config` or `entry` options override default values, they are not merged.
33
+
34
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
35
+
36
+ ## Generated from source
37
+
38
+ This page was generated from the [babel plugin source code][2].
39
+
40
+ [1]: ../../explanations/plugins.md
41
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/babel/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Biome
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"@biomejs/biome"` 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
+ "biome": {
18
+ "config": ["biome.json", "biome.jsonc"]
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 [biome plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/biome/index.ts
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: bumpp
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"bumpp"` 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
+ "bumpp": {
18
+ "entry": [
19
+ "package.json",
20
+ ".bumprc",
21
+ ".config/bumprc",
22
+ ".bumprc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}",
23
+ "bump.config.{js,ts,mjs,cjs,mts,cts}",
24
+ ".config/bumprc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}"
25
+ ]
26
+ }
27
+ }
28
+ ```
29
+
30
+ Depending on local configuration, plugins may modify the defaults as shown.
31
+
32
+ Custom `config` or `entry` options override default values, they are not merged.
33
+
34
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
35
+
36
+ ## Generated from source
37
+
38
+ This page was generated from the [bumpp plugin source code][2].
39
+
40
+ [1]: ../../explanations/plugins.md
41
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/bumpp/index.ts
@@ -0,0 +1,34 @@
1
+ ---
2
+ title: Bun
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"bun"` 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
+ "bun": {
18
+ "config": ["bunfig.toml"]
19
+ }
20
+ }
21
+ ```
22
+
23
+ Depending on local configuration, plugins may modify the defaults as shown.
24
+
25
+ Custom `config` or `entry` options override default values, they are not merged.
26
+
27
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
28
+
29
+ ## Generated from source
30
+
31
+ This page was generated from the [bun plugin source code][2].
32
+
33
+ [1]: ../../explanations/plugins.md
34
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/bun/index.ts
@@ -0,0 +1,29 @@
1
+ ---
2
+ title: c8
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is always enabled.
10
+
11
+ ## Shell commands
12
+
13
+ This plugin adds argument parsing for the <code>c8</code>
14
+ binary. Configuration:
15
+
16
+ ```
17
+ args: (args ) => args.filter(arg => arg !== 'check-coverage')
18
+ boolean: ["all", "check-coverage", "clean", "exclude-after-remap", "per-file", "skip-full"]
19
+ fromArgs: (parsed , args ) => (parsed._[0] ? argsFrom(args, parsed._[0]) : (parsed['--'] ?? []))
20
+ ```
21
+
22
+ The configuration was generated from source code. Also see [Script Parser][1].
23
+
24
+ ## Generated from source
25
+
26
+ This page was generated from the [c8 plugin source code][2].
27
+
28
+ [1]: ../../features/script-parser.md
29
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/c8/index.ts
@@ -0,0 +1,36 @@
1
+ ---
2
+ title: Capacitor
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
+ - `^@capacitor\/`
12
+
13
+ ## Default configuration
14
+
15
+ If this plugin is enabled, the following configuration is added automatically:
16
+
17
+ ```json
18
+ {
19
+ "capacitor": {
20
+ "config": ["capacitor.config.{json,ts}"]
21
+ }
22
+ }
23
+ ```
24
+
25
+ Depending on local configuration, plugins may modify the defaults as shown.
26
+
27
+ Custom `config` or `entry` options override default values, they are not merged.
28
+
29
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
30
+
31
+ ## Generated from source
32
+
33
+ This page was generated from the [capacitor plugin source code][2].
34
+
35
+ [1]: ../../explanations/plugins.md
36
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/capacitor/index.ts
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: Changelogen
3
+ sidebar:
4
+ hidden: true
5
+ ---
6
+
7
+ ## Enabled
8
+
9
+ This plugin is enabled if `"changelogen"` 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
+ "changelogen": {
18
+ "entry": [
19
+ "package.json",
20
+ ".changelogrc",
21
+ ".config/changelogrc",
22
+ ".changelogrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}",
23
+ "changelog.config.{js,ts,mjs,cjs,mts,cts}",
24
+ ".config/changelogrc.{json,jsonc,json5,yaml,yml,js,ts,mjs,cjs,mts,cts,toml}"
25
+ ]
26
+ }
27
+ }
28
+ ```
29
+
30
+ Depending on local configuration, plugins may modify the defaults as shown.
31
+
32
+ Custom `config` or `entry` options override default values, they are not merged.
33
+
34
+ See [Plugins][1] for more details about plugins and their `entry` and `config` options.
35
+
36
+ ## Generated from source
37
+
38
+ This page was generated from the [changelogen plugin source code][2].
39
+
40
+ [1]: ../../explanations/plugins.md
41
+ [2]: https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/changelogen/index.ts