diff --git a/.eslintrc.js b/.eslintrc.js index 32197ceb..72d804df 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,7 +7,14 @@ * @see https://eslint.org/docs/latest/use/configure/configuration-files */ const config = { - extends: '@eslint-recommended/eslint-config' + extends: './index.js', + overrides: [ + // https://typescript-eslint.io/troubleshooting/#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file + { + files: ['./**/*.js'], + extends: ['plugin:@typescript-eslint/disable-type-checked'] + } + ] } // eslint-disable-next-line unicorn/prefer-module diff --git a/package-lock.json b/package-lock.json index c31edbd4..fefdb867 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,14 +10,13 @@ "license": "MIT", "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "4.1.0", - "@eslint-recommended/eslint-config": "17.0.0", "@typescript-eslint/eslint-plugin": "7.5.0", "eslint": "8.57.0", "eslint-config-love": "44.0.0", "eslint-plugin-jsdoc": "47.0.2", "eslint-plugin-sonarjs": "0.21.0", "eslint-plugin-tsdoc": "0.2.17", - "eslint-plugin-unicorn": "48.0.1", + "eslint-plugin-unicorn": "49.0.0", "typescript": "5.4.4" }, "engines": { @@ -31,7 +30,7 @@ "eslint-plugin-jsdoc": "^47.0.0", "eslint-plugin-sonarjs": "^0.21.0", "eslint-plugin-tsdoc": "^0.2.17", - "eslint-plugin-unicorn": "^48.0.0", + "eslint-plugin-unicorn": "^49.0.0", "typescript": "*" } }, @@ -206,23 +205,6 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@eslint-recommended/eslint-config": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@eslint-recommended/eslint-config/-/eslint-config-17.0.0.tgz", - "integrity": "sha512-/e5TNUOcuw6eWvnF014Fvgykh+MFfR16MkdDl/naZh/8/X0JkVXQG7QZAgU5aC9ByLUynKNXDC4fl6ZQYjh2Ig==", - "dev": true, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^8.23.1", - "eslint-config-standard": "^17.0.0", - "eslint-plugin-eslint-comments": "^3.0.0", - "eslint-plugin-jsdoc": "^47.0.0", - "eslint-plugin-sonarjs": "^0.21.0", - "eslint-plugin-unicorn": "^48.0.0" - } - }, "node_modules/@eslint/eslintrc": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", @@ -1504,36 +1486,6 @@ "eslint": ">=8" } }, - "node_modules/eslint-plugin-eslint-comments": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", - "dev": true, - "peer": true, - "dependencies": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" - }, - "engines": { - "node": ">=6.5.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/eslint-plugin-import": { "version": "2.29.1", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", @@ -1735,12 +1687,12 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "48.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-48.0.1.tgz", - "integrity": "sha512-FW+4r20myG/DqFcCSzoumaddKBicIPeFnTrifon2mWIzlfyvzwyqZjqVP7m4Cqr/ZYisS2aiLghkUWaPg6vtCw==", + "version": "49.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-49.0.0.tgz", + "integrity": "sha512-0fHEa/8Pih5cmzFW5L7xMEfUTvI9WKeQtjmKpTUmY+BiFCDxkxrTdnURJOHKykhtwIeyYsxnecbGvDCml++z4Q==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "@eslint-community/eslint-utils": "^4.4.0", "ci-info": "^3.8.0", "clean-regexp": "^1.0.0", @@ -1748,7 +1700,6 @@ "indent-string": "^4.0.0", "is-builtin-module": "^3.2.1", "jsesc": "^3.0.2", - "lodash": "^4.17.21", "pluralize": "^8.0.0", "read-pkg-up": "^7.0.1", "regexp-tree": "^0.1.27", @@ -1763,7 +1714,7 @@ "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" }, "peerDependencies": { - "eslint": ">=8.44.0" + "eslint": ">=8.52.0" } }, "node_modules/eslint-scope": { @@ -2810,12 +2761,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", diff --git a/package.json b/package.json index 539dbbf6..478b033a 100644 --- a/package.json +++ b/package.json @@ -20,19 +20,18 @@ "eslint-plugin-jsdoc": "^47.0.0", "eslint-plugin-sonarjs": "^0.21.0", "eslint-plugin-tsdoc": "^0.2.17", - "eslint-plugin-unicorn": "^48.0.0", + "eslint-plugin-unicorn": "^49.0.0", "typescript": "*" }, "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "4.1.0", - "@eslint-recommended/eslint-config": "17.0.0", "@typescript-eslint/eslint-plugin": "7.5.0", "eslint": "8.57.0", "eslint-config-love": "44.0.0", "eslint-plugin-jsdoc": "47.0.2", "eslint-plugin-sonarjs": "0.21.0", "eslint-plugin-tsdoc": "0.2.17", - "eslint-plugin-unicorn": "48.0.1", + "eslint-plugin-unicorn": "49.0.0", "typescript": "5.4.4" }, "repository": {