Skip to content

Commit 20dad69

Browse files
committed
Replace dependency-check with knip
1 parent beb1ba1 commit 20dad69

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.knip.jsonc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@2/schema.json",
3+
"entry": [
4+
"index.js!",
5+
"benchmark/*.js"
6+
],
7+
"ignoreDependencies": ["@types/mocha", "mocha"]
8+
}

benchmark/utils/loop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const promisedImmediate = (value) => new Promise(resolve => setImmediate(
2828
* @param {AsyncIterable<any>} baseAsyncIterable
2929
* @returns {Promise<LoopResult>}
3030
*/
31-
export const coreLoop = async (baseAsyncIterable) => {
31+
const coreLoop = async (baseAsyncIterable) => {
3232
getAndResetMaxLag();
3333

3434
const loopStarts = Date.now();

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"build:0": "run-s clean",
3232
"build:1-declaration": "tsc -p declaration.tsconfig.json",
3333
"build": "run-s build:*",
34-
"check:dependency-check": "dependency-check *.js 'lib/**/*.js' 'test/**/*.js' --no-dev",
35-
"check:installed-check": "installed-check -i eslint-plugin-jsdoc",
34+
"check:installed-check": "installed-check -i eslint-plugin-jsdoc -i knip",
35+
"check:knip": "knip",
3636
"check:lint": "eslint --report-unused-disable-directives .",
3737
"check:tsc": "tsc",
3838
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'benchmark/*' --ignore-files 'benchmark/*/*'",
@@ -60,19 +60,18 @@
6060
"@types/chai-as-promised": "^7.1.5",
6161
"@types/chai-quantifiers": "^1.0.1",
6262
"@types/mocha": "^10.0.1",
63-
"@types/node": "^16.18.30",
63+
"@types/node": "^16.18.31",
6464
"@types/sinon": "^10.0.15",
6565
"@types/sinon-chai": "^3.2.9",
66-
"@voxpelli/eslint-config": "^17.0.2",
66+
"@voxpelli/eslint-config": "^17.0.3",
6767
"@voxpelli/tsconfig": "^7.0.0",
6868
"0x": "^5.5.0",
6969
"c8": "^7.13.0",
7070
"chai": "^4.3.7",
7171
"chai-as-promised": "^7.1.1",
7272
"chai-quantifiers": "^1.0.17",
73-
"dependency-check": "^5.0.0-7",
7473
"eslint": "^8.40.0",
75-
"eslint-plugin-es-x": "^6.1.0",
74+
"eslint-plugin-es-x": "^7.0.0",
7675
"eslint-plugin-import": "^2.27.5",
7776
"eslint-plugin-jsdoc": "^44.2.4",
7877
"eslint-plugin-mocha": "^10.1.0",
@@ -82,10 +81,11 @@
8281
"eslint-plugin-sort-destructure-keys": "^1.5.0",
8382
"eslint-plugin-unicorn": "^47.0.0",
8483
"husky": "^8.0.3",
85-
"installed-check": "^7.0.0",
84+
"installed-check": "^7.1.0",
85+
"knip": "^2.11.0",
8686
"mocha": "^10.2.0",
8787
"npm-run-all2": "^6.0.5",
88-
"sinon": "^15.0.4",
88+
"sinon": "^15.1.0",
8989
"sinon-chai": "^3.7.0",
9090
"type-coverage": "^2.25.3",
9191
"typescript": "~5.0.4"

0 commit comments

Comments
 (0)