diff --git a/config/eslint.js b/config/eslint.js index 53844b55..8c6c7218 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -1021,22 +1021,6 @@ export default [ "json/top-level-interop": ["error"], }, }, - { - name: "JSONC", - files: ["config/**/*.jsonc"], - plugins: { json }, - language: "json/jsonc", - languageOptions: { - allowTrailingCommas: true, - }, - rules: { - // https://github.com/eslint/json/blob/main/README.md#rules - "json/no-duplicate-keys": ["error"], - "json/no-empty-keys": ["error"], - "json/no-unnormalized-keys": ["error"], - "json/no-unsafe-values": ["error"], - }, - }, { name: "YAML", files: [".github/**/*.yml", "config/**/*.yml", ".lockfile-lintrc.yml"], diff --git a/config/knip.jsonc b/config/knip.jsonc deleted file mode 100644 index b4a46540..00000000 --- a/config/knip.jsonc +++ /dev/null @@ -1,12 +0,0 @@ -// Check out knip at: https://github.com/webpro/knip - -{ - "$schema": "../node_modules/knip/schema.json", - "entry": ["src/modules/*.js"], - "ignore": ["test/fixtures/*.js"], - "ignoreBinaries": [], - "ignoreDependencies": [], - "eslint": ["config/eslint.js"], - "rollup": ["config/rollup.js"], - "stryker": ["config/stryker/*.js"], -} diff --git a/package-lock.json b/package-lock.json index 7ce83fbd..801bf161 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,6 @@ "fast-check": "3.22.0", "husky": "9.1.1", "is-ci": "4.1.0", - "knip": "5.37.2", "licensee": "11.1.1", "lockfile-lint": "4.13.1", "ls-engines": "0.9.3", @@ -2448,50 +2447,6 @@ "dev": true, "license": "(Unlicense OR Apache-2.0)" }, - "node_modules/@snyk/github-codeowners": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@snyk/github-codeowners/-/github-codeowners-1.1.0.tgz", - "integrity": "sha512-lGFf08pbkEac0NYgVf4hdANpAgApRjNByLXB+WBip3qj1iendOIyAwP2GKkKbQMNVy2r1xxDf0ssfWscoiC+Vw==", - "dev": true, - "license": "MIT", - "dependencies": { - "commander": "^4.1.1", - "ignore": "^5.1.8", - "p-map": "^4.0.0" - }, - "bin": { - "github-codeowners": "dist/cli.js" - }, - "engines": { - "node": ">=8.10" - } - }, - "node_modules/@snyk/github-codeowners/node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@snyk/github-codeowners/node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@stryker-mutator/api": { "version": "8.7.1", "resolved": "https://registry.npmjs.org/@stryker-mutator/api/-/api-8.7.1.tgz", @@ -4402,17 +4357,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.8" - } - }, "node_modules/cmd-shim": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-6.0.3.tgz", @@ -4877,20 +4821,6 @@ "dev": true, "license": "MIT" }, - "node_modules/defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "clone": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/defer-to-connect": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", @@ -5071,19 +5001,6 @@ "dev": true, "license": "MIT" }, - "node_modules/easy-table": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.2.0.tgz", - "integrity": "sha512-OFzVOv03YpvtcWGe5AayU5G2hgybsg3iqA6drU8UaoZyB9jLGMTrz9+asnLp/E+6qPh88yEI1gvyZFZ41dmgww==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "optionalDependencies": { - "wcwidth": "^1.0.1" - } - }, "node_modules/electron-to-chromium": { "version": "1.5.73", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.73.tgz", @@ -5165,19 +5082,6 @@ "node": ">=4.0.0" } }, - "node_modules/enhanced-resolve": { - "version": "5.17.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz", - "integrity": "sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", @@ -9093,6 +8997,8 @@ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.0.tgz", "integrity": "sha512-H5UpaUI+aHOqZXlYOaFP/8AzKsg+guWu+Pr3Y8i7+Y3zr1aXAvCvTAQ1RxSc6oVD8R8c7brgNtTVP91E7upH/g==", "dev": true, + "optional": true, + "peer": true, "bin": { "jiti": "lib/jiti-cli.mjs" } @@ -9359,68 +9265,6 @@ "json-buffer": "3.0.1" } }, - "node_modules/knip": { - "version": "5.37.2", - "resolved": "https://registry.npmjs.org/knip/-/knip-5.37.2.tgz", - "integrity": "sha512-Rs9HHTgmUacyKxchP4kRwG8idi0tzVHVpSyo4EM9sNGDSrPq20lhKXOWMFmShGCV6CH2352393Ok/qG1NblCMw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/webpro" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/knip" - }, - { - "type": "polar", - "url": "https://polar.sh/webpro-nl" - } - ], - "dependencies": { - "@nodelib/fs.walk": "1.2.8", - "@snyk/github-codeowners": "1.1.0", - "easy-table": "1.2.0", - "enhanced-resolve": "^5.17.1", - "fast-glob": "^3.3.2", - "jiti": "^2.4.0", - "js-yaml": "^4.1.0", - "minimist": "^1.2.8", - "picocolors": "^1.1.0", - "picomatch": "^4.0.1", - "pretty-ms": "^9.0.0", - "smol-toml": "^1.3.0", - "strip-json-comments": "5.0.1", - "summary": "2.1.0", - "zod": "^3.22.4", - "zod-validation-error": "^3.0.3" - }, - "bin": { - "knip": "bin/knip.js", - "knip-bun": "bin/knip-bun.js" - }, - "engines": { - "node": ">=18.6.0" - }, - "peerDependencies": { - "@types/node": ">=18", - "typescript": ">=5.0.4" - } - }, - "node_modules/knip/node_modules/strip-json-comments": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.1.tgz", - "integrity": "sha512-0fk9zBqO67Nq5M/m45qHCJxylV/DhBlIOVExqgOMiCCrzrhU6tCibRXNqE3jwJLftzE9SNuZtYbpzcO+i9FiKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/ky": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/ky/-/ky-1.7.2.tgz", @@ -14812,13 +14656,6 @@ "integrity": "sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g==", "dev": true }, - "node_modules/summary": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/summary/-/summary-2.1.0.tgz", - "integrity": "sha512-nMIjMrd5Z2nuB2RZCKJfFMjgS3fygbeyGk9PxPPaJR1RIcyN9yn4A63Isovzm3ZtQuEkLBVgMdPup8UeLH7aQw==", - "dev": true, - "license": "MIT" - }, "node_modules/supertap": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/supertap/-/supertap-3.0.1.tgz", @@ -15067,15 +14904,6 @@ "node": ">= 18.6.0" } }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/tar": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", @@ -15493,6 +15321,7 @@ "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", "dev": true, "license": "Apache-2.0", + "optional": true, "peer": true, "bin": { "tsc": "bin/tsc", @@ -15727,17 +15556,6 @@ "dev": true, "license": "ISC" }, - "node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "defaults": "^1.0.3" - } - }, "node_modules/weapon-regex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/weapon-regex/-/weapon-regex-1.3.2.tgz", @@ -16195,29 +16013,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/zod": { - "version": "3.23.8", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", - "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-3.4.0.tgz", - "integrity": "sha512-ZOPR9SVY6Pb2qqO5XHt+MkkTRxGXb4EVtnjc9JpXUOtUB1T9Ru7mZOT361AN3MsetVe7R0a1KZshJDZdgp9miQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.18.0" - } } } } diff --git a/package.json b/package.json index 9bef7272..692f56d3 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,6 @@ "fast-check": "3.22.0", "husky": "9.1.1", "is-ci": "4.1.0", - "knip": "5.37.2", "licensee": "11.1.1", "lockfile-lint": "4.13.1", "ls-engines": "0.9.3", @@ -106,10 +105,10 @@ "audit:vulnerabilities:runtime": "better-npm-audit audit --production", "check": "npm-run-all check:*", "check:ci": "node script/maybe-run.js actionlint", - "check:dependencies": "knip --config config/knip.jsonc && node script/check-runtime-deps.js", + "check:dependencies": "node script/check-runtime-deps.js", "check:formatting": "npm run _prettier -- --check", "check:js": "npm run _eslint -- '**/*.{cjs,js}'", - "check:json": "npm run _eslint -- '**/*.{json,jsonc}'", + "check:json": "npm run _eslint -- '**/*.json'", "check:licenses": "licensee --errors-only", "check:lockfile": "lockfile-lint", "check:manifest": "npm run transpile && publint --strict && attw --pack . && ls-engines",