@knip/mcp 0.0.13 → 0.0.15
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.
- package/package.json +2 -2
- package/src/docs/docs/blog/for-editors-and-agents.md +47 -43
- package/src/docs/docs/blog/knip-v4.mdx +2 -2
- package/src/docs/docs/blog/two-years.mdx +1 -1
- package/src/docs/docs/explanations/plugins.md +10 -7
- package/src/docs/docs/guides/configuring-project-files.md +3 -3
- package/src/docs/docs/guides/contributing.md +1 -1
- package/src/docs/docs/guides/handling-issues.mdx +44 -45
- package/src/docs/docs/guides/issue-reproduction.md +4 -0
- package/src/docs/docs/guides/troubleshooting.md +1 -1
- package/src/docs/docs/index.mdx +3 -3
- package/src/docs/docs/overview/features.md +2 -2
- package/src/docs/docs/overview/getting-started.mdx +16 -5
- package/src/docs/docs/reference/configuration.md +7 -0
- package/src/docs/docs/reference/faq.md +1 -2
- package/src/docs/docs/reference/known-issues.md +13 -8
- package/src/docs/docs/reference/plugins/angular.md +10 -6
- package/src/docs/docs/reference/plugins/astro-db.md +10 -7
- package/src/docs/docs/reference/plugins/astro.md +10 -6
- package/src/docs/docs/reference/plugins/ava.md +10 -7
- package/src/docs/docs/reference/plugins/babel.md +9 -3
- package/src/docs/docs/reference/plugins/biome.md +10 -7
- package/src/docs/docs/reference/plugins/bumpp.md +9 -3
- package/src/docs/docs/reference/plugins/bun.md +6 -2
- package/src/docs/docs/reference/plugins/c8.md +7 -4
- package/src/docs/docs/reference/plugins/capacitor.md +10 -6
- package/src/docs/docs/reference/plugins/changelogen.md +9 -3
- package/src/docs/docs/reference/plugins/changelogithub.md +9 -3
- package/src/docs/docs/reference/plugins/changesets.md +10 -6
- package/src/docs/docs/reference/plugins/commitizen.md +10 -8
- package/src/docs/docs/reference/plugins/commitlint.md +9 -3
- package/src/docs/docs/reference/plugins/convex.md +10 -7
- package/src/docs/docs/reference/plugins/create-typescript-app.md +10 -6
- package/src/docs/docs/reference/plugins/cspell.md +9 -3
- package/src/docs/docs/reference/plugins/cucumber.md +11 -9
- package/src/docs/docs/reference/plugins/cypress.md +10 -6
- package/src/docs/docs/reference/plugins/danger.md +10 -6
- package/src/docs/docs/reference/plugins/dependency-cruiser.md +14 -9
- package/src/docs/docs/reference/plugins/docusaurus.md +10 -6
- package/src/docs/docs/reference/plugins/dotenv.md +8 -4
- package/src/docs/docs/reference/plugins/drizzle.md +10 -6
- package/src/docs/docs/reference/plugins/eleventy.md +11 -11
- package/src/docs/docs/reference/plugins/eslint.md +22 -10
- package/src/docs/docs/reference/plugins/expo.md +11 -11
- package/src/docs/docs/reference/plugins/gatsby.md +9 -3
- package/src/docs/docs/reference/plugins/github-action.md +10 -6
- package/src/docs/docs/reference/plugins/github-actions.md +10 -7
- package/src/docs/docs/reference/plugins/glob.md +8 -4
- package/src/docs/docs/reference/plugins/graphql-codegen.md +9 -3
- package/src/docs/docs/reference/plugins/hardhat.md +10 -6
- package/src/docs/docs/reference/plugins/husky.md +9 -3
- package/src/docs/docs/reference/plugins/i18next-parser.md +14 -9
- package/src/docs/docs/reference/plugins/jest.md +14 -10
- package/src/docs/docs/reference/plugins/karma.md +9 -3
- package/src/docs/docs/reference/plugins/knex.md +37 -0
- package/src/docs/docs/reference/plugins/ladle.md +11 -9
- package/src/docs/docs/reference/plugins/lefthook.md +9 -3
- package/src/docs/docs/reference/plugins/lint-staged.md +9 -3
- package/src/docs/docs/reference/plugins/linthtml.md +9 -3
- package/src/docs/docs/reference/plugins/lockfile-lint.md +9 -3
- package/src/docs/docs/reference/plugins/lost-pixel.md +10 -6
- package/src/docs/docs/reference/plugins/markdownlint.md +10 -7
- package/src/docs/docs/reference/plugins/mdx.md +10 -6
- package/src/docs/docs/reference/plugins/mdxlint.md +9 -3
- package/src/docs/docs/reference/plugins/metro.md +12 -9
- package/src/docs/docs/reference/plugins/mocha.md +15 -13
- package/src/docs/docs/reference/plugins/moonrepo.md +10 -8
- package/src/docs/docs/reference/plugins/msw.md +11 -9
- package/src/docs/docs/reference/plugins/nano-staged.md +9 -3
- package/src/docs/docs/reference/plugins/nest.md +10 -9
- package/src/docs/docs/reference/plugins/netlify.md +11 -9
- package/src/docs/docs/reference/plugins/next-intl.md +10 -6
- package/src/docs/docs/reference/plugins/next-mdx.md +11 -9
- package/src/docs/docs/reference/plugins/next.md +10 -6
- package/src/docs/docs/reference/plugins/node-modules-inspector.md +11 -4
- package/src/docs/docs/reference/plugins/node.md +12 -8
- package/src/docs/docs/reference/plugins/nodemon.md +8 -4
- package/src/docs/docs/reference/plugins/npm-package-json-lint.md +9 -3
- package/src/docs/docs/reference/plugins/nuxt.md +14 -8
- package/src/docs/docs/reference/plugins/nx.md +15 -7
- package/src/docs/docs/reference/plugins/nyc.md +9 -3
- package/src/docs/docs/reference/plugins/oclif.md +10 -6
- package/src/docs/docs/reference/plugins/oxlint.md +14 -9
- package/src/docs/docs/reference/plugins/parcel.md +41 -0
- package/src/docs/docs/reference/plugins/playwright-ct.md +10 -6
- package/src/docs/docs/reference/plugins/playwright-test.md +10 -5
- package/src/docs/docs/reference/plugins/playwright.md +15 -12
- package/src/docs/docs/reference/plugins/plop.md +10 -6
- package/src/docs/docs/reference/plugins/pnpm.md +8 -5
- package/src/docs/docs/reference/plugins/postcss.md +9 -3
- package/src/docs/docs/reference/plugins/preconstruct.md +10 -6
- package/src/docs/docs/reference/plugins/prettier.md +9 -3
- package/src/docs/docs/reference/plugins/prisma.md +14 -10
- package/src/docs/docs/reference/plugins/react-cosmos.md +10 -6
- package/src/docs/docs/reference/plugins/react-router.md +9 -3
- package/src/docs/docs/reference/plugins/relay.md +14 -10
- package/src/docs/docs/reference/plugins/release-it.md +10 -7
- package/src/docs/docs/reference/plugins/remark.md +9 -3
- package/src/docs/docs/reference/plugins/remix.md +9 -3
- package/src/docs/docs/reference/plugins/rollup.md +14 -9
- package/src/docs/docs/reference/plugins/rsbuild.md +10 -6
- package/src/docs/docs/reference/plugins/rslib.md +10 -6
- package/src/docs/docs/reference/plugins/rspack.md +10 -6
- package/src/docs/docs/reference/plugins/rstest.md +10 -6
- package/src/docs/docs/reference/plugins/semantic-release.md +9 -3
- package/src/docs/docs/reference/plugins/sentry.md +10 -6
- package/src/docs/docs/reference/plugins/simple-git-hooks.md +9 -3
- package/src/docs/docs/reference/plugins/size-limit.md +9 -3
- package/src/docs/docs/reference/plugins/sst.md +10 -6
- package/src/docs/docs/reference/plugins/starlight.md +10 -6
- package/src/docs/docs/reference/plugins/storybook.md +11 -9
- package/src/docs/docs/reference/plugins/stryker.md +10 -6
- package/src/docs/docs/reference/plugins/stylelint.md +9 -3
- package/src/docs/docs/reference/plugins/svelte.md +9 -3
- package/src/docs/docs/reference/plugins/svgo.md +10 -6
- package/src/docs/docs/reference/plugins/svgr.md +9 -3
- package/src/docs/docs/reference/plugins/swc.md +10 -6
- package/src/docs/docs/reference/plugins/syncpack.md +9 -3
- package/src/docs/docs/reference/plugins/tailwind.md +10 -6
- package/src/docs/docs/reference/plugins/tanstack-router.md +49 -0
- package/src/docs/docs/reference/plugins/taskfile.md +10 -7
- package/src/docs/docs/reference/plugins/travis.md +8 -5
- package/src/docs/docs/reference/plugins/ts-node.md +8 -4
- package/src/docs/docs/reference/plugins/tsdown.md +14 -10
- package/src/docs/docs/reference/plugins/tsup.md +14 -10
- package/src/docs/docs/reference/plugins/tsx.md +12 -8
- package/src/docs/docs/reference/plugins/typedoc.md +13 -6
- package/src/docs/docs/reference/plugins/typescript.md +17 -10
- package/src/docs/docs/reference/plugins/unbuild.md +10 -6
- package/src/docs/docs/reference/plugins/unocss.md +9 -3
- package/src/docs/docs/reference/plugins/vercel-og.md +9 -3
- package/src/docs/docs/reference/plugins/vike.md +9 -3
- package/src/docs/docs/reference/plugins/vite.md +14 -9
- package/src/docs/docs/reference/plugins/vitepress.md +9 -3
- package/src/docs/docs/reference/plugins/vitest.md +13 -6
- package/src/docs/docs/reference/plugins/vue.md +10 -6
- package/src/docs/docs/reference/plugins/webdriver-io.md +10 -6
- package/src/docs/docs/reference/plugins/webpack.md +14 -9
- package/src/docs/docs/reference/plugins/wireit.md +10 -6
- package/src/docs/docs/reference/plugins/wrangler.md +10 -6
- package/src/docs/docs/reference/plugins/xo.md +10 -7
- package/src/docs/docs/reference/plugins/yarn.md +8 -5
- package/src/docs/docs/reference/plugins/yorkie.md +10 -6
- package/src/docs/docs/reference/plugins.md +5 -1
- package/src/docs/docs/writing-a-plugin/index.md +16 -3
|
@@ -15,9 +15,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"travis": {
|
|
18
|
-
"config": [
|
|
19
|
-
".travis.yml"
|
|
20
|
-
]
|
|
18
|
+
"config": [".travis.yml"]
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
```
|
|
@@ -26,8 +24,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
24
|
|
|
27
25
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
26
|
|
|
29
|
-
See [Plugins]
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
28
|
+
options.
|
|
30
29
|
|
|
31
30
|
## Generated from source
|
|
32
31
|
|
|
33
|
-
This page was generated from the [travis plugin source code]
|
|
32
|
+
This page was generated from the [travis 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/travis/index.ts
|
|
@@ -10,8 +10,8 @@ This plugin is always enabled.
|
|
|
10
10
|
|
|
11
11
|
## Shell commands
|
|
12
12
|
|
|
13
|
-
This plugin adds argument parsing for the <code>ts-node</code>
|
|
14
|
-
|
|
13
|
+
This plugin adds argument parsing for the <code>ts-node</code> binary.
|
|
14
|
+
Configuration:
|
|
15
15
|
|
|
16
16
|
```
|
|
17
17
|
positional: true
|
|
@@ -20,8 +20,12 @@ boolean: ["transpileOnly", "compilerHost", "ignoreDiagnostics", "swc", "preferTs
|
|
|
20
20
|
alias: {"transpileOnly": ["T"], "compilerHost": ["H"], "ignoreDiagnostics": ["D"]}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
23
|
+
The configuration was generated from source code. Also see [Script Parser][1].
|
|
24
24
|
|
|
25
25
|
## Generated from source
|
|
26
26
|
|
|
27
|
-
This page was generated from the [ts-node plugin source code]
|
|
27
|
+
This page was generated from the [ts-node 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/ts-node/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"tsdown"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"tsdown"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,10 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"tsdown": {
|
|
18
|
-
"config": [
|
|
19
|
-
"tsdown.config.{ts,mts,cts,js,mjs,cjs,json}",
|
|
20
|
-
"package.json"
|
|
21
|
-
]
|
|
19
|
+
"config": ["tsdown.config.{ts,mts,cts,js,mjs,cjs,json}", "package.json"]
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
```
|
|
@@ -27,19 +25,25 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
25
|
|
|
28
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
27
|
|
|
30
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
31
30
|
|
|
32
31
|
## Shell commands
|
|
33
32
|
|
|
34
|
-
This plugin adds argument parsing for the <code>tsdown</code>
|
|
35
|
-
|
|
33
|
+
This plugin adds argument parsing for the <code>tsdown</code> binary.
|
|
34
|
+
Configuration:
|
|
36
35
|
|
|
37
36
|
```
|
|
38
37
|
config: true
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
40
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
42
41
|
|
|
43
42
|
## Generated from source
|
|
44
43
|
|
|
45
|
-
This page was generated from the [tsdown plugin source code]
|
|
44
|
+
This page was generated from the [tsdown 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/tsdown/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"tsup"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"tsup"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,10 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"tsup": {
|
|
18
|
-
"config": [
|
|
19
|
-
"tsup.config.{js,ts,cjs,mjs,json}",
|
|
20
|
-
"package.json"
|
|
21
|
-
]
|
|
19
|
+
"config": ["tsup.config.{js,ts,cjs,mjs,json}", "package.json"]
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
```
|
|
@@ -27,19 +25,25 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
25
|
|
|
28
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
27
|
|
|
30
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
31
30
|
|
|
32
31
|
## Shell commands
|
|
33
32
|
|
|
34
|
-
This plugin adds argument parsing for the <code>tsup</code>
|
|
35
|
-
|
|
33
|
+
This plugin adds argument parsing for the <code>tsup</code> binary.
|
|
34
|
+
Configuration:
|
|
36
35
|
|
|
37
36
|
```
|
|
38
37
|
config: true
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
40
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
42
41
|
|
|
43
42
|
## Generated from source
|
|
44
43
|
|
|
45
|
-
This page was generated from the [tsup plugin source code]
|
|
44
|
+
This page was generated from the [tsup 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/tsup/index.ts
|
|
@@ -15,9 +15,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
17
|
"tsx": {
|
|
18
|
-
"config": [
|
|
19
|
-
"package.json"
|
|
20
|
-
]
|
|
18
|
+
"config": ["package.json"]
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
```
|
|
@@ -26,12 +24,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
24
|
|
|
27
25
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
26
|
|
|
29
|
-
See [Plugins]
|
|
27
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
28
|
+
options.
|
|
30
29
|
|
|
31
30
|
## Shell commands
|
|
32
31
|
|
|
33
|
-
This plugin adds argument parsing for the <code>tsx</code>
|
|
34
|
-
|
|
32
|
+
This plugin adds argument parsing for the <code>tsx</code> binary.
|
|
33
|
+
Configuration:
|
|
35
34
|
|
|
36
35
|
```
|
|
37
36
|
positional: true
|
|
@@ -39,8 +38,13 @@ nodeImportArgs: true
|
|
|
39
38
|
args: args2=>args2.filter(arg=>arg!=="watch")
|
|
40
39
|
```
|
|
41
40
|
|
|
42
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
41
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
43
42
|
|
|
44
43
|
## Generated from source
|
|
45
44
|
|
|
46
|
-
This page was generated from the [tsx plugin source code]
|
|
45
|
+
This page was generated from the [tsx plugin source code][3].
|
|
46
|
+
|
|
47
|
+
[1]: ../../explanations/plugins.md
|
|
48
|
+
[2]: ../../features/script-parser.md
|
|
49
|
+
[3]:
|
|
50
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/tsx/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"typedoc"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"typedoc"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -31,19 +32,25 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
32
|
|
|
32
33
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
34
|
|
|
34
|
-
See [Plugins]
|
|
35
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
36
|
+
options.
|
|
35
37
|
|
|
36
38
|
## Shell commands
|
|
37
39
|
|
|
38
|
-
This plugin adds argument parsing for the <code>typedoc</code>
|
|
39
|
-
|
|
40
|
+
This plugin adds argument parsing for the <code>typedoc</code> binary.
|
|
41
|
+
Configuration:
|
|
40
42
|
|
|
41
43
|
```
|
|
42
44
|
resolve: ["plugin", "theme"]
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
47
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
46
48
|
|
|
47
49
|
## Generated from source
|
|
48
50
|
|
|
49
|
-
This page was generated from the [typedoc plugin source code]
|
|
51
|
+
This page was generated from the [typedoc plugin source code][3].
|
|
52
|
+
|
|
53
|
+
[1]: ../../explanations/plugins.md
|
|
54
|
+
[2]: ../../features/script-parser.md
|
|
55
|
+
[3]:
|
|
56
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typedoc/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"typescript"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"typescript"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,9 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"typescript": {
|
|
18
|
-
"config": [
|
|
19
|
-
"tsconfig.json"
|
|
20
|
-
]
|
|
19
|
+
"config": ["tsconfig.json"]
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
```
|
|
@@ -26,16 +25,17 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
25
|
|
|
27
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
27
|
|
|
29
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
30
30
|
|
|
31
31
|
## Note
|
|
32
32
|
|
|
33
|
-
[What's up with that configurable tsconfig.json location?]
|
|
33
|
+
[What's up with that configurable tsconfig.json location?][2]
|
|
34
34
|
|
|
35
35
|
## Shell commands
|
|
36
36
|
|
|
37
|
-
This plugin adds argument parsing for the <code>tsc</code>
|
|
38
|
-
|
|
37
|
+
This plugin adds argument parsing for the <code>tsc</code> binary.
|
|
38
|
+
Configuration:
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
string: ["project"]
|
|
@@ -43,8 +43,15 @@ alias: {"project": ["p"]}
|
|
|
43
43
|
config: [["project", p=>p.endsWith(".json")?p:join(p,"tsconfig.json")]]
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
46
|
+
The configuration was generated from source code. Also see [Script Parser][3].
|
|
47
47
|
|
|
48
48
|
## Generated from source
|
|
49
49
|
|
|
50
|
-
This page was generated from the [typescript plugin source code]
|
|
50
|
+
This page was generated from the [typescript plugin source code][4].
|
|
51
|
+
|
|
52
|
+
[1]: ../../explanations/plugins.md
|
|
53
|
+
[2]:
|
|
54
|
+
../../reference/faq.md#whats-up-with-that-configurable-tsconfigjson-location
|
|
55
|
+
[3]: ../../features/script-parser.md
|
|
56
|
+
[4]:
|
|
57
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/typescript/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"unbuild"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"unbuild"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,9 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"unbuild": {
|
|
18
|
-
"config": [
|
|
19
|
-
"build.config.{js,cjs,mjs,ts,mts,cts,json}"
|
|
20
|
-
]
|
|
19
|
+
"config": ["build.config.{js,cjs,mjs,ts,mts,cts,json}"]
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
```
|
|
@@ -26,8 +25,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
25
|
|
|
27
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
27
|
|
|
29
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
30
30
|
|
|
31
31
|
## Generated from source
|
|
32
32
|
|
|
33
|
-
This page was generated from the [unbuild plugin source code]
|
|
33
|
+
This page was generated from the [unbuild 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/unbuild/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"unocss"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"unocss"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -29,8 +30,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
29
30
|
|
|
30
31
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
31
32
|
|
|
32
|
-
See [Plugins]
|
|
33
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
34
|
+
options.
|
|
33
35
|
|
|
34
36
|
## Generated from source
|
|
35
37
|
|
|
36
|
-
This page was generated from the [unocss plugin source code]
|
|
38
|
+
This page was generated from the [unocss 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/unocss/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if there's a match in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if there's a match in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`:
|
|
10
11
|
|
|
11
12
|
- `next`
|
|
12
13
|
|
|
@@ -31,8 +32,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
32
|
|
|
32
33
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
34
|
|
|
34
|
-
See [Plugins]
|
|
35
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
36
|
+
options.
|
|
35
37
|
|
|
36
38
|
## Generated from source
|
|
37
39
|
|
|
38
|
-
This page was generated from the [vercel-og plugin source code]
|
|
40
|
+
This page was generated from the [vercel-og plugin source code][2].
|
|
41
|
+
|
|
42
|
+
[1]: ../../explanations/plugins.md
|
|
43
|
+
[2]:
|
|
44
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vercel-og/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"vike"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"vike"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -27,8 +28,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
28
|
|
|
28
29
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
30
|
|
|
30
|
-
See [Plugins]
|
|
31
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
32
|
+
options.
|
|
31
33
|
|
|
32
34
|
## Generated from source
|
|
33
35
|
|
|
34
|
-
This page was generated from the [vike plugin source code]
|
|
36
|
+
This page was generated from the [vike plugin source code][2].
|
|
37
|
+
|
|
38
|
+
[1]: ../../explanations/plugins.md
|
|
39
|
+
[2]:
|
|
40
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vike/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if there's a match in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if there's a match in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`:
|
|
10
11
|
|
|
11
12
|
- `vite`
|
|
12
13
|
|
|
@@ -19,9 +20,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
19
20
|
```json
|
|
20
21
|
{
|
|
21
22
|
"vite": {
|
|
22
|
-
"config": [
|
|
23
|
-
"vite.config.{js,mjs,ts,cjs,mts,cts}"
|
|
24
|
-
]
|
|
23
|
+
"config": ["vite.config.{js,mjs,ts,cjs,mts,cts}"]
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
```
|
|
@@ -30,19 +29,25 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
30
29
|
|
|
31
30
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
32
31
|
|
|
33
|
-
See [Plugins]
|
|
32
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
33
|
+
options.
|
|
34
34
|
|
|
35
35
|
## Shell commands
|
|
36
36
|
|
|
37
|
-
This plugin adds argument parsing for the <code>vite</code>
|
|
38
|
-
|
|
37
|
+
This plugin adds argument parsing for the <code>vite</code> binary.
|
|
38
|
+
Configuration:
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
config: true
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
44
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
45
45
|
|
|
46
46
|
## Generated from source
|
|
47
47
|
|
|
48
|
-
This page was generated from the [vite plugin source code]
|
|
48
|
+
This page was generated from the [vite plugin source code][3].
|
|
49
|
+
|
|
50
|
+
[1]: ../../explanations/plugins.md
|
|
51
|
+
[2]: ../../features/script-parser.md
|
|
52
|
+
[3]:
|
|
53
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vite/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"vitepress"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"vitepress"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -27,8 +28,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
27
28
|
|
|
28
29
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
29
30
|
|
|
30
|
-
See [Plugins]
|
|
31
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
32
|
+
options.
|
|
31
33
|
|
|
32
34
|
## Generated from source
|
|
33
35
|
|
|
34
|
-
This page was generated from the [vitepress plugin source code]
|
|
36
|
+
This page was generated from the [vitepress plugin source code][2].
|
|
37
|
+
|
|
38
|
+
[1]: ../../explanations/plugins.md
|
|
39
|
+
[2]:
|
|
40
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitepress/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"vitest"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"vitest"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -31,20 +32,26 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
31
32
|
|
|
32
33
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
33
34
|
|
|
34
|
-
See [Plugins]
|
|
35
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
36
|
+
options.
|
|
35
37
|
|
|
36
38
|
## Shell commands
|
|
37
39
|
|
|
38
|
-
This plugin adds argument parsing for the <code>vitest</code>
|
|
39
|
-
|
|
40
|
+
This plugin adds argument parsing for the <code>vitest</code> binary.
|
|
41
|
+
Configuration:
|
|
40
42
|
|
|
41
43
|
```
|
|
42
44
|
config: true
|
|
43
45
|
resolveInputs: parsed=>{const inputs=[];if(parsed["ui"])inputs.push(toDependency("@vitest/ui",{optional:true}));return inputs}
|
|
44
46
|
```
|
|
45
47
|
|
|
46
|
-
The configuration was generated from source code. Also see [Script Parser]
|
|
48
|
+
The configuration was generated from source code. Also see [Script Parser][2].
|
|
47
49
|
|
|
48
50
|
## Generated from source
|
|
49
51
|
|
|
50
|
-
This page was generated from the [vitest plugin source code]
|
|
52
|
+
This page was generated from the [vitest plugin source code][3].
|
|
53
|
+
|
|
54
|
+
[1]: ../../explanations/plugins.md
|
|
55
|
+
[2]: ../../features/script-parser.md
|
|
56
|
+
[3]:
|
|
57
|
+
https://github.com/webpro-nl/knip/blob/main/packages/knip/src/plugins/vitest/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"vue"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"vue"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,9 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"vue": {
|
|
18
|
-
"config": [
|
|
19
|
-
"vue.config.{js,ts,mjs}"
|
|
20
|
-
]
|
|
19
|
+
"config": ["vue.config.{js,ts,mjs}"]
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
```
|
|
@@ -26,8 +25,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
25
|
|
|
27
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
27
|
|
|
29
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
30
30
|
|
|
31
31
|
## Generated from source
|
|
32
32
|
|
|
33
|
-
This page was generated from the [vue plugin source code]
|
|
33
|
+
This page was generated from the [vue 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/vue/index.ts
|
|
@@ -6,7 +6,8 @@ sidebar:
|
|
|
6
6
|
|
|
7
7
|
## Enabled
|
|
8
8
|
|
|
9
|
-
This plugin is enabled if `"@wdio/cli"` is listed in `"dependencies"` or
|
|
9
|
+
This plugin is enabled if `"@wdio/cli"` is listed in `"dependencies"` or
|
|
10
|
+
`"devDependencies"` in `package.json`.
|
|
10
11
|
|
|
11
12
|
## Default configuration
|
|
12
13
|
|
|
@@ -15,9 +16,7 @@ If this plugin is enabled, the following configuration is added automatically:
|
|
|
15
16
|
```json
|
|
16
17
|
{
|
|
17
18
|
"webdriver-io": {
|
|
18
|
-
"config": [
|
|
19
|
-
"wdio.conf.{js,ts}"
|
|
20
|
-
]
|
|
19
|
+
"config": ["wdio.conf.{js,ts}"]
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
```
|
|
@@ -26,8 +25,13 @@ Depending on local configuration, plugins may modify the defaults as shown.
|
|
|
26
25
|
|
|
27
26
|
Custom `config` or `entry` options override default values, they are not merged.
|
|
28
27
|
|
|
29
|
-
See [Plugins]
|
|
28
|
+
See [Plugins][1] for more details about plugins and their `entry` and `config`
|
|
29
|
+
options.
|
|
30
30
|
|
|
31
31
|
## Generated from source
|
|
32
32
|
|
|
33
|
-
This page was generated from the [webdriver-io plugin source code]
|
|
33
|
+
This page was generated from the [webdriver-io 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/webdriver-io/index.ts
|