Skip to content

Commit 800ac98

Browse files
committed
deps: Replace depcheck with knip
1 parent 91f22d4 commit 800ac98

File tree

16 files changed

+578
-64
lines changed

16 files changed

+578
-64
lines changed

.knip/knip.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
]
31+
};
32+
33+
export default config;

internal/benchmark/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
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,jsdoc,open-cli,handlebars,@types/node,@ui5/webcomponents,autoprefixer,cssnano,@theme/components,docdash",
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: 3 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,7 @@
4444
"pacote": "^21.0.4"
4545
},
4646
"devDependencies": {
47-
"depcheck": "^1.4.7",
47+
,
4848
"eslint": "^9.39.1"
4949
}
5050
}

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

Lines changed: 5 additions & 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: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shrinkwrap-extractor/test/fixture/project.a/package-lock.fixture.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@commitlint/cli": "^20.1.0",
2323
"@commitlint/config-conventional": "^20.0.0",
2424
"@eslint/js": "^9.8.0",
25-
"depcheck": "^1.4.7",
2625
"eslint": "^9.35.0",
2726
"eslint-config-google": "^0.14.0",
2827
"eslint-plugin-ava": "^15.1.0",
@@ -18616,7 +18615,7 @@
1861618615
"ava": "^6.4.1",
1861718616
"chokidar-cli": "^3.0.0",
1861818617
"cross-env": "^7.0.3",
18619-
"depcheck": "^1.4.7",
18618+
,
1862018619
"docdash": "^2.0.2",
1862118620
"eslint": "^9.39.0",
1862218621
"eslint-config-google": "^0.14.0",
@@ -18730,7 +18729,7 @@
1873018729
"ava": "^6.4.1",
1873118730
"chokidar-cli": "^3.0.0",
1873218731
"cross-env": "^7.0.3",
18733-
"depcheck": "^1.4.7",
18732+
,
1873418733
"docdash": "^2.0.2",
1873518734
"eslint": "^9.39.0",
1873618735
"eslint-config-google": "^0.14.0",
@@ -18840,7 +18839,7 @@
1884018839
"ava": "^6.4.1",
1884118840
"chokidar-cli": "^3.0.0",
1884218841
"cross-env": "^7.0.3",
18843-
"depcheck": "^1.4.7",
18842+
,
1884418843
"docdash": "^2.0.2",
1884518844
"eslint": "^9.39.0",
1884618845
"eslint-config-google": "^0.14.0",
@@ -18965,7 +18964,7 @@
1896518964
"ava": "^6.4.1",
1896618965
"chokidar-cli": "^3.0.0",
1896718966
"cross-env": "^10.1.0",
18968-
"depcheck": "^1.4.7",
18967+
,
1896918968
"docdash": "^2.0.2",
1897018969
"eslint": "^9.39.0",
1897118970
"eslint-config-google": "^0.14.0",
@@ -19126,7 +19125,7 @@
1912619125
"ava": "^6.4.1",
1912719126
"chokidar-cli": "^3.0.0",
1912819127
"cross-env": "^7.0.3",
19129-
"depcheck": "^1.4.7",
19128+
,
1913019129
"docdash": "^2.0.2",
1913119130
"eslint": "^9.39.0",
1913219131
"eslint-config-google": "^0.14.0",
@@ -19256,7 +19255,7 @@
1925619255
"ava": "^6.4.1",
1925719256
"chokidar-cli": "^3.0.0",
1925819257
"cross-env": "^7.0.3",
19259-
"depcheck": "^1.4.7",
19258+
,
1926019259
"docdash": "^2.0.2",
1926119260
"eslint": "^9.39.0",
1926219261
"eslint-config-google": "^0.14.0",

internal/shrinkwrap-extractor/test/fixture/project.b/package-lock.fixture.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@commitlint/cli": "^20.1.0",
2323
"@commitlint/config-conventional": "^20.0.0",
2424
"@eslint/js": "^9.8.0",
25-
"depcheck": "^1.4.7",
2625
"eslint": "^9.35.0",
2726
"eslint-config-google": "^0.14.0",
2827
"eslint-plugin-ava": "^15.1.0",
@@ -15550,7 +15549,7 @@
1555015549
"@ui5/project": "^4.0.6",
1555115550
"ava": "^6.4.1",
1555215551
"cross-env": "^7.0.3",
15553-
"depcheck": "^1.4.7",
15552+
,
1555415553
"eslint": "^9.36.0",
1555515554
"esmock": "^2.7.3",
1555615555
"line-column": "^1.0.2",
@@ -15684,7 +15683,7 @@
1568415683
"@istanbuljs/esm-loader-hook": "^0.3.0",
1568515684
"ava": "^6.4.1",
1568615685
"cross-env": "^7.0.3",
15687-
"depcheck": "^1.4.7",
15686+
,
1568815687
"eslint": "^9.36.0",
1568915688
"esmock": "^2.7.3",
1569015689
"execa": "^9.6.0",
@@ -15960,7 +15959,7 @@
1596015959
"@istanbuljs/esm-loader-hook": "^0.3.0",
1596115960
"ava": "^6.4.1",
1596215961
"cross-env": "^7.0.3",
15963-
"depcheck": "^1.4.7",
15962+
,
1596415963
"eslint": "^9.36.0",
1596515964
"esmock": "^2.7.3",
1596615965
"nyc": "^17.1.0",
@@ -16124,7 +16123,7 @@
1612416123
"@istanbuljs/esm-loader-hook": "^0.3.0",
1612516124
"ava": "^6.4.1",
1612616125
"cross-env": "^10.0.0",
16127-
"depcheck": "^1.4.7",
16126+
,
1612816127
"eslint": "^9.36.0",
1612916128
"nyc": "^17.1.0",
1613016129
"rimraf": "^6.0.1",
@@ -16244,7 +16243,7 @@
1624416243
"@istanbuljs/esm-loader-hook": "^0.3.0",
1624516244
"ava": "^6.4.1",
1624616245
"cross-env": "^7.0.3",
16247-
"depcheck": "^1.4.7",
16246+
,
1624816247
"eslint": "^9.36.0",
1624916248
"esmock": "^2.7.3",
1625016249
"istanbul-lib-coverage": "^3.2.2",
@@ -16408,7 +16407,7 @@
1640816407
"@ui5/project": "^4.0.6",
1640916408
"ava": "^6.4.1",
1641016409
"cross-env": "^7.0.3",
16411-
"depcheck": "^1.4.7",
16410+
,
1641216411
"eslint": "^9.36.0",
1641316412
"esmock": "^2.7.3",
1641416413
"nyc": "^17.1.0",

0 commit comments

Comments
 (0)