knip 0.0.0-angular.0
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/README.md +907 -0
- package/dist/ConfigurationChief.d.ts +53 -0
- package/dist/ConfigurationChief.js +297 -0
- package/dist/ConfigurationValidator.d.ts +2325 -0
- package/dist/ConfigurationValidator.js +119 -0
- package/dist/ConsoleStreamer.d.ts +12 -0
- package/dist/ConsoleStreamer.js +34 -0
- package/dist/DependencyDeputy.d.ts +64 -0
- package/dist/DependencyDeputy.js +254 -0
- package/dist/IssueCollector.d.ts +27 -0
- package/dist/IssueCollector.js +52 -0
- package/dist/PrincipalFactory.d.ts +25 -0
- package/dist/PrincipalFactory.js +56 -0
- package/dist/ProjectPrincipal.d.ts +64 -0
- package/dist/ProjectPrincipal.js +197 -0
- package/dist/WorkspaceWorker.d.ts +56 -0
- package/dist/WorkspaceWorker.js +244 -0
- package/dist/binaries/bash-parser.d.ts +6 -0
- package/dist/binaries/bash-parser.js +58 -0
- package/dist/binaries/index.d.ts +2 -0
- package/dist/binaries/index.js +18 -0
- package/dist/binaries/resolvers/c8.d.ts +2 -0
- package/dist/binaries/resolvers/c8.js +10 -0
- package/dist/binaries/resolvers/dotenv.d.ts +2 -0
- package/dist/binaries/resolvers/dotenv.js +6 -0
- package/dist/binaries/resolvers/fallback.d.ts +2 -0
- package/dist/binaries/resolvers/fallback.js +22 -0
- package/dist/binaries/resolvers/index.d.ts +8 -0
- package/dist/binaries/resolvers/index.js +8 -0
- package/dist/binaries/resolvers/node.d.ts +2 -0
- package/dist/binaries/resolvers/node.js +10 -0
- package/dist/binaries/resolvers/nodemon.d.ts +2 -0
- package/dist/binaries/resolvers/nodemon.js +15 -0
- package/dist/binaries/resolvers/npx.d.ts +2 -0
- package/dist/binaries/resolvers/npx.js +20 -0
- package/dist/binaries/resolvers/pnpm.d.ts +2 -0
- package/dist/binaries/resolvers/pnpm.js +63 -0
- package/dist/binaries/resolvers/rollup.d.ts +2 -0
- package/dist/binaries/resolvers/rollup.js +11 -0
- package/dist/binaries/resolvers/yarn.d.ts +2 -0
- package/dist/binaries/resolvers/yarn.js +48 -0
- package/dist/binaries/types.d.ts +15 -0
- package/dist/binaries/types.js +1 -0
- package/dist/binaries/util.d.ts +8 -0
- package/dist/binaries/util.js +33 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +72 -0
- package/dist/constants.d.ts +12 -0
- package/dist/constants.js +90 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +334 -0
- package/dist/issues/initializers.d.ts +4 -0
- package/dist/issues/initializers.js +11 -0
- package/dist/manifest/helpers.d.ts +7 -0
- package/dist/manifest/helpers.js +16 -0
- package/dist/manifest/index.d.ts +16 -0
- package/dist/manifest/index.js +56 -0
- package/dist/plugins/_template/index.d.ts +9 -0
- package/dist/plugins/_template/index.js +14 -0
- package/dist/plugins/_template/types.d.ts +3 -0
- package/dist/plugins/_template/types.js +1 -0
- package/dist/plugins/angular/index.d.ts +6 -0
- package/dist/plugins/angular/index.js +36 -0
- package/dist/plugins/angular/types.d.ts +745 -0
- package/dist/plugins/angular/types.js +1 -0
- package/dist/plugins/ava/index.d.ts +7 -0
- package/dist/plugins/ava/index.js +20 -0
- package/dist/plugins/ava/types.d.ts +4 -0
- package/dist/plugins/ava/types.js +1 -0
- package/dist/plugins/babel/helpers.d.ts +15 -0
- package/dist/plugins/babel/helpers.js +34 -0
- package/dist/plugins/babel/index.d.ts +8 -0
- package/dist/plugins/babel/index.js +30 -0
- package/dist/plugins/babel/types.d.ts +9 -0
- package/dist/plugins/babel/types.js +1 -0
- package/dist/plugins/capacitor/index.d.ts +6 -0
- package/dist/plugins/capacitor/index.js +11 -0
- package/dist/plugins/capacitor/types.d.ts +3 -0
- package/dist/plugins/capacitor/types.js +1 -0
- package/dist/plugins/changesets/index.d.ts +6 -0
- package/dist/plugins/changesets/index.js +15 -0
- package/dist/plugins/commitizen/index.d.ts +6 -0
- package/dist/plugins/commitizen/index.js +14 -0
- package/dist/plugins/commitizen/types.d.ts +3 -0
- package/dist/plugins/commitizen/types.js +1 -0
- package/dist/plugins/commitlint/index.d.ts +6 -0
- package/dist/plugins/commitlint/index.js +18 -0
- package/dist/plugins/cspell/index.d.ts +6 -0
- package/dist/plugins/cspell/index.js +17 -0
- package/dist/plugins/cspell/types.d.ts +3 -0
- package/dist/plugins/cspell/types.js +1 -0
- package/dist/plugins/cypress/index.d.ts +5 -0
- package/dist/plugins/cypress/index.js +10 -0
- package/dist/plugins/eslint/fallback.d.ts +1 -0
- package/dist/plugins/eslint/fallback.js +13 -0
- package/dist/plugins/eslint/helpers.d.ts +14 -0
- package/dist/plugins/eslint/helpers.js +83 -0
- package/dist/plugins/eslint/index.d.ts +7 -0
- package/dist/plugins/eslint/index.js +15 -0
- package/dist/plugins/eslint/types.d.ts +27 -0
- package/dist/plugins/eslint/types.js +1 -0
- package/dist/plugins/gatsby/index.d.ts +7 -0
- package/dist/plugins/gatsby/index.js +30 -0
- package/dist/plugins/gatsby/types.d.ts +15 -0
- package/dist/plugins/gatsby/types.js +1 -0
- package/dist/plugins/github-actions/index.d.ts +6 -0
- package/dist/plugins/github-actions/index.js +21 -0
- package/dist/plugins/husky/index.d.ts +6 -0
- package/dist/plugins/husky/index.js +19 -0
- package/dist/plugins/index.d.ts +41 -0
- package/dist/plugins/index.js +41 -0
- package/dist/plugins/jest/index.d.ts +7 -0
- package/dist/plugins/jest/index.js +68 -0
- package/dist/plugins/lefthook/index.d.ts +6 -0
- package/dist/plugins/lefthook/index.js +28 -0
- package/dist/plugins/lint-staged/index.d.ts +6 -0
- package/dist/plugins/lint-staged/index.js +32 -0
- package/dist/plugins/lint-staged/types.d.ts +5 -0
- package/dist/plugins/lint-staged/types.js +1 -0
- package/dist/plugins/markdownlint/helpers.d.ts +1 -0
- package/dist/plugins/markdownlint/helpers.js +6 -0
- package/dist/plugins/markdownlint/index.d.ts +6 -0
- package/dist/plugins/markdownlint/index.js +19 -0
- package/dist/plugins/markdownlint/types.d.ts +3 -0
- package/dist/plugins/markdownlint/types.js +1 -0
- package/dist/plugins/mocha/index.d.ts +6 -0
- package/dist/plugins/mocha/index.js +15 -0
- package/dist/plugins/next/index.d.ts +6 -0
- package/dist/plugins/next/index.js +11 -0
- package/dist/plugins/npm-package-json-lint/index.d.ts +6 -0
- package/dist/plugins/npm-package-json-lint/index.js +13 -0
- package/dist/plugins/npm-package-json-lint/types.d.ts +3 -0
- package/dist/plugins/npm-package-json-lint/types.js +1 -0
- package/dist/plugins/nx/index.d.ts +6 -0
- package/dist/plugins/nx/index.js +24 -0
- package/dist/plugins/nx/types.d.ts +11 -0
- package/dist/plugins/nx/types.js +1 -0
- package/dist/plugins/nyc/index.d.ts +6 -0
- package/dist/plugins/nyc/index.js +11 -0
- package/dist/plugins/playwright/index.d.ts +5 -0
- package/dist/plugins/playwright/index.js +5 -0
- package/dist/plugins/postcss/index.d.ts +6 -0
- package/dist/plugins/postcss/index.js +23 -0
- package/dist/plugins/postcss/types.d.ts +3 -0
- package/dist/plugins/postcss/types.js +1 -0
- package/dist/plugins/prettier/index.d.ts +6 -0
- package/dist/plugins/prettier/index.js +20 -0
- package/dist/plugins/release-it/index.d.ts +6 -0
- package/dist/plugins/release-it/index.js +30 -0
- package/dist/plugins/release-it/types.d.ts +10 -0
- package/dist/plugins/release-it/types.js +1 -0
- package/dist/plugins/remark/index.d.ts +6 -0
- package/dist/plugins/remark/index.js +18 -0
- package/dist/plugins/remix/index.d.ts +6 -0
- package/dist/plugins/remix/index.js +11 -0
- package/dist/plugins/rollup/index.d.ts +5 -0
- package/dist/plugins/rollup/index.js +5 -0
- package/dist/plugins/semantic-release/index.d.ts +6 -0
- package/dist/plugins/semantic-release/index.js +17 -0
- package/dist/plugins/semantic-release/types.d.ts +3 -0
- package/dist/plugins/semantic-release/types.js +1 -0
- package/dist/plugins/sentry/index.d.ts +5 -0
- package/dist/plugins/sentry/index.js +5 -0
- package/dist/plugins/storybook/index.d.ts +8 -0
- package/dist/plugins/storybook/index.js +19 -0
- package/dist/plugins/storybook/types.d.ts +11 -0
- package/dist/plugins/storybook/types.js +1 -0
- package/dist/plugins/stryker/index.d.ts +6 -0
- package/dist/plugins/stryker/index.js +17 -0
- package/dist/plugins/stryker/types.d.ts +5 -0
- package/dist/plugins/stryker/types.js +1 -0
- package/dist/plugins/stylelint/index.d.ts +6 -0
- package/dist/plugins/stylelint/index.js +22 -0
- package/dist/plugins/stylelint/types.d.ts +4 -0
- package/dist/plugins/stylelint/types.js +1 -0
- package/dist/plugins/svelte/index.d.ts +7 -0
- package/dist/plugins/svelte/index.js +9 -0
- package/dist/plugins/tailwind/index.d.ts +5 -0
- package/dist/plugins/tailwind/index.js +5 -0
- package/dist/plugins/typedoc/index.d.ts +6 -0
- package/dist/plugins/typedoc/index.js +22 -0
- package/dist/plugins/typedoc/types.d.ts +3 -0
- package/dist/plugins/typedoc/types.js +1 -0
- package/dist/plugins/typescript/index.d.ts +7 -0
- package/dist/plugins/typescript/index.js +42 -0
- package/dist/plugins/vite/index.d.ts +6 -0
- package/dist/plugins/vite/index.js +12 -0
- package/dist/plugins/vite/types.d.ts +4 -0
- package/dist/plugins/vite/types.js +1 -0
- package/dist/plugins/vitest/helpers.d.ts +6 -0
- package/dist/plugins/vitest/helpers.js +22 -0
- package/dist/plugins/vitest/index.d.ts +9 -0
- package/dist/plugins/vitest/index.js +25 -0
- package/dist/plugins/vitest/types.d.ts +11 -0
- package/dist/plugins/vitest/types.js +1 -0
- package/dist/plugins/webpack/index.d.ts +6 -0
- package/dist/plugins/webpack/index.js +82 -0
- package/dist/plugins/webpack/types.d.ts +10 -0
- package/dist/plugins/webpack/types.js +1 -0
- package/dist/reporters/codeowners.d.ts +3 -0
- package/dist/reporters/codeowners.js +62 -0
- package/dist/reporters/compact.d.ts +3 -0
- package/dist/reporters/compact.js +36 -0
- package/dist/reporters/index.d.ts +7 -0
- package/dist/reporters/index.js +10 -0
- package/dist/reporters/json.d.ts +3 -0
- package/dist/reporters/json.js +67 -0
- package/dist/reporters/symbols.d.ts +3 -0
- package/dist/reporters/symbols.js +54 -0
- package/dist/reporters/util.d.ts +15 -0
- package/dist/reporters/util.js +17 -0
- package/dist/types/cli.d.ts +10 -0
- package/dist/types/cli.js +1 -0
- package/dist/types/compilers.d.ts +6 -0
- package/dist/types/compilers.js +1 -0
- package/dist/types/config.d.ts +39 -0
- package/dist/types/config.js +3 -0
- package/dist/types/exports.d.ts +20 -0
- package/dist/types/exports.js +1 -0
- package/dist/types/imports.d.ts +13 -0
- package/dist/types/imports.js +1 -0
- package/dist/types/issues.d.ts +62 -0
- package/dist/types/issues.js +10 -0
- package/dist/types/plugins.d.ts +19 -0
- package/dist/types/plugins.js +1 -0
- package/dist/types/workspace.d.ts +17 -0
- package/dist/types/workspace.js +1 -0
- package/dist/typescript/SourceFile.d.ts +18 -0
- package/dist/typescript/SourceFile.js +1 -0
- package/dist/typescript/SourceFileManager.d.ts +13 -0
- package/dist/typescript/SourceFileManager.js +57 -0
- package/dist/typescript/ast-helpers.d.ts +27 -0
- package/dist/typescript/ast-helpers.js +101 -0
- package/dist/typescript/createHosts.d.ts +15 -0
- package/dist/typescript/createHosts.js +39 -0
- package/dist/typescript/getImportsAndExports.d.ts +29 -0
- package/dist/typescript/getImportsAndExports.js +159 -0
- package/dist/typescript/resolveModuleNames.d.ts +2 -0
- package/dist/typescript/resolveModuleNames.js +27 -0
- package/dist/typescript/sys.d.ts +35 -0
- package/dist/typescript/sys.js +16 -0
- package/dist/typescript/utils.d.ts +2 -0
- package/dist/typescript/utils.js +9 -0
- package/dist/typescript/visitors/exports/exportAssignment.d.ts +3 -0
- package/dist/typescript/visitors/exports/exportAssignment.js +9 -0
- package/dist/typescript/visitors/exports/exportDeclaration.d.ts +3 -0
- package/dist/typescript/visitors/exports/exportDeclaration.js +13 -0
- package/dist/typescript/visitors/exports/exportKeyword.d.ts +3 -0
- package/dist/typescript/visitors/exports/exportKeyword.js +77 -0
- package/dist/typescript/visitors/exports/index.d.ts +3 -0
- package/dist/typescript/visitors/exports/index.js +7 -0
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.d.ts +3 -0
- package/dist/typescript/visitors/exports/moduleExportsAccessExpression.js +31 -0
- package/dist/typescript/visitors/helpers.d.ts +4 -0
- package/dist/typescript/visitors/helpers.js +10 -0
- package/dist/typescript/visitors/imports/importCall.d.ts +3 -0
- package/dist/typescript/visitors/imports/importCall.js +11 -0
- package/dist/typescript/visitors/imports/importDeclaration.d.ts +3 -0
- package/dist/typescript/visitors/imports/importDeclaration.js +32 -0
- package/dist/typescript/visitors/imports/importEqualsDeclaration.d.ts +3 -0
- package/dist/typescript/visitors/imports/importEqualsDeclaration.js +11 -0
- package/dist/typescript/visitors/imports/index.d.ts +3 -0
- package/dist/typescript/visitors/imports/index.js +18 -0
- package/dist/typescript/visitors/imports/jsDocType.d.ts +3 -0
- package/dist/typescript/visitors/imports/jsDocType.js +11 -0
- package/dist/typescript/visitors/imports/reExportDeclaration.d.ts +3 -0
- package/dist/typescript/visitors/imports/reExportDeclaration.js +21 -0
- package/dist/typescript/visitors/imports/requireCall.d.ts +3 -0
- package/dist/typescript/visitors/imports/requireCall.js +45 -0
- package/dist/typescript/visitors/imports/requireResolveCall.d.ts +3 -0
- package/dist/typescript/visitors/imports/requireResolveCall.js +12 -0
- package/dist/typescript/visitors/index.d.ts +10 -0
- package/dist/typescript/visitors/index.js +16 -0
- package/dist/typescript/visitors/scripts/execa.d.ts +3 -0
- package/dist/typescript/visitors/scripts/execa.js +18 -0
- package/dist/typescript/visitors/scripts/index.d.ts +3 -0
- package/dist/typescript/visitors/scripts/index.js +5 -0
- package/dist/typescript/visitors/scripts/zx.d.ts +3 -0
- package/dist/typescript/visitors/scripts/zx.js +8 -0
- package/dist/util/Performance.d.ts +23 -0
- package/dist/util/Performance.js +80 -0
- package/dist/util/array.d.ts +2 -0
- package/dist/util/array.js +2 -0
- package/dist/util/cli-arguments.d.ts +28 -0
- package/dist/util/cli-arguments.js +83 -0
- package/dist/util/compilers.d.ts +426 -0
- package/dist/util/compilers.js +20 -0
- package/dist/util/debug.d.ts +3 -0
- package/dist/util/debug.js +34 -0
- package/dist/util/errors.d.ts +12 -0
- package/dist/util/errors.js +14 -0
- package/dist/util/fs.d.ts +7 -0
- package/dist/util/fs.js +42 -0
- package/dist/util/get-included-issue-types.d.ts +16 -0
- package/dist/util/get-included-issue-types.js +37 -0
- package/dist/util/git.d.ts +1 -0
- package/dist/util/git.js +20 -0
- package/dist/util/glob.d.ts +19 -0
- package/dist/util/glob.js +59 -0
- package/dist/util/loader.d.ts +1 -0
- package/dist/util/loader.js +31 -0
- package/dist/util/map.d.ts +1 -0
- package/dist/util/map.js +6 -0
- package/dist/util/modules.d.ts +8 -0
- package/dist/util/modules.js +52 -0
- package/dist/util/object.d.ts +3 -0
- package/dist/util/object.js +37 -0
- package/dist/util/path.d.ts +11 -0
- package/dist/util/path.js +13 -0
- package/dist/util/plugin.d.ts +3 -0
- package/dist/util/plugin.js +14 -0
- package/dist/util/register.d.ts +1 -0
- package/dist/util/register.js +14 -0
- package/dist/util/reporter.d.ts +3 -0
- package/dist/util/reporter.js +16 -0
- package/dist/util/require.d.ts +5 -0
- package/dist/util/require.js +34 -0
- package/dist/util/tsconfig-loader.d.ts +2 -0
- package/dist/util/tsconfig-loader.js +11 -0
- package/dist/util/workspace.d.ts +1 -0
- package/dist/util/workspace.js +11 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/license +12 -0
- package/package.json +150 -0
- package/schema.json +403 -0
package/schema.json
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Knip configuration",
|
|
4
|
+
"description": "See https://github.com/webpro/knip",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/definitions/workspace"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/plugins"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"properties": {
|
|
15
|
+
"$schema": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"title": "JSON Schema",
|
|
18
|
+
"description": "Pointer to the schema against which this document should be validated."
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"ignoreBinaries": {
|
|
25
|
+
"title": "Binaries to ignore",
|
|
26
|
+
"examples": ["rm", "docker-compose", "curl"],
|
|
27
|
+
"$ref": "#/definitions/list"
|
|
28
|
+
},
|
|
29
|
+
"ignoreDependencies": {
|
|
30
|
+
"title": "Dependencies from package.json to ignore",
|
|
31
|
+
"examples": ["husky", "lint-staged"],
|
|
32
|
+
"$ref": "#/definitions/list"
|
|
33
|
+
},
|
|
34
|
+
"ignoreWorkspaces": {
|
|
35
|
+
"title": "Workspaces to ignore",
|
|
36
|
+
"examples": ["packages/ignore-me"],
|
|
37
|
+
"$ref": "#/definitions/list"
|
|
38
|
+
},
|
|
39
|
+
"include": {
|
|
40
|
+
"title": "Include issue types in the report",
|
|
41
|
+
"examples": ["files", "dependencies"],
|
|
42
|
+
"$ref": "#/definitions/issueTypes"
|
|
43
|
+
},
|
|
44
|
+
"exclude": {
|
|
45
|
+
"title": "Exclude issue types from the report",
|
|
46
|
+
"examples": ["classMembers", "enumMembers"],
|
|
47
|
+
"$ref": "#/definitions/issueTypes"
|
|
48
|
+
},
|
|
49
|
+
"ignoreExportsUsedInFile": {
|
|
50
|
+
"title": "Ignore exports used in file",
|
|
51
|
+
"examples": [
|
|
52
|
+
{ "ignoreExportsUsedInFile": true },
|
|
53
|
+
{
|
|
54
|
+
"ignoreExportsUsedInFile": {
|
|
55
|
+
"interface": true,
|
|
56
|
+
"type": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"anyOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"class": { "type": "boolean" },
|
|
68
|
+
"enum": { "type": "boolean" },
|
|
69
|
+
"function": { "type": "boolean" },
|
|
70
|
+
"interface": { "type": "boolean" },
|
|
71
|
+
"member": { "type": "boolean" },
|
|
72
|
+
"type": { "type": "boolean" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"workspaces": {
|
|
78
|
+
"title": "Configuration for workspaces",
|
|
79
|
+
"type": "object",
|
|
80
|
+
"additionalProperties": {
|
|
81
|
+
"allOf": [
|
|
82
|
+
{
|
|
83
|
+
"$ref": "#/definitions/workspace"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"$ref": "#/definitions/plugins"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"unevaluatedProperties": false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"rules": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"files": { "$ref": "#/definitions/ruleValue" },
|
|
96
|
+
"dependencies": { "$ref": "#/definitions/ruleValue" },
|
|
97
|
+
"unlisted": { "$ref": "#/definitions/ruleValue" },
|
|
98
|
+
"unresolved": { "$ref": "#/definitions/ruleValue" },
|
|
99
|
+
"exports": { "$ref": "#/definitions/ruleValue" },
|
|
100
|
+
"nsExports": { "$ref": "#/definitions/ruleValue" },
|
|
101
|
+
"classMembers": { "$ref": "#/definitions/ruleValue" },
|
|
102
|
+
"types": { "$ref": "#/definitions/ruleValue" },
|
|
103
|
+
"nsTypes": { "$ref": "#/definitions/ruleValue" },
|
|
104
|
+
"enumMembers": { "$ref": "#/definitions/ruleValue" },
|
|
105
|
+
"duplicates": { "$ref": "#/definitions/ruleValue" }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"unevaluatedProperties": false,
|
|
110
|
+
"definitions": {
|
|
111
|
+
"list": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"issueTypes": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"enum": [
|
|
122
|
+
"files",
|
|
123
|
+
"dependencies",
|
|
124
|
+
"unlisted",
|
|
125
|
+
"exports",
|
|
126
|
+
"nsExports",
|
|
127
|
+
"classMembers",
|
|
128
|
+
"types",
|
|
129
|
+
"nsTypes",
|
|
130
|
+
"enumMembers",
|
|
131
|
+
"duplicates"
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"globPatterns": {
|
|
136
|
+
"description": "Use file paths and glob patterns to match files. Knip uses fast-glob and and minimatch (https://github.com/micromatch/micromatch#matching-features)",
|
|
137
|
+
"anyOf": [
|
|
138
|
+
{
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "array",
|
|
143
|
+
"items": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"workspace": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"entry": {
|
|
153
|
+
"title": "The entry files target the starting point(s) to resolve the rest of the imported code.",
|
|
154
|
+
"example": ["lib/index.ts"],
|
|
155
|
+
"default": ["index.{js,ts,tsx}", "src/index.{js,ts,tsx}"],
|
|
156
|
+
"$ref": "#/definitions/globPatterns"
|
|
157
|
+
},
|
|
158
|
+
"project": {
|
|
159
|
+
"title": "The project files should contain all files to match against the files resolved from the entry files, including potentially unused files.",
|
|
160
|
+
"example": ["lib/**/*.ts"],
|
|
161
|
+
"default": ["**/*.{js,ts,tsx}"],
|
|
162
|
+
"$ref": "#/definitions/globPatterns"
|
|
163
|
+
},
|
|
164
|
+
"paths": {
|
|
165
|
+
"title": "",
|
|
166
|
+
"example": {
|
|
167
|
+
"~": ["."]
|
|
168
|
+
},
|
|
169
|
+
"default": {},
|
|
170
|
+
"$ref": "#/definitions/paths"
|
|
171
|
+
},
|
|
172
|
+
"ignore": {
|
|
173
|
+
"title": "Files to ignore in the analysis.",
|
|
174
|
+
"example": ["**/fixtures", "mocks"],
|
|
175
|
+
"default": [],
|
|
176
|
+
"$ref": "#/definitions/globPatterns"
|
|
177
|
+
},
|
|
178
|
+
"ignoreBinaries": {
|
|
179
|
+
"title": "Binaries to ignore",
|
|
180
|
+
"examples": ["rm", "docker-compose", "curl"],
|
|
181
|
+
"$ref": "#/definitions/list"
|
|
182
|
+
},
|
|
183
|
+
"ignoreDependencies": {
|
|
184
|
+
"title": "Dependencies from package.json to ignore",
|
|
185
|
+
"examples": ["husky", "lint-staged"],
|
|
186
|
+
"$ref": "#/definitions/list"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"plugin": {
|
|
191
|
+
"description": "Knip plugin configuration. See https://github.com/webpro/knip#plugins",
|
|
192
|
+
"anyOf": [
|
|
193
|
+
{
|
|
194
|
+
"const": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"$ref": "#/definitions/globPatterns"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"config": {
|
|
203
|
+
"title": "The custom dependency resolver of this plugin is applied to the files listed here. Also see https://github.com/webpro/knip/blob/main/README.md#config",
|
|
204
|
+
"examples": [".eslintrc.json"],
|
|
205
|
+
"$ref": "#/definitions/globPatterns"
|
|
206
|
+
},
|
|
207
|
+
"entry": {
|
|
208
|
+
"title": "The entry files target the starting point(s) to resolve its imported dependencies, like regular source code.",
|
|
209
|
+
"examples": ["**/*.story.ts", "**/*.spec.ts"],
|
|
210
|
+
"$ref": "#/definitions/globPatterns"
|
|
211
|
+
},
|
|
212
|
+
"project": {
|
|
213
|
+
"title": "The project files should contain all files to match against the files resolved from the entry files for this plugin, including potentially unused files.",
|
|
214
|
+
"$ref": "#/definitions/globPatterns"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"plugins": {
|
|
222
|
+
"properties": {
|
|
223
|
+
"angular": {
|
|
224
|
+
"title": "angular plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/angular/README.md)",
|
|
225
|
+
"$ref": "#/definitions/plugin"
|
|
226
|
+
},
|
|
227
|
+
"ava": {
|
|
228
|
+
"title": "ava plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/ava/README.md)",
|
|
229
|
+
"$ref": "#/definitions/plugin"
|
|
230
|
+
},
|
|
231
|
+
"babel": {
|
|
232
|
+
"title": "Babel plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/babel/README.md)",
|
|
233
|
+
"$ref": "#/definitions/plugin"
|
|
234
|
+
},
|
|
235
|
+
"capacitor": {
|
|
236
|
+
"title": "Capacitor plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/capacitor/README.md)",
|
|
237
|
+
"$ref": "#/definitions/plugin"
|
|
238
|
+
},
|
|
239
|
+
"changesets": {
|
|
240
|
+
"title": "Changesets plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/changesets/README.md)",
|
|
241
|
+
"$ref": "#/definitions/plugin"
|
|
242
|
+
},
|
|
243
|
+
"commitizen": {
|
|
244
|
+
"title": "commitizen plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/commitizen/README.md)",
|
|
245
|
+
"$ref": "#/definitions/plugin"
|
|
246
|
+
},
|
|
247
|
+
"commitlint": {
|
|
248
|
+
"title": "commitlint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/commitlint/README.md)",
|
|
249
|
+
"$ref": "#/definitions/plugin"
|
|
250
|
+
},
|
|
251
|
+
"cspell": {
|
|
252
|
+
"title": "cspell plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/cspell/README.md)",
|
|
253
|
+
"$ref": "#/definitions/plugin"
|
|
254
|
+
},
|
|
255
|
+
"cypress": {
|
|
256
|
+
"title": "Cypress plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/cypress/README.md)",
|
|
257
|
+
"$ref": "#/definitions/plugin"
|
|
258
|
+
},
|
|
259
|
+
"eslint": {
|
|
260
|
+
"title": "ESLint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/eslint/README.md)",
|
|
261
|
+
"$ref": "#/definitions/plugin"
|
|
262
|
+
},
|
|
263
|
+
"gatsby": {
|
|
264
|
+
"title": "Gatsby plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/gatsby/README.md)",
|
|
265
|
+
"$ref": "#/definitions/plugin"
|
|
266
|
+
},
|
|
267
|
+
"github-actions": {
|
|
268
|
+
"title": "github-actions plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/github-actions/README.md)",
|
|
269
|
+
"$ref": "#/definitions/plugin"
|
|
270
|
+
},
|
|
271
|
+
"husky": {
|
|
272
|
+
"title": "husky plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/husky/README.md)",
|
|
273
|
+
"$ref": "#/definitions/plugin"
|
|
274
|
+
},
|
|
275
|
+
"jest": {
|
|
276
|
+
"title": "Jest plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/jest/README.md)",
|
|
277
|
+
"$ref": "#/definitions/plugin"
|
|
278
|
+
},
|
|
279
|
+
"lefthook": {
|
|
280
|
+
"title": "lefthook plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/lefthook/README.md)",
|
|
281
|
+
"$ref": "#/definitions/plugin"
|
|
282
|
+
},
|
|
283
|
+
"lint-staged": {
|
|
284
|
+
"title": "lint-staged plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/lint-staged/README.md)",
|
|
285
|
+
"$ref": "#/definitions/plugin"
|
|
286
|
+
},
|
|
287
|
+
"markdownlint": {
|
|
288
|
+
"title": "markdownlint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/markdownlint/README.md)",
|
|
289
|
+
"$ref": "#/definitions/plugin"
|
|
290
|
+
},
|
|
291
|
+
"mocha": {
|
|
292
|
+
"title": "Mocha plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/mocha/README.md)",
|
|
293
|
+
"$ref": "#/definitions/plugin"
|
|
294
|
+
},
|
|
295
|
+
"next": {
|
|
296
|
+
"title": "Next.js plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/main/README.md)",
|
|
297
|
+
"$ref": "#/definitions/plugin"
|
|
298
|
+
},
|
|
299
|
+
"npm-package-json-lint": {
|
|
300
|
+
"title": "npm-package-json-lint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/npm-package-json-lint/README.md)",
|
|
301
|
+
"$ref": "#/definitions/plugin"
|
|
302
|
+
},
|
|
303
|
+
"nx": {
|
|
304
|
+
"title": "Nx plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/nx/README.md)",
|
|
305
|
+
"$ref": "#/definitions/plugin"
|
|
306
|
+
},
|
|
307
|
+
"nyc": {
|
|
308
|
+
"title": "nyc plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/nyc/README.md)",
|
|
309
|
+
"$ref": "#/definitions/plugin"
|
|
310
|
+
},
|
|
311
|
+
"playwright": {
|
|
312
|
+
"title": "Playwright plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/playwright/README.md)",
|
|
313
|
+
"$ref": "#/definitions/plugin"
|
|
314
|
+
},
|
|
315
|
+
"postcss": {
|
|
316
|
+
"title": "PostCSS plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/postcss/README.md)",
|
|
317
|
+
"$ref": "#/definitions/plugin"
|
|
318
|
+
},
|
|
319
|
+
"prettier": {
|
|
320
|
+
"title": "Prettier plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/prettier/README.md)",
|
|
321
|
+
"$ref": "#/definitions/plugin"
|
|
322
|
+
},
|
|
323
|
+
"release-it": {
|
|
324
|
+
"title": "Release It plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/release-it/README.md)",
|
|
325
|
+
"$ref": "#/definitions/plugin"
|
|
326
|
+
},
|
|
327
|
+
"remark": {
|
|
328
|
+
"title": "Remark plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/remark/README.md)",
|
|
329
|
+
"$ref": "#/definitions/plugin"
|
|
330
|
+
},
|
|
331
|
+
"remix": {
|
|
332
|
+
"title": "Remix plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/remix/README.md)",
|
|
333
|
+
"$ref": "#/definitions/plugin"
|
|
334
|
+
},
|
|
335
|
+
"rollup": {
|
|
336
|
+
"title": "Rollup plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/rollup/README.md)",
|
|
337
|
+
"$ref": "#/definitions/plugin"
|
|
338
|
+
},
|
|
339
|
+
"semantic-release": {
|
|
340
|
+
"title": "semantic-release plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/semantic-release/README.md)",
|
|
341
|
+
"$ref": "#/definitions/plugin"
|
|
342
|
+
},
|
|
343
|
+
"sentry": {
|
|
344
|
+
"title": "Sentry plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/sentry/README.md)",
|
|
345
|
+
"$ref": "#/definitions/plugin"
|
|
346
|
+
},
|
|
347
|
+
"storybook": {
|
|
348
|
+
"title": "Storybook plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/storybook/README.md)",
|
|
349
|
+
"$ref": "#/definitions/plugin"
|
|
350
|
+
},
|
|
351
|
+
"stryker": {
|
|
352
|
+
"title": "Stryker plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/stryker/README.md)",
|
|
353
|
+
"$ref": "#/definitions/plugin"
|
|
354
|
+
},
|
|
355
|
+
"stylelint": {
|
|
356
|
+
"title": "stylelint plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/stylelint/README.md)",
|
|
357
|
+
"$ref": "#/definitions/plugin"
|
|
358
|
+
},
|
|
359
|
+
"svelte": {
|
|
360
|
+
"title": "svelte plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/svelte/README.md)",
|
|
361
|
+
"$ref": "#/definitions/plugin"
|
|
362
|
+
},
|
|
363
|
+
"tailwind": {
|
|
364
|
+
"title": "tailwind plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/tailwind/README.md)",
|
|
365
|
+
"$ref": "#/definitions/plugin"
|
|
366
|
+
},
|
|
367
|
+
"typedoc": {
|
|
368
|
+
"title": "typedoc plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/typedoc/README.md)",
|
|
369
|
+
"$ref": "#/definitions/plugin"
|
|
370
|
+
},
|
|
371
|
+
"typescript": {
|
|
372
|
+
"title": "TypeScript plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/typescript/README.md)",
|
|
373
|
+
"$ref": "#/definitions/plugin"
|
|
374
|
+
},
|
|
375
|
+
"vite": {
|
|
376
|
+
"title": "vite plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/vite/README.md)",
|
|
377
|
+
"$ref": "#/definitions/plugin"
|
|
378
|
+
},
|
|
379
|
+
"vitest": {
|
|
380
|
+
"title": "vitest plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/vitest/README.md)",
|
|
381
|
+
"$ref": "#/definitions/plugin"
|
|
382
|
+
},
|
|
383
|
+
"webpack": {
|
|
384
|
+
"title": "Webpack plugin configuration (https://github.com/webpro/knip/blob/main/src/plugins/webpack/README.md)",
|
|
385
|
+
"$ref": "#/definitions/plugin"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"paths": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"additionalProperty": {
|
|
392
|
+
"type": "array",
|
|
393
|
+
"items": {
|
|
394
|
+
"type": "string"
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"ruleValue": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"enum": ["error", "warn", "off"]
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|