Skip to content

Commit 21ba82d

Browse files
committed
docs: Replace depcheck with knip
1 parent 8619d21 commit 21ba82d

File tree

16 files changed

+55
-22086
lines changed

16 files changed

+55
-22086
lines changed

.knip/knip.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import type { KnipConfig } from 'knip';
2+
3+
const config: KnipConfig = {
4+
rules: {
5+
files: "off",
6+
duplicates: "off",
7+
classMembers: "off",
8+
unlisted: "off",
9+
binaries: "off",
10+
unresolved: "off",
11+
catalog: "off",
12+
exports: "off",
13+
types: "off",
14+
enumMembers: "off",
15+
},
16+
17+
ignoreDependencies: [
18+
"@ui5/*",
19+
"docdash",
20+
"husky",
21+
"local-web-server",
22+
"@istanbuljs/esm-loader-hook",
23+
"cssnano",
24+
"data-with-position",
25+
"js-yaml",
26+
"open",
27+
"pretty-hrtime",
28+
"compression",
29+
"cors",
30+
"jsdoc"
31+
]
32+
};
33+
34+
export default config;

internal/benchmark/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@
1111
"ui5-cli-benchmark": "./cli.js"
1212
},
1313
"scripts": {
14-
"test": "npm run lint && npm run coverage && npm run depcheck",
14+
"test": "npm run lint && npm run coverage",
1515
"unit": "node --test 'test/e2e/**/*.js'",
1616
"unit-watch": "node --test --watch 'test/e2e/**/*.js'",
1717
"coverage": "node --test --experimental-test-coverage 'test/e2e/**/*.js'",
1818
"lint": "eslint .",
19-
"depcheck": "depcheck"
19+
"depcheck": ""
2020
},
2121
"dependencies": {
2222
"js-yaml": "^4.1.1"
2323
},
2424
"devDependencies": {
25-
"depcheck": "^1.4.7",
2625
"eslint": "^9.39.1"
2726
}
2827
}

internal/documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"start": "vitepress dev --open",
2626
"lint": "eslint .",
27-
"depcheck": "depcheck --ignores @ui5/documentation,vitepress,docdash,jsdoc,open-cli,handlebars,@types/node,@ui5/webcomponents,autoprefixer,cssnano,@theme/components",
27+
"depcheck": "",
2828
"dev": "vitepress dev",
2929
"build:vitepress": "vitepress build",
3030
"build:assets": "sh -c 'DEST_DIR=${1:-./dist}; cp -r ./docs/images \"$DEST_DIR/images\"' --",

internal/shrinkwrap-extractor/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
"directory": "internal/shrinkwrap-extractor"
2020
},
2121
"scripts": {
22-
"test": "npm run lint && npm run coverage && npm run depcheck",
22+
"test": "npm run lint && npm run coverage",
2323
"unit": "node --test test/lib/convertToShrinkwrap.js",
2424
"unit-watch": "node --test --watch test/lib/convertToShrinkwrap.js",
2525
"coverage": "node --test --experimental-test-coverage 'test/lib/convertToShrinkwrap.js'",
2626
"lint": "eslint .",
27-
"depcheck": "depcheck"
27+
"depcheck": ""
2828
},
2929
"keywords": [
3030
"npm",
@@ -44,7 +44,6 @@
4444
"pacote": "^21.0.4"
4545
},
4646
"devDependencies": {
47-
"depcheck": "^1.4.7",
4847
"eslint": "^9.39.1"
4948
}
5049
}

internal/shrinkwrap-extractor/test/expected/package.a/npm-shrinkwrap.json

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shrinkwrap-extractor/test/expected/package.b/npm-shrinkwrap.json

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)