@knip/mcp 0.0.17 → 0.0.19

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 (299) hide show
  1. package/package.json +4 -4
  2. package/src/docs/blog/for-editors-and-agents.md +47 -43
  3. package/src/docs/blog/knip-v4.mdx +2 -2
  4. package/src/docs/blog/two-years.mdx +1 -1
  5. package/src/docs/docs/explanations/comparison-and-migration.md +4 -0
  6. package/src/docs/docs/explanations/plugins.md +20 -2
  7. package/src/docs/docs/features/auto-fix.mdx +4 -4
  8. package/src/docs/docs/features/production-mode.md +1 -1
  9. package/src/docs/docs/features/reporters.md +9 -7
  10. package/src/docs/docs/guides/handling-issues.mdx +125 -109
  11. package/src/docs/docs/guides/issue-reproduction.md +17 -12
  12. package/src/docs/docs/guides/performance.md +19 -8
  13. package/src/docs/docs/guides/using-knip-in-ci.md +16 -20
  14. package/src/docs/docs/overview/features.md +2 -2
  15. package/src/docs/docs/overview/getting-started.mdx +6 -7
  16. package/src/docs/docs/reference/configuration-hints.md +146 -0
  17. package/src/docs/docs/reference/faq.md +27 -37
  18. package/src/docs/docs/reference/integrations.md +105 -0
  19. package/src/docs/docs/reference/plugins.md +5 -1
  20. package/src/docs/docs/sponsors.mdx +2 -2
  21. package/src/docs/explanations/comparison-and-migration.md +2 -0
  22. package/src/docs/explanations/plugins.md +16 -6
  23. package/src/docs/features/auto-fix.mdx +20 -5
  24. package/src/docs/features/monorepos-and-workspaces.md +19 -4
  25. package/src/docs/features/production-mode.md +1 -1
  26. package/src/docs/features/reporters.md +9 -7
  27. package/src/docs/guides/configuring-project-files.md +13 -13
  28. package/src/docs/guides/contributing.md +1 -1
  29. package/src/docs/guides/handling-issues.mdx +183 -121
  30. package/src/docs/guides/issue-reproduction.md +15 -7
  31. package/src/docs/guides/performance.md +19 -8
  32. package/src/docs/guides/troubleshooting.md +7 -10
  33. package/src/docs/guides/using-knip-in-ci.md +16 -20
  34. package/src/docs/index.mdx +3 -3
  35. package/src/docs/overview/configuration.md +6 -6
  36. package/src/docs/overview/features.md +5 -5
  37. package/src/docs/overview/getting-started.mdx +15 -5
  38. package/src/docs/reference/cli.md +269 -243
  39. package/src/docs/reference/configuration-hints.md +146 -0
  40. package/src/docs/reference/configuration.md +24 -7
  41. package/src/docs/reference/faq.md +28 -39
  42. package/src/docs/reference/integrations.md +105 -0
  43. package/src/docs/reference/known-issues.md +43 -21
  44. package/src/docs/reference/plugins.md +9 -1
  45. package/src/docs/reference/related-tooling.md +3 -3
  46. package/src/docs/sponsors.mdx +3 -4
  47. package/src/docs/typescript/unused-exports.md +1 -1
  48. package/src/docs/writing-a-plugin/index.md +16 -3
  49. package/src/tools.js +3 -9
  50. package/src/docs/docs/reference/plugins/angular.md +0 -37
  51. package/src/docs/docs/reference/plugins/astro-db.md +0 -37
  52. package/src/docs/docs/reference/plugins/astro.md +0 -47
  53. package/src/docs/docs/reference/plugins/ava.md +0 -49
  54. package/src/docs/docs/reference/plugins/babel.md +0 -44
  55. package/src/docs/docs/reference/plugins/biome.md +0 -37
  56. package/src/docs/docs/reference/plugins/bumpp.md +0 -44
  57. package/src/docs/docs/reference/plugins/bun.md +0 -17
  58. package/src/docs/docs/reference/plugins/c8.md +0 -29
  59. package/src/docs/docs/reference/plugins/capacitor.md +0 -39
  60. package/src/docs/docs/reference/plugins/changelogen.md +0 -44
  61. package/src/docs/docs/reference/plugins/changelogithub.md +0 -44
  62. package/src/docs/docs/reference/plugins/changesets.md +0 -37
  63. package/src/docs/docs/reference/plugins/commitizen.md +0 -37
  64. package/src/docs/docs/reference/plugins/commitlint.md +0 -45
  65. package/src/docs/docs/reference/plugins/convex.md +0 -37
  66. package/src/docs/docs/reference/plugins/create-typescript-app.md +0 -37
  67. package/src/docs/docs/reference/plugins/cspell.md +0 -42
  68. package/src/docs/docs/reference/plugins/cucumber.md +0 -38
  69. package/src/docs/docs/reference/plugins/cypress.md +0 -44
  70. package/src/docs/docs/reference/plugins/danger.md +0 -37
  71. package/src/docs/docs/reference/plugins/dependency-cruiser.md +0 -49
  72. package/src/docs/docs/reference/plugins/docusaurus.md +0 -43
  73. package/src/docs/docs/reference/plugins/dotenv.md +0 -28
  74. package/src/docs/docs/reference/plugins/drizzle.md +0 -37
  75. package/src/docs/docs/reference/plugins/eleventy.md +0 -38
  76. package/src/docs/docs/reference/plugins/eslint.md +0 -86
  77. package/src/docs/docs/reference/plugins/expo.md +0 -38
  78. package/src/docs/docs/reference/plugins/gatsby.md +0 -52
  79. package/src/docs/docs/reference/plugins/github-action.md +0 -37
  80. package/src/docs/docs/reference/plugins/github-actions.md +0 -37
  81. package/src/docs/docs/reference/plugins/glob.md +0 -30
  82. package/src/docs/docs/reference/plugins/graphql-codegen.md +0 -49
  83. package/src/docs/docs/reference/plugins/hardhat.md +0 -37
  84. package/src/docs/docs/reference/plugins/husky.md +0 -43
  85. package/src/docs/docs/reference/plugins/i18next-parser.md +0 -49
  86. package/src/docs/docs/reference/plugins/jest.md +0 -54
  87. package/src/docs/docs/reference/plugins/karma.md +0 -42
  88. package/src/docs/docs/reference/plugins/knex.md +0 -37
  89. package/src/docs/docs/reference/plugins/ladle.md +0 -42
  90. package/src/docs/docs/reference/plugins/lefthook.md +0 -49
  91. package/src/docs/docs/reference/plugins/lint-staged.md +0 -51
  92. package/src/docs/docs/reference/plugins/linthtml.md +0 -44
  93. package/src/docs/docs/reference/plugins/lockfile-lint.md +0 -44
  94. package/src/docs/docs/reference/plugins/lost-pixel.md +0 -37
  95. package/src/docs/docs/reference/plugins/markdownlint.md +0 -37
  96. package/src/docs/docs/reference/plugins/mdx.md +0 -41
  97. package/src/docs/docs/reference/plugins/mdxlint.md +0 -41
  98. package/src/docs/docs/reference/plugins/metro.md +0 -49
  99. package/src/docs/docs/reference/plugins/mocha.md +0 -50
  100. package/src/docs/docs/reference/plugins/moonrepo.md +0 -37
  101. package/src/docs/docs/reference/plugins/msw.md +0 -38
  102. package/src/docs/docs/reference/plugins/nano-staged.md +0 -42
  103. package/src/docs/docs/reference/plugins/nest.md +0 -39
  104. package/src/docs/docs/reference/plugins/netlify.md +0 -44
  105. package/src/docs/docs/reference/plugins/next-intl.md +0 -37
  106. package/src/docs/docs/reference/plugins/next-mdx.md +0 -38
  107. package/src/docs/docs/reference/plugins/next.md +0 -57
  108. package/src/docs/docs/reference/plugins/node-modules-inspector.md +0 -52
  109. package/src/docs/docs/reference/plugins/node.md +0 -52
  110. package/src/docs/docs/reference/plugins/nodemon.md +0 -31
  111. package/src/docs/docs/reference/plugins/npm-package-json-lint.md +0 -44
  112. package/src/docs/docs/reference/plugins/nuxt.md +0 -55
  113. package/src/docs/docs/reference/plugins/nx.md +0 -65
  114. package/src/docs/docs/reference/plugins/nyc.md +0 -42
  115. package/src/docs/docs/reference/plugins/oclif.md +0 -37
  116. package/src/docs/docs/reference/plugins/oxlint.md +0 -49
  117. package/src/docs/docs/reference/plugins/parcel.md +0 -41
  118. package/src/docs/docs/reference/plugins/playwright-ct.md +0 -43
  119. package/src/docs/docs/reference/plugins/playwright-test.md +0 -31
  120. package/src/docs/docs/reference/plugins/playwright.md +0 -52
  121. package/src/docs/docs/reference/plugins/plop.md +0 -37
  122. package/src/docs/docs/reference/plugins/pnpm.md +0 -36
  123. package/src/docs/docs/reference/plugins/postcss.md +0 -49
  124. package/src/docs/docs/reference/plugins/preconstruct.md +0 -37
  125. package/src/docs/docs/reference/plugins/prettier.md +0 -42
  126. package/src/docs/docs/reference/plugins/prisma.md +0 -59
  127. package/src/docs/docs/reference/plugins/react-cosmos.md +0 -43
  128. package/src/docs/docs/reference/plugins/react-router.md +0 -40
  129. package/src/docs/docs/reference/plugins/relay.md +0 -56
  130. package/src/docs/docs/reference/plugins/release-it.md +0 -37
  131. package/src/docs/docs/reference/plugins/remark.md +0 -43
  132. package/src/docs/docs/reference/plugins/remix.md +0 -46
  133. package/src/docs/docs/reference/plugins/rollup.md +0 -52
  134. package/src/docs/docs/reference/plugins/rsbuild.md +0 -37
  135. package/src/docs/docs/reference/plugins/rslib.md +0 -37
  136. package/src/docs/docs/reference/plugins/rspack.md +0 -37
  137. package/src/docs/docs/reference/plugins/rstest.md +0 -37
  138. package/src/docs/docs/reference/plugins/semantic-release.md +0 -44
  139. package/src/docs/docs/reference/plugins/sentry.md +0 -39
  140. package/src/docs/docs/reference/plugins/simple-git-hooks.md +0 -41
  141. package/src/docs/docs/reference/plugins/size-limit.md +0 -42
  142. package/src/docs/docs/reference/plugins/sst.md +0 -37
  143. package/src/docs/docs/reference/plugins/starlight.md +0 -37
  144. package/src/docs/docs/reference/plugins/storybook.md +0 -46
  145. package/src/docs/docs/reference/plugins/stryker.md +0 -37
  146. package/src/docs/docs/reference/plugins/stylelint.md +0 -44
  147. package/src/docs/docs/reference/plugins/svelte.md +0 -43
  148. package/src/docs/docs/reference/plugins/svgo.md +0 -41
  149. package/src/docs/docs/reference/plugins/svgr.md +0 -46
  150. package/src/docs/docs/reference/plugins/swc.md +0 -37
  151. package/src/docs/docs/reference/plugins/syncpack.md +0 -44
  152. package/src/docs/docs/reference/plugins/tailwind.md +0 -37
  153. package/src/docs/docs/reference/plugins/tanstack-router.md +0 -49
  154. package/src/docs/docs/reference/plugins/taskfile.md +0 -37
  155. package/src/docs/docs/reference/plugins/travis.md +0 -36
  156. package/src/docs/docs/reference/plugins/ts-node.md +0 -31
  157. package/src/docs/docs/reference/plugins/tsdown.md +0 -49
  158. package/src/docs/docs/reference/plugins/tsup.md +0 -49
  159. package/src/docs/docs/reference/plugins/tsx.md +0 -50
  160. package/src/docs/docs/reference/plugins/typedoc.md +0 -56
  161. package/src/docs/docs/reference/plugins/typescript.md +0 -57
  162. package/src/docs/docs/reference/plugins/unbuild.md +0 -37
  163. package/src/docs/docs/reference/plugins/unocss.md +0 -42
  164. package/src/docs/docs/reference/plugins/vercel-og.md +0 -44
  165. package/src/docs/docs/reference/plugins/vike.md +0 -40
  166. package/src/docs/docs/reference/plugins/vite.md +0 -53
  167. package/src/docs/docs/reference/plugins/vitepress.md +0 -40
  168. package/src/docs/docs/reference/plugins/vitest.md +0 -57
  169. package/src/docs/docs/reference/plugins/vue.md +0 -37
  170. package/src/docs/docs/reference/plugins/webdriver-io.md +0 -37
  171. package/src/docs/docs/reference/plugins/webpack.md +0 -53
  172. package/src/docs/docs/reference/plugins/wireit.md +0 -37
  173. package/src/docs/docs/reference/plugins/wrangler.md +0 -37
  174. package/src/docs/docs/reference/plugins/xo.md +0 -43
  175. package/src/docs/docs/reference/plugins/yarn.md +0 -36
  176. package/src/docs/docs/reference/plugins/yorkie.md +0 -37
  177. package/src/docs/reference/plugins/angular.md +0 -33
  178. package/src/docs/reference/plugins/astro-db.md +0 -34
  179. package/src/docs/reference/plugins/astro.md +0 -43
  180. package/src/docs/reference/plugins/ava.md +0 -46
  181. package/src/docs/reference/plugins/babel.md +0 -38
  182. package/src/docs/reference/plugins/biome.md +0 -34
  183. package/src/docs/reference/plugins/bumpp.md +0 -38
  184. package/src/docs/reference/plugins/bun.md +0 -33
  185. package/src/docs/reference/plugins/c8.md +0 -26
  186. package/src/docs/reference/plugins/capacitor.md +0 -35
  187. package/src/docs/reference/plugins/changelogen.md +0 -38
  188. package/src/docs/reference/plugins/changelogithub.md +0 -38
  189. package/src/docs/reference/plugins/changesets.md +0 -33
  190. package/src/docs/reference/plugins/commitizen.md +0 -35
  191. package/src/docs/reference/plugins/commitlint.md +0 -39
  192. package/src/docs/reference/plugins/convex.md +0 -34
  193. package/src/docs/reference/plugins/create-typescript-app.md +0 -33
  194. package/src/docs/reference/plugins/cspell.md +0 -36
  195. package/src/docs/reference/plugins/cucumber.md +0 -36
  196. package/src/docs/reference/plugins/cypress.md +0 -40
  197. package/src/docs/reference/plugins/danger.md +0 -33
  198. package/src/docs/reference/plugins/dependency-cruiser.md +0 -44
  199. package/src/docs/reference/plugins/docusaurus.md +0 -39
  200. package/src/docs/reference/plugins/dotenv.md +0 -24
  201. package/src/docs/reference/plugins/drizzle.md +0 -33
  202. package/src/docs/reference/plugins/eleventy.md +0 -38
  203. package/src/docs/reference/plugins/eslint.md +0 -74
  204. package/src/docs/reference/plugins/expo.md +0 -38
  205. package/src/docs/reference/plugins/gatsby.md +0 -46
  206. package/src/docs/reference/plugins/github-action.md +0 -33
  207. package/src/docs/reference/plugins/github-actions.md +0 -34
  208. package/src/docs/reference/plugins/glob.md +0 -26
  209. package/src/docs/reference/plugins/graphql-codegen.md +0 -43
  210. package/src/docs/reference/plugins/hardhat.md +0 -33
  211. package/src/docs/reference/plugins/husky.md +0 -37
  212. package/src/docs/reference/plugins/i18next-parser.md +0 -44
  213. package/src/docs/reference/plugins/jest.md +0 -50
  214. package/src/docs/reference/plugins/karma.md +0 -36
  215. package/src/docs/reference/plugins/ladle.md +0 -40
  216. package/src/docs/reference/plugins/lefthook.md +0 -43
  217. package/src/docs/reference/plugins/lint-staged.md +0 -45
  218. package/src/docs/reference/plugins/linthtml.md +0 -38
  219. package/src/docs/reference/plugins/lockfile-lint.md +0 -38
  220. package/src/docs/reference/plugins/lost-pixel.md +0 -33
  221. package/src/docs/reference/plugins/markdownlint.md +0 -34
  222. package/src/docs/reference/plugins/mdx.md +0 -37
  223. package/src/docs/reference/plugins/mdxlint.md +0 -35
  224. package/src/docs/reference/plugins/metro.md +0 -46
  225. package/src/docs/reference/plugins/mocha.md +0 -48
  226. package/src/docs/reference/plugins/moonrepo.md +0 -35
  227. package/src/docs/reference/plugins/msw.md +0 -36
  228. package/src/docs/reference/plugins/nano-staged.md +0 -36
  229. package/src/docs/reference/plugins/nest.md +0 -38
  230. package/src/docs/reference/plugins/netlify.md +0 -42
  231. package/src/docs/reference/plugins/next-intl.md +0 -33
  232. package/src/docs/reference/plugins/next-mdx.md +0 -36
  233. package/src/docs/reference/plugins/next.md +0 -53
  234. package/src/docs/reference/plugins/node-modules-inspector.md +0 -45
  235. package/src/docs/reference/plugins/node.md +0 -48
  236. package/src/docs/reference/plugins/nodemon.md +0 -27
  237. package/src/docs/reference/plugins/npm-package-json-lint.md +0 -38
  238. package/src/docs/reference/plugins/nuxt.md +0 -49
  239. package/src/docs/reference/plugins/nx.md +0 -57
  240. package/src/docs/reference/plugins/nyc.md +0 -36
  241. package/src/docs/reference/plugins/oclif.md +0 -33
  242. package/src/docs/reference/plugins/oxlint.md +0 -44
  243. package/src/docs/reference/plugins/playwright-ct.md +0 -39
  244. package/src/docs/reference/plugins/playwright-test.md +0 -26
  245. package/src/docs/reference/plugins/playwright.md +0 -49
  246. package/src/docs/reference/plugins/plop.md +0 -33
  247. package/src/docs/reference/plugins/pnpm.md +0 -33
  248. package/src/docs/reference/plugins/postcss.md +0 -43
  249. package/src/docs/reference/plugins/preconstruct.md +0 -33
  250. package/src/docs/reference/plugins/prettier.md +0 -36
  251. package/src/docs/reference/plugins/prisma.md +0 -55
  252. package/src/docs/reference/plugins/react-cosmos.md +0 -39
  253. package/src/docs/reference/plugins/react-router.md +0 -34
  254. package/src/docs/reference/plugins/relay.md +0 -52
  255. package/src/docs/reference/plugins/release-it.md +0 -34
  256. package/src/docs/reference/plugins/remark.md +0 -37
  257. package/src/docs/reference/plugins/remix.md +0 -40
  258. package/src/docs/reference/plugins/rollup.md +0 -47
  259. package/src/docs/reference/plugins/rsbuild.md +0 -33
  260. package/src/docs/reference/plugins/rslib.md +0 -33
  261. package/src/docs/reference/plugins/rspack.md +0 -33
  262. package/src/docs/reference/plugins/rstest.md +0 -33
  263. package/src/docs/reference/plugins/semantic-release.md +0 -38
  264. package/src/docs/reference/plugins/sentry.md +0 -35
  265. package/src/docs/reference/plugins/simple-git-hooks.md +0 -35
  266. package/src/docs/reference/plugins/size-limit.md +0 -36
  267. package/src/docs/reference/plugins/sst.md +0 -33
  268. package/src/docs/reference/plugins/starlight.md +0 -33
  269. package/src/docs/reference/plugins/storybook.md +0 -44
  270. package/src/docs/reference/plugins/stryker.md +0 -33
  271. package/src/docs/reference/plugins/stylelint.md +0 -38
  272. package/src/docs/reference/plugins/svelte.md +0 -37
  273. package/src/docs/reference/plugins/svgo.md +0 -37
  274. package/src/docs/reference/plugins/svgr.md +0 -40
  275. package/src/docs/reference/plugins/swc.md +0 -33
  276. package/src/docs/reference/plugins/syncpack.md +0 -38
  277. package/src/docs/reference/plugins/tailwind.md +0 -33
  278. package/src/docs/reference/plugins/taskfile.md +0 -34
  279. package/src/docs/reference/plugins/travis.md +0 -33
  280. package/src/docs/reference/plugins/ts-node.md +0 -27
  281. package/src/docs/reference/plugins/tsdown.md +0 -45
  282. package/src/docs/reference/plugins/tsup.md +0 -45
  283. package/src/docs/reference/plugins/tsx.md +0 -46
  284. package/src/docs/reference/plugins/typedoc.md +0 -49
  285. package/src/docs/reference/plugins/typescript.md +0 -50
  286. package/src/docs/reference/plugins/unbuild.md +0 -33
  287. package/src/docs/reference/plugins/unocss.md +0 -36
  288. package/src/docs/reference/plugins/vercel-og.md +0 -38
  289. package/src/docs/reference/plugins/vike.md +0 -34
  290. package/src/docs/reference/plugins/vite.md +0 -48
  291. package/src/docs/reference/plugins/vitest.md +0 -50
  292. package/src/docs/reference/plugins/vue.md +0 -33
  293. package/src/docs/reference/plugins/webdriver-io.md +0 -33
  294. package/src/docs/reference/plugins/webpack.md +0 -48
  295. package/src/docs/reference/plugins/wireit.md +0 -33
  296. package/src/docs/reference/plugins/wrangler.md +0 -33
  297. package/src/docs/reference/plugins/xo.md +0 -40
  298. package/src/docs/reference/plugins/yarn.md +0 -33
  299. package/src/docs/reference/plugins/yorkie.md +0 -33
