diff --git a/eslint.config.cjs b/eslint.config.cjs index aded632..ccaa2c4 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -6,9 +6,6 @@ const js = require('@eslint/js'); const tseslint = require('typescript-eslint'); -// This plugin ships as ESM with a `default` export under CJS interop. -const unicornPlugin = - require('eslint-plugin-unicorn').default ?? require('eslint-plugin-unicorn'); module.exports = tseslint.config( { @@ -21,16 +18,6 @@ module.exports = tseslint.config( js.configs.recommended, ...tseslint.configs.recommended, { - // `unicorn` is only registered so legacy - // `// eslint-disable-next-line unicorn/...` comments scattered through - // the source resolve. We don't enable any rules from it. - // `eslint-plugin-import` used to be registered here for the same reason, - // but it was dropped: it dragged in minimatch@3 -> brace-expansion@1.x, - // which has an unpatched DoS advisory (GHSA-mh99-v99m-4gvg, no 1.x - // backport) and failed `pnpm audit`. No rules from it were ever enabled. - plugins: { - unicorn: unicornPlugin, - }, languageOptions: { ecmaVersion: 2022, sourceType: 'module', diff --git a/package.json b/package.json index 6e3a253..020bc9e 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "chai": "^6.2.2", "eslint": "^10.15.0", "eslint-config-prettier": "^10.1.8", - "eslint-plugin-unicorn": "^80.0.0", "husky": "^9.1.7", "mocha": "^12.0.0", "prettier": "^3.8.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d9eb14c..c34e112 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -76,9 +76,6 @@ importers: eslint-config-prettier: specifier: ^10.1.8 version: 10.1.8(eslint@10.15.0) - eslint-plugin-unicorn: - specifier: ^80.0.0 - version: 80.0.0(eslint@10.15.0)(typescript@6.0.3) husky: specifier: ^9.1.7 version: 9.1.7 @@ -292,10 +289,6 @@ packages: resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/css-tree@4.1.3': - resolution: {integrity: sha512-3WQJPt+KXGZ6H6ielW9EnKSJyIL0s2H2a6ILgdtj7w1vj0HOy7quWJ2ZAscVIVNT/Z49PqvqQ7qrWiDBpRUBeQ==} - engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/js@10.0.1': resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} @@ -530,11 +523,6 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} - baseline-browser-mapping@2.11.39: - resolution: {integrity: sha512-Q9buOYhr2ggrEZpImICecZTJHCCd8yXkRUokFlUEQ8uiD6oP82F4W4jWnhOHZYV+wlvrC51V7Wy0ULyWjil5Wg==} - engines: {node: '>=6.0.0'} - hasBin: true - body-parser@2.4.0: resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==} engines: {node: '>=18'} @@ -550,11 +538,6 @@ packages: browser-stdout@1.3.1: resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} - browserslist@4.29.6: - resolution: {integrity: sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - buffer-crc32@1.0.0: resolution: {integrity: sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w==} engines: {node: '>=8.0.0'} @@ -562,10 +545,6 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - builtin-modules@5.5.0: - resolution: {integrity: sha512-2uhx+Lkzc2fnAcNEpzbJziSzwdv6cJjxxsi9oByBhSuy2wffAPzmazVDiWJk2xDKULFONl5gNOEOLOupQ8gsPg==} - engines: {node: '>=18.20'} - bytes@3.1.2: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} @@ -581,9 +560,6 @@ packages: resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} engines: {node: '>= 0.4'} - caniuse-lite@1.0.30001826: - resolution: {integrity: sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==} - chai@6.3.0: resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} @@ -592,9 +568,6 @@ packages: resolution: {integrity: sha512-/Ce6KNm3vIbWdMlNna6RVIZ/ICQxnJxCicet5LBKK9ZffBkqzDw0xh9EiKSljdRtiIQ1S1z4YgcscUUGzNCWrA==} engines: {node: '>=22'} - change-case@5.4.4: - resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==} - chokidar@5.0.0: resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} engines: {node: '>= 20.19.0'} @@ -603,10 +576,6 @@ packages: resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} engines: {node: '>=18'} - ci-info@4.5.0: - resolution: {integrity: sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==} - engines: {node: '>=8'} - citty@0.2.2: resolution: {integrity: sha512-+6vJA3L98yv+IdfKGZHBNiGW5KHn22e/JwID0Strsz8h4S/csAu/OuICwxrg44k5MRiZHWIo8XXuJgQTriRP4w==} @@ -633,10 +602,6 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} - core-js-compat@3.51.0: - resolution: {integrity: sha512-52r6fkXgxv4GLMjmFcMWRx7X9bw071xTTdrDcdyPGRqU2oE+9pCG0bAOMifSBdLw0JRBZKEF0q3B55qPlLuE8g==} - engines: {node: '>=6.4.0'} - cors@2.8.6: resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} engines: {node: '>= 0.10'} @@ -664,10 +629,6 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} - detect-indent@7.0.2: - resolution: {integrity: sha512-y+8xyqdGLL+6sh0tVeHcfP/QDd8gUgbasolJJpY7NgeQGSZ739bDtSiaiDgtoicy+mtYB81dKLxO9xRhCyIB3A==} - engines: {node: '>=12.20'} - diff@9.0.0: resolution: {integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==} engines: {node: '>=0.3.1'} @@ -679,21 +640,10 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - electron-to-chromium@1.5.492: - resolution: {integrity: sha512-4uMs7omhajKiud0GqALLTazS/zyvHLTLmDWVTR+e6BnyJo5bSNrph/JoRWEFJJmY75ct9hCiSGsbFF9fLe5gDw==} - encodeurl@2.0.1: resolution: {integrity: sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==} engines: {node: '>= 0.8'} - entities@8.1.0: - resolution: {integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==} - engines: {node: '>=20.19.0'} - - entities@9.0.0: - resolution: {integrity: sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==} - engines: {node: '>=20.19.0'} - es-define-property@1.0.1: resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} engines: {node: '>= 0.4'} @@ -711,10 +661,6 @@ packages: engines: {node: '>=18'} hasBin: true - escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} - escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} @@ -728,16 +674,6 @@ packages: peerDependencies: eslint: '>=7.0.0' - eslint-plugin-unicorn@80.0.0: - resolution: {integrity: sha512-aHqSTSY0VglZtQfPrAJQiYNGJgOnI2O5+yuavD3oVXnToUL15kqIN/Dl10pAxpud2v/rrXSiepRaDlYuNxjlWg==} - engines: {node: '>=22.13'} - peerDependencies: - eslint: '>=10.4' - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - eslint-scope@9.1.2: resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} @@ -885,10 +821,6 @@ packages: resolution: {integrity: sha512-vfMgTR2djMHPUchsJMLpZlYQvtjVL+mHpEr5wPpoCbQs2vr/FBNK+3Gnl9Ara1DSs4Aeg4eG9HiADb5/rkY/ZA==} engines: {node: 18 || 20 || >=22} - globals@17.14.0: - resolution: {integrity: sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==} - engines: {node: '>=18'} - gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} @@ -939,10 +871,6 @@ packages: resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} engines: {node: '>=0.10.0'} - identifier-regex@1.1.0: - resolution: {integrity: sha512-SLX4H/vtcYlYnL7XqnuJKHU7Z8517TgsW9nmQiGOgMCjQ8V/deLYu6bEmbGoXe7WMMhc9+EUGyFFneHja8KabA==} - engines: {node: '>=18'} - ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -955,10 +883,6 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - indent-string@5.0.0: - resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==} - engines: {node: '>=12'} - inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -970,10 +894,6 @@ packages: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} - is-builtin-module@5.0.0: - resolution: {integrity: sha512-f4RqJKBUe5rQkJ2eJEJBXSticB3hGbN9j0yxxMQFqIW89Jp9WYFtzfTcRlstDKVUTRzSOTLKRfO9vIztenwtxA==} - engines: {node: '>=18.20'} - is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -1010,11 +930,6 @@ packages: resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} hasBin: true - jsesc@3.1.0: - resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} - engines: {node: '>=6'} - hasBin: true - json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} @@ -1070,9 +985,6 @@ packages: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} - mdn-data@2.37.2: - resolution: {integrity: sha512-rz9YOBGItdSbe7HcSArUbhiAv4SB/4DKRYg96CSFS2CcIYMbUvBtZlzA1NCbk2AdgbmYwMqwNblLpR441lLeiQ==} - media-typer@1.1.1: resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} engines: {node: '>= 0.8'} @@ -1120,10 +1032,6 @@ packages: resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} engines: {node: '>=18'} - node-releases@2.0.65: - resolution: {integrity: sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==} - engines: {node: '>=18'} - node-stream-zip@1.16.0: resolution: {integrity: sha512-ObaRrRoR8T68wF6suxHd7R4XQNamij6ZQHrwG7Dx1D2zeHcDNLsIOBcWrIwtDm7AsCXBguaPHgXhcjxDa2szrg==} engines: {node: '>=0.12.0'} @@ -1155,9 +1063,6 @@ packages: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} - parse5@8.1.1: - resolution: {integrity: sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==} - parseurl@1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} @@ -1192,10 +1097,6 @@ packages: resolution: {integrity: sha512-sAsRKAzFGIdewBCE1IptS7Ncvi0JTjTkFrhjwjT6dDS+R3PIrSLosErSJCfpfnpJ1v5lRh7ZLQnERZnEiUDj/A==} engines: {node: '>=18'} - pluralize@8.0.0: - resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} - engines: {node: '>=4'} - prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -1227,10 +1128,6 @@ packages: querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} - quote-js-string@0.1.0: - resolution: {integrity: sha512-Y3NoRtprEEZQD8RfxMCfS0ZTqc4e+i18OrXEXAvpM6TfC/3y+0L5rNbZiSnbBBEkDfFzbpd8o+cE8q3/anjMGA==} - engines: {node: '>=22'} - range-parser@1.3.0: resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} engines: {node: '>= 0.6'} @@ -1243,10 +1140,6 @@ packages: resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} engines: {node: '>= 20.19.0'} - regjsparser@0.13.4: - resolution: {integrity: sha512-EWV80YgFaVgFrjGCAsV7oybp4GOxbls5RzBg8OB0nKEVXsBJR1JlV8Di1JhCROg3MzTfe1RI8yitIm1eOs68iA==} - hasBin: true - require-from-string@2.0.2: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} @@ -1254,10 +1147,6 @@ packages: requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} - reserved-identifiers@1.2.0: - resolution: {integrity: sha512-yE7KUfFvaBFzGPs5H3Ops1RevfUEsDc5Iz65rOwWg4lE8HJSYtle77uul3+573457oHvBKuHYDl/xqUkKpEEdw==} - engines: {node: '>=18'} - retry@0.12.0: resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} engines: {node: '>= 4'} @@ -1320,18 +1209,10 @@ packages: resolution: {integrity: sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==} engines: {node: '>=20'} - source-map-js@1.2.4: - resolution: {integrity: sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==} - engines: {node: '>=6.0.0'} - statuses@2.0.2: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} - strip-indent@4.1.1: - resolution: {integrity: sha512-SlyRoSkdh1dYP0PzclLE7r0M9sgbFKKMFXpFRUMNuKhQSbC6VQIGzq3E0qsfvGJaUFJPGv6Ws1NZ/haTAjfbMA==} - engines: {node: '>=12'} - strip-json-comments@5.0.3: resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} engines: {node: '>=14.16'} @@ -1397,12 +1278,6 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - update-browserslist-db@1.4.0: - resolution: {integrity: sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} @@ -1436,11 +1311,6 @@ packages: resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} engines: {node: '>=18'} - yaml@2.9.1: - resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} - engines: {node: '>= 14.6'} - hasBin: true - yazl@3.3.1: resolution: {integrity: sha512-BbETDVWG+VcMUle37k5Fqp//7SDOK2/1+T7X8TD96M3D9G8jK5VLUdQVdVjGi8im7FGkazX7kk5hkU8X4L5Bng==} @@ -1584,11 +1454,6 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 - '@eslint/css-tree@4.1.3': - dependencies: - mdn-data: 2.37.2 - source-map-js: 1.2.4 - '@eslint/js@10.0.1(eslint@10.15.0)': optionalDependencies: eslint: 10.15.0 @@ -1845,8 +1710,6 @@ snapshots: balanced-match@4.0.4: {} - baseline-browser-mapping@2.11.39: {} - body-parser@2.4.0: dependencies: bytes: 3.1.2 @@ -1869,20 +1732,10 @@ snapshots: browser-stdout@1.3.1: {} - browserslist@4.29.6: - dependencies: - baseline-browser-mapping: 2.11.39 - caniuse-lite: 1.0.30001826 - electron-to-chromium: 1.5.492 - node-releases: 2.0.65 - update-browserslist-db: 1.4.0(browserslist@4.29.6) - buffer-crc32@1.0.0: {} buffer-from@1.1.2: {} - builtin-modules@5.5.0: {} - bytes@3.1.2: {} cacheable@2.5.0: @@ -1903,22 +1756,16 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 - caniuse-lite@1.0.30001826: {} - chai@6.3.0: {} chalk@6.0.1: {} - change-case@5.4.4: {} - chokidar@5.0.0: dependencies: readdirp: 5.1.1 chownr@3.0.0: {} - ci-info@4.5.0: {} - citty@0.2.2: {} combine-errors@3.0.3: @@ -1936,10 +1783,6 @@ snapshots: cookie@0.7.2: {} - core-js-compat@3.51.0: - dependencies: - browserslist: 4.29.6 - cors@2.8.6: dependencies: object-assign: 4.1.1 @@ -1963,8 +1806,6 @@ snapshots: depd@2.0.0: {} - detect-indent@7.0.2: {} - diff@9.0.0: {} dunder-proto@1.0.1: @@ -1975,14 +1816,8 @@ snapshots: ee-first@1.1.1: {} - electron-to-chromium@1.5.492: {} - encodeurl@2.0.1: {} - entities@8.1.0: {} - - entities@9.0.0: {} - es-define-property@1.0.1: {} es-errors@1.3.0: {} @@ -2020,8 +1855,6 @@ snapshots: '@esbuild/win32-ia32': 0.28.2 '@esbuild/win32-x64': 0.28.2 - escalade@3.2.0: {} - escape-html@1.0.3: {} escape-string-regexp@4.0.0: {} @@ -2030,33 +1863,6 @@ snapshots: dependencies: eslint: 10.15.0 - eslint-plugin-unicorn@80.0.0(eslint@10.15.0)(typescript@6.0.3): - dependencies: - '@eslint-community/eslint-utils': 4.10.1(eslint@10.15.0) - '@eslint/css-tree': 4.1.3 - browserslist: 4.29.6 - change-case: 5.4.4 - ci-info: 4.5.0 - core-js-compat: 3.51.0 - detect-indent: 7.0.2 - entities: 8.1.0 - eslint: 10.15.0 - find-up-simple: 1.0.1 - globals: 17.14.0 - identifier-regex: 1.1.0 - indent-string: 5.0.0 - is-builtin-module: 5.0.0 - parse5: 8.1.1 - pluralize: 8.0.0 - quote-js-string: 0.1.0 - regjsparser: 0.13.4 - reserved-identifiers: 1.2.0 - semver: 7.8.6 - strip-indent: 4.1.1 - yaml: 2.9.1 - optionalDependencies: - typescript: 6.0.3 - eslint-scope@9.1.2: dependencies: '@types/esrecurse': 4.3.1 @@ -2259,8 +2065,6 @@ snapshots: minipass: 7.1.3 path-scurry: 3.0.0 - globals@17.14.0: {} - gopd@1.2.0: {} graceful-fs@4.2.11: {} @@ -2299,28 +2103,18 @@ snapshots: dependencies: safer-buffer: 2.1.2 - identifier-regex@1.1.0: - dependencies: - reserved-identifiers: 1.2.0 - ignore@5.3.2: {} ignore@7.0.14: {} imurmurhash@0.1.4: {} - indent-string@5.0.0: {} - inherits@2.0.4: {} ip-address@10.7.5: {} ipaddr.js@1.9.1: {} - is-builtin-module@5.0.0: - dependencies: - builtin-modules: 5.5.0 - is-extglob@2.1.1: {} is-glob@4.0.3: @@ -2345,8 +2139,6 @@ snapshots: dependencies: argparse: 3.0.3 - jsesc@3.1.0: {} - json-schema-traverse@0.4.1: {} json-schema-traverse@1.0.0: {} @@ -2398,8 +2190,6 @@ snapshots: math-intrinsics@1.1.0: {} - mdn-data@2.37.2: {} - media-typer@1.1.1: {} merge-descriptors@2.0.0: {} @@ -2453,8 +2243,6 @@ snapshots: dependencies: content-type: 2.1.0 - node-releases@2.0.65: {} - node-stream-zip@1.16.0: {} object-assign@4.1.1: {} @@ -2486,10 +2274,6 @@ snapshots: dependencies: p-limit: 3.1.0 - parse5@8.1.1: - dependencies: - entities: 9.0.0 - parseurl@1.3.3: {} path-exists@4.0.0: {} @@ -2514,8 +2298,6 @@ snapshots: '@xmldom/xmldom': 0.9.12 xmlbuilder: 15.1.1 - pluralize@8.0.0: {} - prelude-ls@1.2.1: {} prettier@3.10.1: {} @@ -2544,8 +2326,6 @@ snapshots: querystringify@2.2.0: {} - quote-js-string@0.1.0: {} - range-parser@1.3.0: {} raw-body@3.0.2: @@ -2557,16 +2337,10 @@ snapshots: readdirp@5.1.1: {} - regjsparser@0.13.4: - dependencies: - jsesc: 3.1.0 - require-from-string@2.0.2: {} requires-port@1.0.0: {} - reserved-identifiers@1.2.0: {} - retry@0.12.0: {} router@2.2.0: @@ -2650,12 +2424,8 @@ snapshots: sisteransi@2.0.0: {} - source-map-js@1.2.4: {} - statuses@2.0.2: {} - strip-indent@4.1.1: {} - strip-json-comments@5.0.3: {} supports-color@8.1.1: @@ -2727,12 +2497,6 @@ snapshots: unpipe@1.0.0: {} - update-browserslist-db@1.4.0(browserslist@4.29.6): - dependencies: - browserslist: 4.29.6 - escalade: 3.2.0 - picocolors: 1.1.1 - uri-js@4.4.1: dependencies: punycode: 2.3.1 @@ -2758,8 +2522,6 @@ snapshots: yallist@5.0.0: {} - yaml@2.9.1: {} - yazl@3.3.1: dependencies: buffer-crc32: 1.0.0 diff --git a/src/commands/cloud.ts b/src/commands/cloud.ts index bf03ebb..867b041 100644 --- a/src/commands/cloud.ts +++ b/src/commands/cloud.ts @@ -1,4 +1,3 @@ -/* eslint-disable complexity */ import { defineCommand } from 'citty'; import { existsSync } from 'node:fs'; import * as path from 'node:path'; @@ -80,7 +79,6 @@ process.on('warning', (warning) => { ) { return; } - // eslint-disable-next-line no-console console.warn(warning.stack ?? `${warning.name}: ${warning.message}`); }); @@ -122,7 +120,6 @@ export const cloudCommand = defineCommand({ description: 'The flow file to run against the app, e.g. test.yaml', }, }, - // eslint-disable-next-line complexity async run({ args, rawArgs }) { const cliVersion = getCliVersion(); const deviceValidationService = new DeviceValidationService(); diff --git a/src/commands/status.ts b/src/commands/status.ts index 2e99d4f..d1e8896 100644 --- a/src/commands/status.ts +++ b/src/commands/status.ts @@ -85,7 +85,6 @@ export const statusCommand = defineCommand({ description: 'UUID of the upload to check status for', }, }, - // eslint-disable-next-line complexity async run({ args }) { const apiKeyFlag = args['api-key'] as string | undefined; const apiUrl = resolveApiUrl(args['api-url'] as string | undefined); diff --git a/src/methods.ts b/src/methods.ts index 63ca5ac..d437c8c 100644 --- a/src/methods.ts +++ b/src/methods.ts @@ -105,7 +105,6 @@ export const compressFilesFromRelativePath = async ( }; export const verifyAppZip = async (zipPath: string) => { - // eslint-disable-next-line new-cap const zip = await new StreamZip.async({ file: zipPath, storeEntries: true, diff --git a/src/services/execution-plan.service.ts b/src/services/execution-plan.service.ts index 069d035..fbe8297 100644 --- a/src/services/execution-plan.service.ts +++ b/src/services/execution-plan.service.ts @@ -602,7 +602,6 @@ export async function plan(options: PlanOptions): Promise { throw error; } - // eslint-disable-next-line unicorn/no-array-reduce const configPerFlowFile = unfilteredFlowFiles.reduce( (acc, filePath) => { const { config } = readTestYamlFileAsJson(filePath); @@ -645,7 +644,6 @@ export async function plan(options: PlanOptions): Promise { allFlows.map((filePath) => checkDependencies(filePath)), ).then((results) => [...new Set(results.flat())]); - // eslint-disable-next-line unicorn/no-array-reduce const pathsByName = allFlows.reduce((acc, filePath) => { const config = configPerFlowFile[filePath]; const name = (config?.name as string) || path.parse(filePath).name; diff --git a/src/services/moropo.service.ts b/src/services/moropo.service.ts index 89e877b..00656f5 100644 --- a/src/services/moropo.service.ts +++ b/src/services/moropo.service.ts @@ -146,7 +146,6 @@ export class MoropoService { } private async extractZipFile(zipPath: string, extractPath: string): Promise { - // eslint-disable-next-line new-cap const zip = new StreamZip.async({ file: zipPath }); await zip.extract(null, extractPath); await zip.close(); diff --git a/src/services/results-polling.service.ts b/src/services/results-polling.service.ts index 17937a7..e07b226 100644 --- a/src/services/results-polling.service.ts +++ b/src/services/results-polling.service.ts @@ -254,7 +254,6 @@ export class ResultsPollingService { try { // Poll in a loop until all tests complete - // eslint-disable-next-line no-constant-condition while (true) { try { nextPollAt = null; @@ -463,7 +462,6 @@ export class ResultsPollingService { }, }, ...(hasFailedTests && { - // eslint-disable-next-line camelcase fail_reason: { get(row) { return row.status === 'FAILED' && row.fail_reason diff --git a/src/services/test-submission.service.ts b/src/services/test-submission.service.ts index 004d23d..fa9ba6f 100644 --- a/src/services/test-submission.service.ts +++ b/src/services/test-submission.service.ts @@ -448,7 +448,6 @@ export class TestSubmissionService { } private parseKeyValuePairs(pairs: string[]): Record { - // eslint-disable-next-line unicorn/no-array-reduce return pairs.reduce((acc, cur) => { const [key, ...value] = cur.split('='); // handle case where value includes an equals sign diff --git a/src/utils/cli.ts b/src/utils/cli.ts index da4aba7..d9695c7 100644 --- a/src/utils/cli.ts +++ b/src/utils/cli.ts @@ -70,16 +70,13 @@ export interface Logger { export const logger: Logger = { log(message: string): void { - // eslint-disable-next-line no-console console.log(message); }, warn(message: string): void { - // eslint-disable-next-line no-console console.warn(symbols.warning + ' ' + message); }, json(value: unknown): void { // The one stdout write under --json; everything else is gated off. - // eslint-disable-next-line no-console console.log(JSON.stringify(value, null, 2)); }, error( @@ -95,7 +92,6 @@ export const logger: Logger = { } else { // The literal "Error:" prefix is important for tests and for grep-friendly // CI logs — it survives color stripping and matches /error/i assertions. - // eslint-disable-next-line no-console console.error(symbols.error + ' Error: ' + text); } return logger.fail(message, opts.exit ?? 1); diff --git a/src/utils/config-store.ts b/src/utils/config-store.ts index f86fb4f..4e25113 100644 --- a/src/utils/config-store.ts +++ b/src/utils/config-store.ts @@ -64,7 +64,6 @@ export function readConfig(): StoredConfig | null { const raw = readFileSync(p, 'utf8'); const parsed = JSON.parse(raw) as StoredConfig; if (parsed.version !== CONFIG_SCHEMA_VERSION) { - // eslint-disable-next-line no-console console.warn( `Warning: config at ${p} was written by an incompatible CLI version (config version ${parsed.version}); ignoring it. Run \`dcd login\` to recreate it.`, ); @@ -74,7 +73,6 @@ export function readConfig(): StoredConfig | null { } catch { // Surface the corruption instead of silently behaving as logged-out, so // downstream "Not authenticated" errors aren't mystifying. - // eslint-disable-next-line no-console console.warn( `Warning: could not parse config at ${p}; treating as logged out. Run \`dcd login\` to recreate it.`, ); diff --git a/src/utils/progress.ts b/src/utils/progress.ts index 099b6b8..96e876b 100644 --- a/src/utils/progress.ts +++ b/src/utils/progress.ts @@ -100,7 +100,6 @@ class Action { this.current = null; this._status = ''; if (line) { - // eslint-disable-next-line no-console console.log(line); } } @@ -110,7 +109,6 @@ class Action { private print(line: string): void { if (line === this._lastPrinted) return; this._lastPrinted = line; - // eslint-disable-next-line no-console console.log(line); } } @@ -118,7 +116,6 @@ class Action { export const ux = { action: new Action(), info(message: string): void { - // eslint-disable-next-line no-console console.log(message); }, }; diff --git a/src/utils/styling.ts b/src/utils/styling.ts index 53d1e7b..c034b3a 100644 --- a/src/utils/styling.ts +++ b/src/utils/styling.ts @@ -170,7 +170,6 @@ export function table( options: { printLine?: (line: string) => void } = {}, ): void { const printLine = options.printLine ?? ((line: string) => { - // eslint-disable-next-line no-console console.log(line); }); diff --git a/test/unit/report-download.service.test.ts b/test/unit/report-download.service.test.ts index 06ae46c..e1be83d 100644 --- a/test/unit/report-download.service.test.ts +++ b/test/unit/report-download.service.test.ts @@ -48,7 +48,6 @@ before(async () => { /** `zip` cut off before its central directory, as a dropped stream leaves it. */ const truncated = (zip: Buffer) => zip.subarray(0, Math.floor(zip.length / 2)); -// eslint-disable-next-line @typescript-eslint/no-explicit-any const originalFetch = (global as any).fetch; /** @@ -63,7 +62,6 @@ function mockFetch(status: number, responseBody?: Buffer | string) { const encoder = new TextEncoder(); // Default: a complete ZIP, the body a successful artifacts download has. const body = responseBody ?? INLINE_ZIP; - // eslint-disable-next-line @typescript-eslint/no-explicit-any (global as any).fetch = async ( input: URL | string, init?: RequestInit, @@ -91,7 +89,6 @@ function mockFetch(status: number, responseBody?: Buffer | string) { } function restoreFetch() { - // eslint-disable-next-line @typescript-eslint/no-explicit-any (global as any).fetch = originalFetch; captured = null; }