From 1e57aab15a5890f2f0e6e75867bfa0e9663fc6a0 Mon Sep 17 00:00:00 2001 From: wakamsha Date: Mon, 2 Dec 2024 15:20:40 +0900 Subject: [PATCH 1/3] feat!: Update ESLint version requirements update snapshot --- package-lock.json | 408 ++++++++++-------- package.json | 4 +- .../next/__snapshots__/snapshot.test.js.snap | 14 - .../node/__snapshots__/snapshot.test.js.snap | 14 - .../react/__snapshots__/snapshot.test.js.snap | 14 - .../__snapshots__/snapshot.test.js.snap | 14 - .../next/__snapshots__/snapshot.test.js.snap | 139 +++++- .../node/__snapshots__/snapshot.test.js.snap | 145 ++++++- .../react/__snapshots__/snapshot.test.js.snap | 139 +++++- .../__snapshots__/snapshot.test.js.snap | 139 +++++- 10 files changed, 779 insertions(+), 251 deletions(-) diff --git a/package-lock.json b/package-lock.json index 539c7a5..ff5f23e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", "conventional-changelog-conventionalcommits": "8.0.0", - "eslint": "8.57.0", + "eslint": "9.16.0", "eslint-config-prettier": "9.1.0", "jest": "29.7.0", "prettier": "3.4.2", @@ -45,7 +45,7 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { - "eslint": "^8.56.0", + "eslint": "^8.57.0 || ^9.0.0", "jest": "*", "typescript": "^4.8.4 || ^5.0.0" }, @@ -756,15 +756,42 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.19.1.tgz", + "integrity": "sha512-fo6Mtm5mWyKjA/Chy1BYTdn5mGJoDNjC7C64ug20ADsRDGrA85bN3uK3MaKbeRkRuuIEAR5N33Jr1pbm411/PA==", + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.5", + "debug": "^4.3.1", + "minimatch": "^3.1.2" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.9.1.tgz", + "integrity": "sha512-GuUdqkyyzQI5RMIWkHhvTWLCyLo1jNK3vzkSyaExH5kHPDHcuL2VOpHjmMY+y3+NC69qAKToBqldTBgYeLSr9Q==", + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", + "integrity": "sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==", + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -772,46 +799,87 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.16.0.tgz", + "integrity": "sha512-tw2HxzQkrbeuvyj1tG2Yqq+0H9wGoI2IMk4EOsQeX+vmd75FtJAzf+gTA69WF+baUKRYQ3x2kbLE08js5OsTVg==", + "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "node_modules/@eslint/object-schema": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.5.tgz", + "integrity": "sha512-o0bhxnL89h5Bae5T318nFoFzGy+YE5i/gGkoPAgkmTVdRKTiv3p8JHevPiPaMwoloKfEiiaHlawCqaZMqRm+XQ==", + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.4.tgz", + "integrity": "sha512-zSkKow6H5Kdm0ZUQUB2kV5JIXqoG0+uH5YADhaEHswm664N9Db8dXSi0nMJpacpMf+MyyglF1vnZohpEg5yUtg==", + "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.6", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", + "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.3.0" }, "engines": { - "node": ">=10.10.0" + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", + "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, "node_modules/@humanwhocodes/module-importer": { @@ -826,10 +894,18 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" + "node_modules/@humanwhocodes/retry": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.1.tgz", + "integrity": "sha512-c7hNEllBlenFTHBky65mhq8WD2kbN9Q6gk0bTk8lSBvc554jpXSkST1iePudpt7+A/AQvuHs9EMqjHDXMY1lrA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", @@ -2192,6 +2268,12 @@ "@babel/types": "^7.20.7" } }, + "node_modules/@types/estree": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", + "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", + "license": "MIT" + }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -2225,6 +2307,12 @@ "@types/istanbul-lib-report": "*" } }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -2783,11 +2871,6 @@ "node": ">=10" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" - }, "node_modules/acorn": { "version": "8.14.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", @@ -2837,6 +2920,7 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -2879,6 +2963,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "devOptional": true, "engines": { "node": ">=8" } @@ -3843,9 +3928,10 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4052,17 +4138,6 @@ "node": ">=8" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -4459,57 +4534,62 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "9.16.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.16.0.tgz", + "integrity": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==", + "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.19.0", + "@eslint/core": "^0.9.0", + "@eslint/eslintrc": "^3.2.0", + "@eslint/js": "9.16.0", + "@eslint/plugin-kit": "^0.2.3", + "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", + "@humanwhocodes/retry": "^0.4.1", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", "ajv": "^6.12.4", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", + "cross-spawn": "^7.0.5", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", + "eslint-scope": "^8.2.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.0", + "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" + "optionator": "^0.9.3" }, "bin": { "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, "node_modules/eslint-compat-utils": { @@ -4955,35 +5035,6 @@ "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, - "node_modules/eslint-plugin-jsdoc/node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-jsdoc/node_modules/espree": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", - "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.14.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint-plugin-jsdoc/node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", @@ -5590,15 +5641,16 @@ } }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz", + "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==", + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -5615,32 +5667,42 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "license": "Apache-2.0", "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.14.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -5675,6 +5737,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -5749,7 +5812,8 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.3.2", @@ -5821,14 +5885,15 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/fill-range": { @@ -5886,22 +5951,23 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "license": "MIT", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==" + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.2.tgz", + "integrity": "sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==", + "license": "ISC" }, "node_modules/for-each": { "version": "0.3.3", @@ -5939,7 +6005,8 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "devOptional": true }, "node_modules/fsevents": { "version": "2.3.3", @@ -6112,6 +6179,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "devOptional": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -6466,6 +6534,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "devOptional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -6474,7 +6543,8 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "devOptional": true }, "node_modules/internal-slot": { "version": "1.0.7", @@ -6777,14 +6847,6 @@ "node": ">=8" } }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "engines": { - "node": ">=8" - } - }, "node_modules/is-plain-obj": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", @@ -7708,7 +7770,8 @@ "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==" + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "license": "MIT" }, "node_modules/json-parse-better-errors": { "version": "1.0.2", @@ -7724,7 +7787,8 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -7773,6 +7837,7 @@ "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } @@ -11221,6 +11286,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, "dependencies": { "wrappy": "1" } @@ -11437,6 +11503,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "devOptional": true, "engines": { "node": ">=0.10.0" } @@ -11788,6 +11855,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", "engines": { "node": ">=6" } @@ -12265,20 +12333,6 @@ "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -13161,6 +13215,7 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "devOptional": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -13349,11 +13404,6 @@ "node": ">=8" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==" - }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", @@ -13522,18 +13572,6 @@ "node": ">=4" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/typed-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz", @@ -13925,6 +13963,7 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", "dependencies": { "punycode": "^2.1.0" } @@ -14087,7 +14126,8 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true }, "node_modules/write-file-atomic": { "version": "4.0.2", diff --git a/package.json b/package.json index 47c1f8d..f7ce90f 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "@semantic-release/changelog": "6.0.3", "@semantic-release/git": "10.0.1", "conventional-changelog-conventionalcommits": "8.0.0", - "eslint": "8.57.0", + "eslint": "9.16.0", "eslint-config-prettier": "9.1.0", "jest": "29.7.0", "prettier": "3.4.2", @@ -72,7 +72,7 @@ "typescript": "5.7.2" }, "peerDependencies": { - "eslint": "^8.56.0", + "eslint": "^8.57.0 || ^9.0.0", "jest": "*", "typescript": "^4.8.4 || ^5.0.0" }, diff --git a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap index 9eb104f..139af44 100644 --- a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap @@ -299,7 +299,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -422,8 +421,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` 2, { "allowImplicit": true, - "allowVoid": false, - "checkForEach": false, }, ], "arrow-body-style": [ @@ -444,8 +441,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` 0, { "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -468,7 +463,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "class-methods-use-this": [ 2, { - "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -1339,7 +1333,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], - "properties": true, }, ], "no-alert": [ @@ -1494,7 +1487,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` { "allow": [], "boolean": false, - "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -2027,11 +2019,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, - "allowAfterThisConstructor": false, - "allowFunctionParams": true, - "allowInArrayDestructuring": true, - "allowInObjectDestructuring": true, - "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -2074,7 +2061,6 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap index 411803b..e8b87c9 100644 --- a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap @@ -14,8 +14,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "allowImplicit": true, - "allowVoid": false, - "checkForEach": false, }, ], "arrow-body-style": [ @@ -36,8 +34,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -60,7 +56,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "class-methods-use-this": [ 2, { - "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -94,7 +89,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "allowKeywords": true, - "allowPattern": "", }, ], "eqeqeq": [ @@ -476,7 +470,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], - "properties": true, }, ], "no-alert": [ @@ -631,7 +624,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` { "allow": [], "boolean": false, - "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1155,11 +1147,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, - "allowAfterThisConstructor": false, - "allowFunctionParams": true, - "allowInArrayDestructuring": true, - "allowInObjectDestructuring": true, - "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -1202,7 +1189,6 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap index 0ac8b4c..027dc20 100644 --- a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap @@ -236,7 +236,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -359,8 +358,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` 2, { "allowImplicit": true, - "allowVoid": false, - "checkForEach": false, }, ], "arrow-body-style": [ @@ -381,8 +378,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` 0, { "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -405,7 +400,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "class-methods-use-this": [ 2, { - "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -1276,7 +1270,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], - "properties": true, }, ], "no-alert": [ @@ -1431,7 +1424,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` { "allow": [], "boolean": false, - "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1964,11 +1956,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, - "allowAfterThisConstructor": false, - "allowFunctionParams": true, - "allowInArrayDestructuring": true, - "allowInObjectDestructuring": true, - "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -2011,7 +1998,6 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap index 36e27cf..94ff1fc 100644 --- a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap @@ -236,7 +236,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -359,8 +358,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` 2, { "allowImplicit": true, - "allowVoid": false, - "checkForEach": false, }, ], "arrow-body-style": [ @@ -381,8 +378,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` 0, { "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -405,7 +400,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "class-methods-use-this": [ 2, { - "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -1033,7 +1027,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], - "properties": true, }, ], "no-alert": [ @@ -1188,7 +1181,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` { "allow": [], "boolean": false, - "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1721,11 +1713,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, - "allowAfterThisConstructor": false, - "allowFunctionParams": true, - "allowInArrayDestructuring": true, - "allowInObjectDestructuring": true, - "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -1768,7 +1755,6 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap index 1fbb94d..3de24d4 100644 --- a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configuration snapshot: next 1`] = ` { "languageOptions": { - "ecmaVersion": "latest", + "ecmaVersion": 2025, "globals": { "AggregateError": false, "Array": false, @@ -378,7 +378,6 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -492,6 +491,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "accessor-pairs": [ 0, + { + "enforceForClassMembers": true, + "getWithoutSet": false, + "setWithoutGet": true, + }, ], "array-bracket-newline": [ 0, @@ -522,7 +526,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "camelcase": [ 0, { + "allow": [], "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -555,9 +562,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "consistent-return": [ 0, + { + "treatUndefinedAsUnspecified": false, + }, ], "consistent-this": [ 0, + "that", ], "constructor-super": [ 0, @@ -568,6 +579,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "default-case": [ 0, + {}, ], "default-case-last": [ 2, @@ -579,6 +591,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat 0, { "allowKeywords": true, + "allowPattern": "", }, ], "eqeqeq": [ @@ -602,10 +615,15 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "func-names": [ 2, "as-needed", + {}, ], "func-style": [ 0, "expression", + { + "allowArrowFunctions": false, + "overrides": {}, + }, ], "getter-return": [ 0, @@ -615,6 +633,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "grouped-accessor-pairs": [ 2, + "anyOrder", ], "guard-for-in": [ 2, @@ -624,9 +643,22 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "id-length": [ 0, + { + "exceptionPatterns": [], + "exceptions": [], + "min": 2, + "properties": "always", + }, ], "id-match": [ 0, + "^.+$", + { + "classFields": false, + "ignoreDestructuring": false, + "onlyDeclarations": false, + "properties": false, + }, ], "import/consistent-type-specifier-style": [ 2, @@ -1418,6 +1450,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-bitwise": [ 2, + { + "allow": [], + "int32Hint": false, + }, ], "no-caller": [ 2, @@ -1452,6 +1488,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-constant-condition": [ 2, + { + "checkLoops": "allExceptWhileTrue", + }, ], "no-constructor-return": [ 2, @@ -1488,6 +1527,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-duplicate-imports": [ 0, + { + "includeExports": false, + }, ], "no-else-return": [ 2, @@ -1497,6 +1539,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-empty": [ 2, + { + "allowEmptyCatch": false, + }, ], "no-empty-character-class": [ 2, @@ -1514,6 +1559,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-empty-pattern": [ 2, + { + "allowObjectPatternsAsParameters": false, + }, ], "no-empty-static-block": [ 2, @@ -1523,24 +1571,35 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-eval": [ 2, + { + "allowIndirect": false, + }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, + { + "exceptions": [], + }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, + {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, + { + "allowEmptyCase": false, + "reportUnusedFallthroughComment": false, + }, ], "no-func-assign": [ 0, @@ -1563,6 +1622,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-implicit-globals": [ 2, + { + "lexicalBindings": false, + }, ], "no-implied-eval": [ 0, @@ -1572,18 +1634,34 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-inline-comments": [ 0, + {}, ], "no-inner-declarations": [ 2, + "functions", + { + "blockScopedFunctions": "allow", + }, ], "no-invalid-regexp": [ 2, + {}, ], "no-invalid-this": [ 2, + { + "capIsConstructor": true, + }, ], "no-irregular-whitespace": [ 2, + { + "skipComments": false, + "skipJSXText": false, + "skipRegExps": false, + "skipStrings": true, + "skipTemplates": false, + }, ], "no-iterator": [ 2, @@ -1624,6 +1702,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-multi-assign": [ 2, + { + "ignoreNonDeclaration": false, + }, ], "no-multi-str": [ 2, @@ -1691,6 +1772,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-promise-executor-return": [ 2, + { + "allowVoid": false, + }, ], "no-proto": [ 2, @@ -1700,6 +1784,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-redeclare": [ 0, + { + "builtinGlobals": true, + }, ], "no-regex-spaces": [ 2, @@ -2049,12 +2136,21 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-sequences": [ 2, + { + "allowInParentheses": true, + }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, + { + "allow": [], + "builtinGlobals": false, + "hoist": "functions", + "ignoreOnInitialization": false, + }, ], "no-shadow-restricted-names": [ 2, @@ -2076,6 +2172,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-undef": [ 0, + { + "typeof": false, + }, ], "no-undef-init": [ 2, @@ -2123,6 +2222,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-unsafe-negation": [ 0, + { + "enforceForOrderingRelations": false, + }, ], "no-unsafe-optional-chaining": [ 2, @@ -2136,6 +2238,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -2154,6 +2257,12 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-use-before-define": [ 0, + { + "allowNamedExports": false, + "classes": true, + "functions": true, + "variables": true, + }, ], "no-useless-backreference": [ 2, @@ -2166,6 +2275,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-useless-computed-key": [ 2, + { + "enforceForClassMembers": true, + }, ], "no-useless-concat": [ 2, @@ -2192,6 +2304,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-void": [ 2, + { + "allowAsStatement": false, + }, ], "no-warning-comments": [ 0, @@ -2330,6 +2445,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "radix": [ 2, + "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2786,6 +2902,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "require-atomic-updates": [ 0, + { + "allowProperties": false, + }, ], "require-await": [ 0, @@ -2799,6 +2918,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "sort-imports": [ 0, { + "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2814,12 +2934,18 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat 0, "asc", { + "allowLineSeparatedGroups": false, "caseSensitive": false, + "ignoreComputedKeys": false, + "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, + { + "ignoreCase": false, + }, ], "symbol-description": [ 2, @@ -3234,6 +3360,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "use-isnan": [ 2, + { + "enforceForIndexOf": false, + "enforceForSwitchCase": true, + }, ], "valid-typeof": [ 2, @@ -3246,6 +3376,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "yoda": [ 2, + "never", + { + "exceptRange": false, + "onlyEquality": false, + }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap index 900962b..65d7e46 100644 --- a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` { "languageOptions": { - "ecmaVersion": "latest", + "ecmaVersion": 2025, "globals": { "AggregateError": false, "Array": false, @@ -102,6 +102,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "FunctionExpression": "FunctionExpression", "Identifier": "Identifier", "IfStatement": "IfStatement", + "ImportAttribute": "ImportAttribute", "ImportDeclaration": "ImportDeclaration", "ImportDefaultSpecifier": "ImportDefaultSpecifier", "ImportExpression": "ImportExpression", @@ -236,6 +237,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "ExportAllDeclaration": [ "exported", "source", + "attributes", ], "ExportDefaultDeclaration": [ "declaration", @@ -244,6 +246,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "declaration", "specifiers", "source", + "attributes", ], "ExportSpecifier": [ "exported", @@ -284,15 +287,21 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "consequent", "alternate", ], + "ImportAttribute": [ + "key", + "value", + ], "ImportDeclaration": [ "specifiers", "source", + "attributes", ], "ImportDefaultSpecifier": [ "local", ], "ImportExpression": [ "source", + "options", ], "ImportNamespaceSpecifier": [ "local", @@ -454,7 +463,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "argument", ], }, - "latestEcmaVersion": 15, + "latestEcmaVersion": 16, "name": "espree", "parse": [Function], "supportedEcmaVersions": [ @@ -470,9 +479,10 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` 13, 14, 15, + 16, ], "tokenize": [Function], - "version": "9.6.1", + "version": "10.3.0", }, "parserOptions": { "ecmaVersion": "latest", @@ -483,6 +493,11 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "rules": { "accessor-pairs": [ 0, + { + "enforceForClassMembers": true, + "getWithoutSet": false, + "setWithoutGet": true, + }, ], "array-bracket-newline": [ 0, @@ -513,6 +528,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "camelcase": [ 2, { + "allow": [], "ignoreDestructuring": false, "ignoreGlobals": false, "ignoreImports": false, @@ -548,9 +564,13 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "consistent-return": [ 0, + { + "treatUndefinedAsUnspecified": false, + }, ], "consistent-this": [ 0, + "that", ], "constructor-super": [ 2, @@ -561,6 +581,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "default-case": [ 0, + {}, ], "default-case-last": [ 2, @@ -596,10 +617,15 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "func-names": [ 2, "as-needed", + {}, ], "func-style": [ 0, "expression", + { + "allowArrowFunctions": false, + "overrides": {}, + }, ], "getter-return": [ 2, @@ -609,6 +635,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "grouped-accessor-pairs": [ 2, + "anyOrder", ], "guard-for-in": [ 2, @@ -618,9 +645,22 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "id-length": [ 0, + { + "exceptionPatterns": [], + "exceptions": [], + "min": 2, + "properties": "always", + }, ], "id-match": [ 0, + "^.+$", + { + "classFields": false, + "ignoreDestructuring": false, + "onlyDeclarations": false, + "properties": false, + }, ], "import/consistent-type-specifier-style": [ 2, @@ -971,6 +1011,10 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-bitwise": [ 2, + { + "allow": [], + "int32Hint": false, + }, ], "no-caller": [ 2, @@ -1005,6 +1049,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-constant-condition": [ 2, + { + "checkLoops": "allExceptWhileTrue", + }, ], "no-constructor-return": [ 2, @@ -1041,6 +1088,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-duplicate-imports": [ 0, + { + "includeExports": false, + }, ], "no-else-return": [ 2, @@ -1050,6 +1100,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-empty": [ 2, + { + "allowEmptyCatch": false, + }, ], "no-empty-character-class": [ 2, @@ -1067,6 +1120,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-empty-pattern": [ 2, + { + "allowObjectPatternsAsParameters": false, + }, ], "no-empty-static-block": [ 2, @@ -1076,24 +1132,35 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-eval": [ 2, + { + "allowIndirect": false, + }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, + { + "exceptions": [], + }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, + {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, + { + "allowEmptyCase": false, + "reportUnusedFallthroughComment": false, + }, ], "no-func-assign": [ 2, @@ -1116,6 +1183,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-implicit-globals": [ 2, + { + "lexicalBindings": false, + }, ], "no-implied-eval": [ 2, @@ -1125,18 +1195,34 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-inline-comments": [ 0, + {}, ], "no-inner-declarations": [ 2, + "functions", + { + "blockScopedFunctions": "allow", + }, ], "no-invalid-regexp": [ 2, + {}, ], "no-invalid-this": [ 2, + { + "capIsConstructor": true, + }, ], "no-irregular-whitespace": [ 2, + { + "skipComments": false, + "skipJSXText": false, + "skipRegExps": false, + "skipStrings": true, + "skipTemplates": false, + }, ], "no-iterator": [ 2, @@ -1177,6 +1263,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-multi-assign": [ 2, + { + "ignoreNonDeclaration": false, + }, ], "no-multi-str": [ 2, @@ -1241,6 +1330,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-promise-executor-return": [ 2, + { + "allowVoid": false, + }, ], "no-proto": [ 2, @@ -1593,12 +1685,21 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-sequences": [ 2, + { + "allowInParentheses": true, + }, ], "no-setter-return": [ 2, ], "no-shadow": [ 0, + { + "allow": [], + "builtinGlobals": false, + "hoist": "functions", + "ignoreOnInitialization": false, + }, ], "no-shadow-restricted-names": [ 2, @@ -1620,6 +1721,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-undef": [ 0, + { + "typeof": false, + }, ], "no-undef-init": [ 2, @@ -1667,6 +1771,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-unsafe-negation": [ 2, + { + "enforceForOrderingRelations": false, + }, ], "no-unsafe-optional-chaining": [ 2, @@ -1699,6 +1806,12 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-use-before-define": [ 0, + { + "allowNamedExports": false, + "classes": true, + "functions": true, + "variables": true, + }, ], "no-useless-backreference": [ 2, @@ -1711,6 +1824,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-useless-computed-key": [ 2, + { + "enforceForClassMembers": true, + }, ], "no-useless-concat": [ 2, @@ -1737,6 +1853,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-void": [ 2, + { + "allowAsStatement": false, + }, ], "no-warning-comments": [ 0, @@ -1875,9 +1994,13 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "radix": [ 2, + "always", ], "require-atomic-updates": [ 0, + { + "allowProperties": false, + }, ], "require-await": [ 0, @@ -1891,6 +2014,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "sort-imports": [ 0, { + "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -1906,12 +2030,18 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` 0, "asc", { + "allowLineSeparatedGroups": false, "caseSensitive": false, + "ignoreComputedKeys": false, + "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, + { + "ignoreCase": false, + }, ], "symbol-description": [ 2, @@ -2326,6 +2456,10 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "use-isnan": [ 2, + { + "enforceForIndexOf": false, + "enforceForSwitchCase": true, + }, ], "valid-typeof": [ 2, @@ -2338,6 +2472,11 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "yoda": [ 2, + "never", + { + "exceptRange": false, + "onlyEquality": false, + }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap index d1fe0a9..25a1b36 100644 --- a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration snapshot: react 1`] = ` { "languageOptions": { - "ecmaVersion": "latest", + "ecmaVersion": 2025, "globals": { "AggregateError": false, "Array": false, @@ -315,7 +315,6 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -429,6 +428,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "accessor-pairs": [ 0, + { + "enforceForClassMembers": true, + "getWithoutSet": false, + "setWithoutGet": true, + }, ], "array-bracket-newline": [ 0, @@ -459,7 +463,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "camelcase": [ 0, { + "allow": [], "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -492,9 +499,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "consistent-return": [ 0, + { + "treatUndefinedAsUnspecified": false, + }, ], "consistent-this": [ 0, + "that", ], "constructor-super": [ 0, @@ -505,6 +516,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "default-case": [ 0, + {}, ], "default-case-last": [ 2, @@ -516,6 +528,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s 0, { "allowKeywords": true, + "allowPattern": "", }, ], "eqeqeq": [ @@ -539,10 +552,15 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "func-names": [ 2, "as-needed", + {}, ], "func-style": [ 0, "expression", + { + "allowArrowFunctions": false, + "overrides": {}, + }, ], "getter-return": [ 0, @@ -552,6 +570,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "grouped-accessor-pairs": [ 2, + "anyOrder", ], "guard-for-in": [ 2, @@ -561,9 +580,22 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "id-length": [ 0, + { + "exceptionPatterns": [], + "exceptions": [], + "min": 2, + "properties": "always", + }, ], "id-match": [ 0, + "^.+$", + { + "classFields": false, + "ignoreDestructuring": false, + "onlyDeclarations": false, + "properties": false, + }, ], "import/consistent-type-specifier-style": [ 2, @@ -1355,6 +1387,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-bitwise": [ 2, + { + "allow": [], + "int32Hint": false, + }, ], "no-caller": [ 2, @@ -1389,6 +1425,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-constant-condition": [ 2, + { + "checkLoops": "allExceptWhileTrue", + }, ], "no-constructor-return": [ 2, @@ -1425,6 +1464,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-duplicate-imports": [ 0, + { + "includeExports": false, + }, ], "no-else-return": [ 2, @@ -1434,6 +1476,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-empty": [ 2, + { + "allowEmptyCatch": false, + }, ], "no-empty-character-class": [ 2, @@ -1451,6 +1496,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-empty-pattern": [ 2, + { + "allowObjectPatternsAsParameters": false, + }, ], "no-empty-static-block": [ 2, @@ -1460,24 +1508,35 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-eval": [ 2, + { + "allowIndirect": false, + }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, + { + "exceptions": [], + }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, + {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, + { + "allowEmptyCase": false, + "reportUnusedFallthroughComment": false, + }, ], "no-func-assign": [ 0, @@ -1500,6 +1559,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-implicit-globals": [ 2, + { + "lexicalBindings": false, + }, ], "no-implied-eval": [ 0, @@ -1509,18 +1571,34 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-inline-comments": [ 0, + {}, ], "no-inner-declarations": [ 2, + "functions", + { + "blockScopedFunctions": "allow", + }, ], "no-invalid-regexp": [ 2, + {}, ], "no-invalid-this": [ 2, + { + "capIsConstructor": true, + }, ], "no-irregular-whitespace": [ 2, + { + "skipComments": false, + "skipJSXText": false, + "skipRegExps": false, + "skipStrings": true, + "skipTemplates": false, + }, ], "no-iterator": [ 2, @@ -1561,6 +1639,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-multi-assign": [ 2, + { + "ignoreNonDeclaration": false, + }, ], "no-multi-str": [ 2, @@ -1628,6 +1709,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-promise-executor-return": [ 2, + { + "allowVoid": false, + }, ], "no-proto": [ 2, @@ -1637,6 +1721,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-redeclare": [ 0, + { + "builtinGlobals": true, + }, ], "no-regex-spaces": [ 2, @@ -1986,12 +2073,21 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-sequences": [ 2, + { + "allowInParentheses": true, + }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, + { + "allow": [], + "builtinGlobals": false, + "hoist": "functions", + "ignoreOnInitialization": false, + }, ], "no-shadow-restricted-names": [ 2, @@ -2013,6 +2109,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-undef": [ 0, + { + "typeof": false, + }, ], "no-undef-init": [ 2, @@ -2060,6 +2159,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-unsafe-negation": [ 0, + { + "enforceForOrderingRelations": false, + }, ], "no-unsafe-optional-chaining": [ 2, @@ -2073,6 +2175,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -2091,6 +2194,12 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-use-before-define": [ 0, + { + "allowNamedExports": false, + "classes": true, + "functions": true, + "variables": true, + }, ], "no-useless-backreference": [ 2, @@ -2103,6 +2212,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-useless-computed-key": [ 2, + { + "enforceForClassMembers": true, + }, ], "no-useless-concat": [ 2, @@ -2129,6 +2241,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "no-void": [ 2, + { + "allowAsStatement": false, + }, ], "no-warning-comments": [ 0, @@ -2267,6 +2382,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "radix": [ 2, + "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2723,6 +2839,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "require-atomic-updates": [ 0, + { + "allowProperties": false, + }, ], "require-await": [ 0, @@ -2736,6 +2855,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s "sort-imports": [ 0, { + "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2751,12 +2871,18 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s 0, "asc", { + "allowLineSeparatedGroups": false, "caseSensitive": false, + "ignoreComputedKeys": false, + "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, + { + "ignoreCase": false, + }, ], "symbol-description": [ 2, @@ -3171,6 +3297,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "use-isnan": [ 2, + { + "enforceForIndexOf": false, + "enforceForSwitchCase": true, + }, ], "valid-typeof": [ 2, @@ -3183,6 +3313,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "yoda": [ 2, + "never", + { + "exceptRange": false, + "onlyEquality": false, + }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap index 5176bd7..ec5795d 100644 --- a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configuration snapshot: storybook 1`] = ` { "languageOptions": { - "ecmaVersion": "latest", + "ecmaVersion": 2025, "globals": { "AggregateError": false, "Array": false, @@ -315,7 +315,6 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -429,6 +428,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "accessor-pairs": [ 0, + { + "enforceForClassMembers": true, + "getWithoutSet": false, + "setWithoutGet": true, + }, ], "array-bracket-newline": [ 0, @@ -459,7 +463,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "camelcase": [ 0, { + "allow": [], "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -492,9 +499,13 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "consistent-return": [ 0, + { + "treatUndefinedAsUnspecified": false, + }, ], "consistent-this": [ 0, + "that", ], "constructor-super": [ 0, @@ -505,6 +516,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "default-case": [ 0, + {}, ], "default-case-last": [ 2, @@ -516,6 +528,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat 0, { "allowKeywords": true, + "allowPattern": "", }, ], "eqeqeq": [ @@ -539,10 +552,15 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "func-names": [ 2, "as-needed", + {}, ], "func-style": [ 0, "expression", + { + "allowArrowFunctions": false, + "overrides": {}, + }, ], "getter-return": [ 0, @@ -552,6 +570,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "grouped-accessor-pairs": [ 2, + "anyOrder", ], "guard-for-in": [ 2, @@ -561,9 +580,22 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "id-length": [ 0, + { + "exceptionPatterns": [], + "exceptions": [], + "min": 2, + "properties": "always", + }, ], "id-match": [ 0, + "^.+$", + { + "classFields": false, + "ignoreDestructuring": false, + "onlyDeclarations": false, + "properties": false, + }, ], "import/consistent-type-specifier-style": [ 2, @@ -1112,6 +1144,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-bitwise": [ 2, + { + "allow": [], + "int32Hint": false, + }, ], "no-caller": [ 2, @@ -1146,6 +1182,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-constant-condition": [ 2, + { + "checkLoops": "allExceptWhileTrue", + }, ], "no-constructor-return": [ 2, @@ -1182,6 +1221,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-duplicate-imports": [ 0, + { + "includeExports": false, + }, ], "no-else-return": [ 2, @@ -1191,6 +1233,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-empty": [ 2, + { + "allowEmptyCatch": false, + }, ], "no-empty-character-class": [ 2, @@ -1208,6 +1253,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-empty-pattern": [ 2, + { + "allowObjectPatternsAsParameters": false, + }, ], "no-empty-static-block": [ 2, @@ -1217,24 +1265,35 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-eval": [ 2, + { + "allowIndirect": false, + }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, + { + "exceptions": [], + }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, + {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, + { + "allowEmptyCase": false, + "reportUnusedFallthroughComment": false, + }, ], "no-func-assign": [ 0, @@ -1257,6 +1316,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-implicit-globals": [ 2, + { + "lexicalBindings": false, + }, ], "no-implied-eval": [ 0, @@ -1266,18 +1328,34 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-inline-comments": [ 0, + {}, ], "no-inner-declarations": [ 2, + "functions", + { + "blockScopedFunctions": "allow", + }, ], "no-invalid-regexp": [ 2, + {}, ], "no-invalid-this": [ 2, + { + "capIsConstructor": true, + }, ], "no-irregular-whitespace": [ 2, + { + "skipComments": false, + "skipJSXText": false, + "skipRegExps": false, + "skipStrings": true, + "skipTemplates": false, + }, ], "no-iterator": [ 2, @@ -1318,6 +1396,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-multi-assign": [ 2, + { + "ignoreNonDeclaration": false, + }, ], "no-multi-str": [ 2, @@ -1385,6 +1466,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-promise-executor-return": [ 2, + { + "allowVoid": false, + }, ], "no-proto": [ 2, @@ -1394,6 +1478,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-redeclare": [ 0, + { + "builtinGlobals": true, + }, ], "no-regex-spaces": [ 2, @@ -1743,12 +1830,21 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-sequences": [ 2, + { + "allowInParentheses": true, + }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, + { + "allow": [], + "builtinGlobals": false, + "hoist": "functions", + "ignoreOnInitialization": false, + }, ], "no-shadow-restricted-names": [ 2, @@ -1770,6 +1866,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-undef": [ 0, + { + "typeof": false, + }, ], "no-undef-init": [ 2, @@ -1817,6 +1916,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-unsafe-negation": [ 0, + { + "enforceForOrderingRelations": false, + }, ], "no-unsafe-optional-chaining": [ 2, @@ -1830,6 +1932,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -1848,6 +1951,12 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-use-before-define": [ 0, + { + "allowNamedExports": false, + "classes": true, + "functions": true, + "variables": true, + }, ], "no-useless-backreference": [ 2, @@ -1860,6 +1969,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-useless-computed-key": [ 2, + { + "enforceForClassMembers": true, + }, ], "no-useless-concat": [ 2, @@ -1886,6 +1998,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "no-void": [ 2, + { + "allowAsStatement": false, + }, ], "no-warning-comments": [ 0, @@ -2024,6 +2139,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "radix": [ 2, + "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2480,6 +2596,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "require-atomic-updates": [ 0, + { + "allowProperties": false, + }, ], "require-await": [ 0, @@ -2493,6 +2612,7 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat "sort-imports": [ 0, { + "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2508,12 +2628,18 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat 0, "asc", { + "allowLineSeparatedGroups": false, "caseSensitive": false, + "ignoreComputedKeys": false, + "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, + { + "ignoreCase": false, + }, ], "storybook/await-interactions": [ 2, @@ -2964,6 +3090,10 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "use-isnan": [ 2, + { + "enforceForIndexOf": false, + "enforceForSwitchCase": true, + }, ], "valid-typeof": [ 2, @@ -2976,6 +3106,11 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "yoda": [ 2, + "never", + { + "exceptRange": false, + "onlyEquality": false, + }, ], }, "settings": { From a266c146ce74b59d01072ab36cad5ac128f9a21f Mon Sep 17 00:00:00 2001 From: wakamsha Date: Mon, 9 Dec 2024 18:58:24 +0900 Subject: [PATCH 2/3] fix eslint error --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff5f23e..442a8ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-storybook": "^0.11.1", "eslint-plugin-testing-library": "^7.0.0", - "eslint-plugin-unicorn": "^56.0.0", + "eslint-plugin-unicorn": "^56.0.1", "globals": "^15.11.0", "typescript-eslint": "^8.16.0" }, @@ -5569,9 +5569,9 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "56.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-56.0.0.tgz", - "integrity": "sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==", + "version": "56.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-56.0.1.tgz", + "integrity": "sha512-FwVV0Uwf8XPfVnKSGpMg7NtlZh0G0gBarCaFcMUOoqPxXryxdYxTRRv4kH6B9TFCVIrjRXG+emcxIk2ayZilog==", "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.24.7", diff --git a/package.json b/package.json index f7ce90f..686187c 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-storybook": "^0.11.1", "eslint-plugin-testing-library": "^7.0.0", - "eslint-plugin-unicorn": "^56.0.0", + "eslint-plugin-unicorn": "^56.0.1", "globals": "^15.11.0", "typescript-eslint": "^8.16.0" }, From 630a9c529ef3eeea65064678a87efd6f209dc594 Mon Sep 17 00:00:00 2001 From: wakamsha Date: Mon, 9 Dec 2024 10:51:22 +0900 Subject: [PATCH 3/3] update snapshot --- .../next/__snapshots__/snapshot.test.js.snap | 8 -------- .../react/__snapshots__/snapshot.test.js.snap | 8 -------- .../storybook/__snapshots__/snapshot.test.js.snap | 8 -------- .../flat/next/__snapshots__/snapshot.test.js.snap | 13 +++++++++++++ .../flat/node/__snapshots__/snapshot.test.js.snap | 10 ++++++++++ .../flat/react/__snapshots__/snapshot.test.js.snap | 13 +++++++++++++ .../storybook/__snapshots__/snapshot.test.js.snap | 13 +++++++++++++ 7 files changed, 49 insertions(+), 24 deletions(-) diff --git a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap index 139af44..4520f30 100644 --- a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap @@ -109,11 +109,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "@typescript-eslint/dot-notation": [ 2, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "@typescript-eslint/explicit-function-return-type": [ @@ -495,11 +491,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "dot-notation": [ 0, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "eqeqeq": [ diff --git a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap index 027dc20..d5460b4 100644 --- a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap @@ -46,11 +46,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "@typescript-eslint/dot-notation": [ 2, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "@typescript-eslint/explicit-function-return-type": [ @@ -432,11 +428,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "dot-notation": [ 0, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "eqeqeq": [ diff --git a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap index 94ff1fc..6d0e8ba 100644 --- a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap @@ -46,11 +46,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "@typescript-eslint/dot-notation": [ 2, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "@typescript-eslint/explicit-function-return-type": [ @@ -432,11 +428,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "dot-notation": [ 0, { - "allowIndexSignaturePropertyAccess": false, "allowKeywords": true, - "allowPattern": "", - "allowPrivateClassPropertyAccess": false, - "allowProtectedClassPropertyAccess": false, }, ], "eqeqeq": [ diff --git a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap index 3de24d4..ad7bcf9 100644 --- a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap @@ -254,6 +254,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "@typescript-eslint/no-empty-function": [ 2, + { + "allow": [], + }, ], "@typescript-eslint/no-empty-object-type": [ 2, @@ -2986,6 +2989,16 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "unicorn/expiring-todo-comments": [ 2, + { + "allowWarningComments": true, + "ignore": [], + "ignoreDatesOnPullRequests": true, + "terms": [ + "todo", + "fixme", + "xxx", + ], + }, ], "unicorn/explicit-length-check": [ 2, diff --git a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap index 65d7e46..bbb0de8 100644 --- a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap @@ -2082,6 +2082,16 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "unicorn/expiring-todo-comments": [ 2, + { + "allowWarningComments": true, + "ignore": [], + "ignoreDatesOnPullRequests": true, + "terms": [ + "todo", + "fixme", + "xxx", + ], + }, ], "unicorn/explicit-length-check": [ 2, diff --git a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap index 25a1b36..aafe581 100644 --- a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap @@ -191,6 +191,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "@typescript-eslint/no-empty-function": [ 2, + { + "allow": [], + }, ], "@typescript-eslint/no-empty-object-type": [ 2, @@ -2923,6 +2926,16 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Configuration s ], "unicorn/expiring-todo-comments": [ 2, + { + "allowWarningComments": true, + "ignore": [], + "ignoreDatesOnPullRequests": true, + "terms": [ + "todo", + "fixme", + "xxx", + ], + }, ], "unicorn/explicit-length-check": [ 2, diff --git a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap index ec5795d..8225bb3 100644 --- a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap @@ -191,6 +191,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "@typescript-eslint/no-empty-function": [ 2, + { + "allow": [], + }, ], "@typescript-eslint/no-empty-object-type": [ 2, @@ -2716,6 +2719,16 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat ], "unicorn/expiring-todo-comments": [ 2, + { + "allowWarningComments": true, + "ignore": [], + "ignoreDatesOnPullRequests": true, + "terms": [ + "todo", + "fixme", + "xxx", + ], + }, ], "unicorn/explicit-length-check": [ 2,