@@ -1,55 +0,0 @@
1
- ---
2
- title: Nuxt
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if `"nuxt"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "nuxt": {
19
- "config": ["nuxt.config.{js,mjs,ts}"],
20
- "entry": [
21
- "app.{vue,jsx,tsx}",
22
- "error.{vue,jsx,tsx}",
23
- "pages/**/*.{vue,jsx,tsx}",
24
- "layouts/default.{vue,jsx,tsx}",
25
- "middleware/**/*.ts",
26
- "server/api/**/*.ts",
27
- "server/routes/**/*.ts",
28
- "server/middleware/**/*.ts",
29
- "server/plugins/**/*.ts"
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`
40
- options.
41
-
42
- ## Note
43
-
44
- Knip works best with [explicit imports][2]. Nuxt allows to [disable
45
- auto-imports][3].
46
-
47
- ## Generated from source
48
-
49
- This page was generated from the [nuxt plugin source code][4].
50
-
51
- [1]: ../../explanations/plugins.md
52
- [2]: https://nuxt.com/docs/guide/concepts/auto-imports#explicit-imports
53
- [3]: https://nuxt.com/docs/guide/concepts/auto-imports#disabling-auto-imports
54
- [4]:
55
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nuxt/index.ts
@@ -1,65 +0,0 @@
1
- ---
2
- title: Nx
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
11
-
12
- - `nx`
13
-
14
- - `^@nrwl\/`
15
-
16
- - `^@nx\/`
17
-
18
- ## Default configuration
19
-
20
- If this plugin is enabled, the following configuration is added automatically:
21
-
22
- ```json
23
- {
24
- "nx": {
25
- "config": [
26
- "nx.json",
27
- "project.json",
28
- "{apps,libs}/**/project.json",
29
- "package.json"
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`
40
- options.
41
-
42
- ## Note
43
-
44
- Also see [integrated monorepos][2] and the note regarding internal workspace
45
- dependencies.
46
-
47
- ## Shell commands
48
-
49
- This plugin adds argument parsing for the <code>nx</code> binary. Configuration:
50
-
51
- ```
52
- fromArgs: parsed=>parsed._[0]==="exec"?parsed._.slice(1):[]
53
- ```
54
-
55
- The configuration was generated from source code. Also see [Script Parser][3].
56
-
57
- ## Generated from source
58
-
59
- This page was generated from the [nx plugin source code][4].
60
-
61
- [1]: ../../explanations/plugins.md
62
- [2]: ../../features/integrated-monorepos.md
63
- [3]: ../../features/script-parser.md
64
- [4]:
65
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nx/index.ts
@@ -1,42 +0,0 @@
1
- ---
2
- title: nyc
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if `"nyc"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "nyc": {
19
- "config": [
20
- ".nycrc",
21
- ".nycrc.{json,yml,yaml}",
22
- "nyc.config.js",
23
- "package.json"
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`
34
- options.
35
-
36
- ## Generated from source
37
-
38
- This page was generated from the [nyc plugin source code][2].
39
-
40
- [1]: ../../explanations/plugins.md
41
- [2]:
42
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/nyc/index.ts
@@ -1,37 +0,0 @@
1
- ---
2
- title: oclif
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if `"oclif"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "oclif": {
19
- "config": ["package.json"]
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`
29
- options.
30
-
31
- ## Generated from source
32
-
33
- This page was generated from the [oclif plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/oclif/index.ts
@@ -1,49 +0,0 @@
1
- ---
2
- title: Oxlint
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if `"oxlint"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "oxlint": {
19
- "config": [".oxlintrc.json"]
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`
29
- options.
30
-
31
- ## Shell commands
32
-
33
- This plugin adds argument parsing for the <code>oxlint</code> binary.
34
- Configuration:
35
-
36
- ```
37
- config: true
38
- ```
39
-
40
- The configuration was generated from source code. Also see [Script Parser][2].
41
-
42
- ## Generated from source
43
-
44
- This page was generated from the [oxlint plugin source code][3].
45
-
46
- [1]: ../../explanations/plugins.md
47
- [2]: ../../features/script-parser.md
48
- [3]:
49
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/oxlint/index.ts
@@ -1,41 +0,0 @@
1
- ---
2
- title: Parcel
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
11
-
12
- - `parcel`
13
-
14
- - `@parcel/core`
15
-
16
- ## Default configuration
17
-
18
- If this plugin is enabled, the following configuration is added automatically:
19
-
20
- ```json
21
- {
22
- "parcel": {
23
- "config": [".parcelrc"]
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`
33
- options.
34
-
35
- ## Generated from source
36
-
37
- This page was generated from the [parcel plugin source code][2].
38
-
39
- [1]: ../../explanations/plugins.md
40
- [2]:
41
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/parcel/index.ts
@@ -1,43 +0,0 @@
1
- ---
2
- title: Playwright for components
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if there's a match in `"dependencies"` or
10
- `"devDependencies"` in `package.json`:
11
-
12
- - `^@playwright\/experimental-ct-`
13
-
14
- ## Default configuration
15
-
16
- If this plugin is enabled, the following configuration is added automatically:
17
-
18
- ```json
19
- {
20
- "playwright-ct": {
21
- "config": ["playwright-ct.config.{js,ts}"],
22
- "entry": [
23
- "**/*.@(spec|test).?(c|m)[jt]s?(x)",
24
- "playwright/index.{js,ts,jsx,tsx}"
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`
35
- options.
36
-
37
- ## Generated from source
38
-
39
- This page was generated from the [playwright-ct plugin source code][2].
40
-
41
- [1]: ../../explanations/plugins.md
42
- [2]:
43
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/playwright-ct/index.ts
@@ -1,31 +0,0 @@
1
- ---
2
- title: playwright-test
3
- sidebar:
4
- hidden: true
5
- ---
6
-
7
- ## Enabled
8
-
9
- This plugin is enabled if `"playwright-test"` is listed in `"dependencies"` or
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Shell commands
13
-
14
- This plugin adds argument parsing for the <code>playwright-test</code> binary.
15
- Configuration:
16
-
17
- ```
18
- positional: true
19
- args: args2=>args2.filter(arg=>arg!=="install"&&arg!=="test")
20
- config: true
21
- ```
22
-
23
- The configuration was generated from source code. Also see [Script Parser][1].
24
-
25
- ## Generated from source
26
-
27
- This page was generated from the [playwright-test plugin source code][2].
28
-
29
- [1]: ../../features/script-parser.md
30
- [2]:
31
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/playwright-test/index.ts
@@ -1,52 +0,0 @@
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
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "playwright": {
19
- "config": ["playwright.config.{js,ts,mjs}"],
20
- "entry": ["**/*.@(spec|test).?(c|m)[jt]s?(x)"]
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`
30
- options.
31
-
32
- ## Shell commands
33
-
34
- This plugin adds argument parsing for the <code>playwright</code> binary.
35
- Configuration:
36
-
37
- ```
38
- positional: true
39
- args: args2=>args2.filter(arg=>arg!=="install"&&arg!=="test")
40
- config: true
41
- ```
42
-
43
- The configuration was generated from source code. Also see [Script Parser][2].
44
-
45
- ## Generated from source
46
-
47
- This page was generated from the [playwright plugin source code][3].
48
-
49
- [1]: ../../explanations/plugins.md
50
- [2]: ../../features/script-parser.md
51
- [3]:
52
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/playwright/index.ts
@@ -1,37 +0,0 @@
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
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "plop": {
19
- "config": ["plopfile.{cjs,mjs,js,ts}"]
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`
29
- options.
30
-
31
- ## Generated from source
32
-
33
- This page was generated from the [plop plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/plop/index.ts
@@ -1,36 +0,0 @@
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`
28
- options.
29
-
30
- ## Generated from source
31
-
32
- This page was generated from the [pnpm plugin source code][2].
33
-
34
- [1]: ../../explanations/plugins.md
35
- [2]:
36
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/pnpm/index.ts
@@ -1,49 +0,0 @@
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
10
- `"devDependencies"` in `package.json`:
11
-
12
- - `postcss`
13
-
14
- - `postcss-cli`
15
-
16
- - `next`
17
-
18
- ## Default configuration
19
-
20
- If this plugin is enabled, the following configuration is added automatically:
21
-
22
- ```json
23
- {
24
- "postcss": {
25
- "config": [
26
- "package.json",
27
- "postcss.config.json",
28
- ".postcssrc",
29
- ".postcssrc.{json,ts,js,cjs,mjs,mts,cts,yaml,yml}",
30
- "postcss.config.{ts,js,cjs,mjs,mts,cts}"
31
- ]
32
- }
33
- }
34
- ```
35
-
36
- Depending on local configuration, plugins may modify the defaults as shown.
37
-
38
- Custom `config` or `entry` options override default values, they are not merged.
39
-
40
- See [Plugins][1] for more details about plugins and their `entry` and `config`
41
- options.
42
-
43
- ## Generated from source
44
-
45
- This page was generated from the [postcss plugin source code][2].
46
-
47
- [1]: ../../explanations/plugins.md
48
- [2]:
49
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/postcss/index.ts
@@ -1,37 +0,0 @@
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
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "preconstruct": {
19
- "config": ["package.json"]
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`
29
- options.
30
-
31
- ## Generated from source
32
-
33
- This page was generated from the [preconstruct plugin source code][2].
34
-
35
- [1]: ../../explanations/plugins.md
36
- [2]:
37
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/preconstruct/index.ts
@@ -1,42 +0,0 @@
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
10
- `"devDependencies"` in `package.json`.
11
-
12
- ## Default configuration
13
-
14
- If this plugin is enabled, the following configuration is added automatically:
15
-
16
- ```json
17
- {
18
- "prettier": {
19
- "config": [
20
- ".prettierrc",
21
- ".prettierrc.{json,js,cjs,mjs,ts,cts,mts,yml,yaml,toml,json5}",
22
- "prettier.config.{js,cjs,mjs,ts,cts,mts}",
23
- "package.{json,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`
34
- options.
35
-
36
- ## Generated from source
37
-
38
- This page was generated from the [prettier plugin source code][2].
39
-
40
- [1]: ../../explanations/plugins.md
41
- [2]:
42
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prettier/index.ts
@@ -1,59 +0,0 @@
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
10
- `"devDependencies"` in `package.json`:
11
-
12
- - `prisma`
13
-
14
- - `^@prisma\/.*`
15
-
16
- ## Default configuration
17
-
18
- If this plugin is enabled, the following configuration is added automatically:
19
-
20
- ```json
21
- {
22
- "prisma": {
23
- "config": [
24
- "prisma.config.{js,ts,mjs,cjs,mts,cts}",
25
- ".config/prisma.{js,ts,mjs,cjs,mts,cts}",
26
- "package.json"
27
- ],
28
- "entry": ["prisma/schema.prisma", "schema.prisma"]
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`
38
- options.
39
-
40
- ## Shell commands
41
-
42
- This plugin adds argument parsing for the <code>prisma</code> binary.
43
- Configuration:
44
-
45
- ```
46
- config: true
47
- resolveInputs: (parsed,{cwd})=>{const inputs=[];if(parsed["schema"]){inputs.push(resolveSchema(parsed["schema"],cwd))}return inputs}
48
- ```
49
-
50
- The configuration was generated from source code. Also see [Script Parser][2].
51
-
52
- ## Generated from source
53
-
54
- This page was generated from the [prisma plugin source code][3].
55
-
56
- [1]: ../../explanations/plugins.md
57
- [2]: ../../features/script-parser.md
58
- [3]:
59
- https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/prisma/index.ts