From 0fef2e307952356217fc1bbea966ed32b82f6593 Mon Sep 17 00:00:00 2001 From: rubiesonthesky <2591240+rubiesonthesky@users.noreply.github.com> Date: Mon, 17 Jul 2023 21:31:31 +0300 Subject: [PATCH 01/22] chore: use workerIdleMemoryLimit in jest tests (#7249) --- jest.config.base.js | 1 + packages/eslint-plugin/package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jest.config.base.js b/jest.config.base.js index 355b70884c96..4f2c5c124246 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -36,4 +36,5 @@ module.exports = { }, ], }, + workerIdleMemoryLimit: '300MB', }; diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 5392896ccbd8..d0d783e06146 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -51,7 +51,7 @@ "generate:breaking-changes": "yarn tsx tools/generate-breaking-changes.mts", "generate:configs": "yarn tsx tools/generate-configs.ts", "lint": "nx lint", - "test": "jest --coverage", + "test": "jest --coverage --logHeapUsage", "test-single": "jest --no-coverage", "typecheck": "tsc -p tsconfig.json --noEmit" }, From b62affe8ddac7c0af22bf74f22503d0cda92f4c0 Mon Sep 17 00:00:00 2001 From: auvred <61150013+auvred@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:13:07 +0300 Subject: [PATCH 02/22] fix(eslint-plugin): [prefer-nullish-coalescing] handle case when type of left side is null or undefined (#7225) --- .../src/rules/prefer-nullish-coalescing.ts | 2 + .../rules/prefer-nullish-coalescing.test.ts | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/packages/eslint-plugin/src/rules/prefer-nullish-coalescing.ts b/packages/eslint-plugin/src/rules/prefer-nullish-coalescing.ts index 99bc76429d21..f9a953f501cf 100644 --- a/packages/eslint-plugin/src/rules/prefer-nullish-coalescing.ts +++ b/packages/eslint-plugin/src/rules/prefer-nullish-coalescing.ts @@ -310,6 +310,8 @@ export default util.createRule({ .filter((flag): flag is number => flag !== undefined) .reduce((previous, flag) => previous | flag, 0); if ( + type.flags !== ts.TypeFlags.Null && + type.flags !== ts.TypeFlags.Undefined && (type as ts.UnionOrIntersectionType).types.some(t => tsutils.isTypeFlagSet(t, ignorableFlags), ) diff --git a/packages/eslint-plugin/tests/rules/prefer-nullish-coalescing.test.ts b/packages/eslint-plugin/tests/rules/prefer-nullish-coalescing.test.ts index 022eb5cdb8bc..9ba8d2dd34f2 100644 --- a/packages/eslint-plugin/tests/rules/prefer-nullish-coalescing.test.ts +++ b/packages/eslint-plugin/tests/rules/prefer-nullish-coalescing.test.ts @@ -1208,5 +1208,47 @@ x || y; }, ], }, + { + code: ` +declare const x: null; +x || y; + `, + errors: [ + { + messageId: 'preferNullishOverOr', + }, + ], + }, + { + code: ` +const x = undefined; +x || y; + `, + errors: [ + { + messageId: 'preferNullishOverOr', + }, + ], + }, + { + code: ` +null || y; + `, + errors: [ + { + messageId: 'preferNullishOverOr', + }, + ], + }, + { + code: ` +undefined || y; + `, + errors: [ + { + messageId: 'preferNullishOverOr', + }, + ], + }, ], }); From b3e0e7571f1abb5dae347d3701844324232b1431 Mon Sep 17 00:00:00 2001 From: Melandra Date: Mon, 17 Jul 2023 21:13:37 +0200 Subject: [PATCH 03/22] fix(eslint-plugin): [no-unsafe-enum-comparison] exempt bit shift operators (#7074) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: exempt bit shift operators * Add test for other bit shift operator * fix: extend regex to replace if statement * fix: use more precise regex --------- Co-authored-by: Josh Goldberg ✨ --- .../src/rules/no-unsafe-enum-comparison.ts | 2 +- .../tests/rules/no-unsafe-enum-comparison.test.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/no-unsafe-enum-comparison.ts b/packages/eslint-plugin/src/rules/no-unsafe-enum-comparison.ts index 0a068b577e70..888924e3bc88 100644 --- a/packages/eslint-plugin/src/rules/no-unsafe-enum-comparison.ts +++ b/packages/eslint-plugin/src/rules/no-unsafe-enum-comparison.ts @@ -63,7 +63,7 @@ export default util.createRule({ } return { - 'BinaryExpression[operator=/=|<|>/]'( + 'BinaryExpression[operator=/^[<>!=]?={0,2}$/]'( node: TSESTree.BinaryExpression, ): void { const left = getTypeFromNode(node.left); diff --git a/packages/eslint-plugin/tests/rules/no-unsafe-enum-comparison.test.ts b/packages/eslint-plugin/tests/rules/no-unsafe-enum-comparison.test.ts index adb3630354ea..c31b742160ce 100644 --- a/packages/eslint-plugin/tests/rules/no-unsafe-enum-comparison.test.ts +++ b/packages/eslint-plugin/tests/rules/no-unsafe-enum-comparison.test.ts @@ -292,6 +292,20 @@ ruleTester.run('strict-enums-comparison', rule, { num === someFunction; mixed === someFunction; `, + ` + enum Fruit { + Apple, + } + + const bitShift = 1 << Fruit.Apple; + `, + ` + enum Fruit { + Apple, + } + + const bitShift = 1 >> Fruit.Apple; + `, ], invalid: [ { From 79b177a16c0b486c25de03515c71a10b49c5c551 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 15:15:10 -0400 Subject: [PATCH 04/22] chore(deps): update dependency @types/marked to v5.0.1 (#7254) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 153 +++++------------------------------------------------- 1 file changed, 13 insertions(+), 140 deletions(-) diff --git a/yarn.lock b/yarn.lock index 23d1d8d5d126..2aa1ccadd9ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2907,13 +2907,6 @@ read-package-json-fast "^3.0.0" which "^3.0.0" -"@nrwl/devkit@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-16.5.1.tgz#43985cc1105e85afd8323586477c4a0d1b2eeee3" - integrity sha512-NB+DE/+AFJ7lKH/WBFyatJEhcZGj25F24ncDkwjZ6MzEiSOGOJS0LaV/R+VUsmS5EHTPXYOpn3zHWWAcJhyOmA== - dependencies: - "@nx/devkit" "16.5.1" - "@nrwl/devkit@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-16.5.2.tgz#eedcf4e546e2ebd3d01babcf5c97bc2b6bf08408" @@ -2949,13 +2942,6 @@ dependencies: nx-cloud "16.1.0" -"@nrwl/tao@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-16.5.1.tgz#e6e6b1ab73238497d4d9f014b30af18722e73503" - integrity sha512-x+gi/fKdM6uQNIti9exFlm3V5LBP3Y8vOEziO42HdOigyrXa0S0HD2WMpccmp6PclYKhwEDUjKJ39xh5sdh4Ig== - dependencies: - nx "16.5.1" - "@nrwl/tao@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-16.5.2.tgz#6b46b880e36ff0af4cceaf2409fd2055bf2cf2b1" @@ -2970,19 +2956,7 @@ dependencies: "@nx/workspace" "16.5.2" -"@nx/devkit@16.5.1", "@nx/devkit@>=16.1.3 < 17": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-16.5.1.tgz#1d6a27895a7c85edebe0ba31e0a394839ad5fdd2" - integrity sha512-T1acZrVVmJw/sJ4PIGidCBYBiBqlg/jT9e8nIGXLSDS20xcLvfo4zBQf8UZLrmHglnwwpDpOWuVJCp2rYA5aDg== - dependencies: - "@nrwl/devkit" "16.5.1" - ejs "^3.1.7" - ignore "^5.0.4" - semver "7.5.3" - tmp "~0.2.1" - tslib "^2.3.0" - -"@nx/devkit@16.5.2": +"@nx/devkit@16.5.2", "@nx/devkit@>=16.1.3 < 17": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-16.5.2.tgz#0a30fc4e3beeea7d7bf16a0496d1ff3c5fa05299" integrity sha512-QDOQeFzVhQCA65g+2RfoGKZBUnCb151+F7/PvwRESEM+jybXHoXwR9PSE3ClnnmO/d0LUKB2ohU3Z9WQrQDALQ== @@ -3056,101 +3030,51 @@ tmp "~0.2.1" tslib "^2.3.0" -"@nx/nx-darwin-arm64@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-16.5.1.tgz#87111664de492e5ae270ef2adc74553e03d77341" - integrity sha512-q98TFI4B/9N9PmKUr1jcbtD4yAFs1HfYd9jUXXTQOlfO9SbDjnrYJgZ4Fp9rMNfrBhgIQ4x1qx0AukZccKmH9Q== - "@nx/nx-darwin-arm64@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-16.5.2.tgz#0efcc62881eddd20e5bb8f881e6c8cc082c864f8" integrity sha512-myiNbDJLhhVHRLo6z3TeiaUeYTWdvBR3RdHQq4szTgb82Bnn8ruzteRGGJwKZd551YlttRcieBysxzUzHkmVBg== -"@nx/nx-darwin-x64@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-16.5.1.tgz#05c34ce8f8f23eeae0529d3c1022ee3e95a608a1" - integrity sha512-j9HmL1l8k7EVJ3eOM5y8COF93gqrydpxCDoz23ZEtsY+JHY77VAiRQsmqBgEx9GGA2dXi9VEdS67B0+1vKariw== - "@nx/nx-darwin-x64@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-16.5.2.tgz#6b03c1f4569411db7f8f90df90c820b083bde65f" integrity sha512-m354qmKrv7a5eD9Qv8bGEmrLCBEyCS6/y0PyOR32Dmi7qwlgHsQ4FfVkOnlWefC5ednhFLJQT6yxwhg8cFGDxw== -"@nx/nx-freebsd-x64@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-16.5.1.tgz#b4303ac5066f5c8ced7768097d6c85e8055c7d3a" - integrity sha512-CXSPT01aVS869tvCCF2tZ7LnCa8l41wJ3mTVtWBkjmRde68E5Up093hklRMyXb3kfiDYlfIKWGwrV4r0eH6x1A== - "@nx/nx-freebsd-x64@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-16.5.2.tgz#931e8be5c70d87b87f17d8faf0b9089383df0505" integrity sha512-qrR9yxcC2BLnw9JulecILmyp6Jco9unHHzQcfhLZTpw5c1PNHmZzHwJ3i3iNEf1o2kXEIa+SlOCis9ndvNQQVA== -"@nx/nx-linux-arm-gnueabihf@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-16.5.1.tgz#4dde9e8c79da9c5a213b6938dff74f65dd79c157" - integrity sha512-BhrumqJSZCWFfLFUKl4CAUwR0Y0G2H5EfFVGKivVecEQbb+INAek1aa6c89evg2/OvetQYsJ+51QknskwqvLsA== - "@nx/nx-linux-arm-gnueabihf@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-16.5.2.tgz#d9d865f99ba1128f6aa5b6bf0887bb743590eeb6" integrity sha512-+I1Oj54caDymMsQuRu/l4ULS4RVvwDUM1nXey5JhWulDOUF//09Ckz03Q9p0NCnvBvQd3SyE65++PMfZrrurbA== -"@nx/nx-linux-arm64-gnu@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-16.5.1.tgz#43dcdbd9b39fa91923ab949d161aa25c650f56d9" - integrity sha512-x7MsSG0W+X43WVv7JhiSq2eKvH2suNKdlUHEG09Yt0vm3z0bhtym1UCMUg3IUAK7jy9hhLeDaFVFkC6zo+H/XQ== - "@nx/nx-linux-arm64-gnu@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-16.5.2.tgz#c442df598108776cce297561555520ffbce251ea" integrity sha512-4Q4jpgtNBTb4lMegFKS9hkzS/WttH3MxkgM//8qs1zhgUz/AsuXTitBo71E3xCnQl/i38p0eIpiKXXwBJeHgDw== -"@nx/nx-linux-arm64-musl@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-16.5.1.tgz#fc33960cecb0064c3dd3330f393e3a38be8a71b7" - integrity sha512-J+/v/mFjOm74I0PNtH5Ka+fDd+/dWbKhpcZ2R1/6b9agzZk+Ff/SrwJcSYFXXWKbPX+uQ4RcJoytT06Zs3s0ow== - "@nx/nx-linux-arm64-musl@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-16.5.2.tgz#e07c0031f60372e726d2272fac5f3743c4d9591c" integrity sha512-VLukS/pfenr/Qw/EUn3GPAREDVXuSmfKeYBQKkALXEK6cRVQhXFXMLGHgMemCYbpoUJyFtFEO94PKV7VU7wZPg== -"@nx/nx-linux-x64-gnu@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-16.5.1.tgz#2b2ffbb80e29455b6900ec20d4249055590dc58f" - integrity sha512-igooWJ5YxQ94Zft7IqgL+Lw0qHaY15Btw4gfK756g/YTYLZEt4tTvR1y6RnK/wdpE3sa68bFTLVBNCGTyiTiDQ== - "@nx/nx-linux-x64-gnu@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-16.5.2.tgz#0748beae6944b42276f4705bc41b9e06cefb1d55" integrity sha512-TAGmY+MXbNl/aGg2KMvtg53rbmX0XHwnJRQtjhjqjAyvaOfFWI/WOqTU7xf/QCkXBUIK0D9xHWpALfA/fZFCBA== -"@nx/nx-linux-x64-musl@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-16.5.1.tgz#955b2eae615ee6cf1954e24d42c205b1de8772bf" - integrity sha512-zF/exnPqFYbrLAduGhTmZ7zNEyADid2bzNQiIjJkh8Y6NpDwrQIwVIyvIxqynsjMrIs51kBH+8TUjKjj2Jgf5A== - "@nx/nx-linux-x64-musl@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-16.5.2.tgz#7b150081e21ba7aa0da511f80aae1c5d230d1664" integrity sha512-YyWmqcNbZgU76+LThAt+0arx9C2ewfI5UUI6kooZRniAd408EA2xl5fx2AWLLrISGH4nTb5p20HGmeWfGqjHPA== -"@nx/nx-win32-arm64-msvc@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-16.5.1.tgz#1dc4a7e3662eb757214c46d8db432f61e43a3dd9" - integrity sha512-qtqiLS9Y9TYyAbbpq58kRoOroko4ZXg5oWVqIWFHoxc5bGPweQSJCROEqd1AOl2ZDC6BxfuVHfhDDop1kK05WA== - "@nx/nx-win32-arm64-msvc@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-16.5.2.tgz#f06f74b876c92d6b12cd351baff016b18bfd9a73" integrity sha512-pl7LluCc/57kl9VZ1ES27ym16ps4zgfCIeJiF8Ne8C6ALgt7C3PEG6417sFqbQw5J7NhsZ1aTb3eJ9fa9hurhA== -"@nx/nx-win32-x64-msvc@16.5.1": - version "16.5.1" - resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-16.5.1.tgz#d2f4a1b2bf675bceb6fb16174b836438293f9dca" - integrity sha512-kUJBLakK7iyA9WfsGGQBVennA4jwf5XIgm0lu35oMOphtZIluvzItMt0EYBmylEROpmpEIhHq0P6J9FA+WH0Rg== - "@nx/nx-win32-x64-msvc@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-16.5.2.tgz#6ae96b6a90924daba81350863da4f9d12884fe8e" @@ -4058,16 +3982,16 @@ integrity sha512-km+Vyn3BYm5ytMO13k9KTp27O75rbQ0NFw+U//g+PX7VZyjCioXaRFisqSIJRECljcTv73G3i6BpglNGHgUQ5A== "@types/marked@*", "@types/marked@^5.0.0": - version "5.0.0" - resolved "https://registry.yarnpkg.com/@types/marked/-/marked-5.0.0.tgz#3235b9133054e6586eedabfb77aa7d4a4bafbfcf" - integrity sha512-YcZe50jhltsCq7rc9MNZC/4QB/OnA2Pd6hrOSTOFajtabN+38slqgDDCeE/0F83SjkKBQcsZUj7VLWR0H5cKRA== + version "5.0.1" + resolved "https://registry.yarnpkg.com/@types/marked/-/marked-5.0.1.tgz#15acd796d722b91bf00738c8c8539aaf5034f0c6" + integrity sha512-Y3pAUzHKh605fN6fvASsz5FDSWbZcs/65Q6xYRmnIP9ZIYz27T4IOmXfH9gWJV1dpi7f1e7z7nBGUTx/a0ptpA== "@types/mdast@^3.0.0": - version "3.0.11" - resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.11.tgz#dc130f7e7d9306124286f6d6cee40cf4d14a3dc0" - integrity sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw== + version "3.0.12" + resolved "https://registry.yarnpkg.com/@types/mdast/-/mdast-3.0.12.tgz#beeb511b977c875a5b0cc92eab6fcac2f0895514" + integrity sha512-DT+iNIRNX884cx0/Q1ja7NyUPpZuv0KPyL5rGNxm1WC1OtHstl7n4Jb7nk+xacNShQMbczJjt8uFzznpp6kYBg== dependencies: - "@types/unist" "*" + "@types/unist" "^2" "@types/mime@^1": version "1.3.2" @@ -4254,10 +4178,10 @@ resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756" integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg== -"@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2", "@types/unist@^2.0.3": - version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d" - integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ== +"@types/unist@*", "@types/unist@^2", "@types/unist@^2.0.0", "@types/unist@^2.0.2", "@types/unist@^2.0.3": + version "2.0.7" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.7.tgz#5b06ad6894b236a1d2bd6b2f07850ca5c59cf4d6" + integrity sha512-cputDpIbFgLUaGQn6Vqg3/YsJwxUwHLO13v3i5ouxT4lat0khip9AEWxtERujXV9wxIB1EyF97BSJFt6vpdI8g== "@types/ws@^8.5.1": version "8.5.3" @@ -11313,58 +11237,7 @@ nx-cloud@16.1.0: tar "6.1.11" yargs-parser ">=21.1.1" -nx@16.5.1, "nx@>=16.1.3 < 17": - version "16.5.1" - resolved "https://registry.yarnpkg.com/nx/-/nx-16.5.1.tgz#fc0d19090d8faae5f431f9fec199adf95881150c" - integrity sha512-I3hJRE4hG7JWAtncWwDEO3GVeGPpN0TtM8xH5ArZXyDuVeTth/i3TtJzdDzqXO1HHtIoAQN0xeq4n9cLuMil5g== - dependencies: - "@nrwl/tao" "16.5.1" - "@parcel/watcher" "2.0.4" - "@yarnpkg/lockfile" "^1.1.0" - "@yarnpkg/parsers" "3.0.0-rc.46" - "@zkochan/js-yaml" "0.0.6" - axios "^1.0.0" - chalk "^4.1.0" - cli-cursor "3.1.0" - cli-spinners "2.6.1" - cliui "^7.0.2" - dotenv "~10.0.0" - enquirer "~2.3.6" - fast-glob "3.2.7" - figures "3.2.0" - flat "^5.0.2" - fs-extra "^11.1.0" - glob "7.1.4" - ignore "^5.0.4" - js-yaml "4.1.0" - jsonc-parser "3.2.0" - lines-and-columns "~2.0.3" - minimatch "3.0.5" - npm-run-path "^4.0.1" - open "^8.4.0" - semver "7.5.3" - string-width "^4.2.3" - strong-log-transformer "^2.1.0" - tar-stream "~2.2.0" - tmp "~0.2.1" - tsconfig-paths "^4.1.2" - tslib "^2.3.0" - v8-compile-cache "2.3.0" - yargs "^17.6.2" - yargs-parser "21.1.1" - optionalDependencies: - "@nx/nx-darwin-arm64" "16.5.1" - "@nx/nx-darwin-x64" "16.5.1" - "@nx/nx-freebsd-x64" "16.5.1" - "@nx/nx-linux-arm-gnueabihf" "16.5.1" - "@nx/nx-linux-arm64-gnu" "16.5.1" - "@nx/nx-linux-arm64-musl" "16.5.1" - "@nx/nx-linux-x64-gnu" "16.5.1" - "@nx/nx-linux-x64-musl" "16.5.1" - "@nx/nx-win32-arm64-msvc" "16.5.1" - "@nx/nx-win32-x64-msvc" "16.5.1" - -nx@16.5.2: +nx@16.5.2, "nx@>=16.1.3 < 17": version "16.5.2" resolved "https://registry.yarnpkg.com/nx/-/nx-16.5.2.tgz#a271513abe73324fdf2924277d5f273d807a6f0e" integrity sha512-3XAkVBhXuoFgD7r0lASOh2589XSmBUjioevZb13lDjKDN/FHFWedwMZWtmmbzxBGO3EAWjl+3owBS1RIPm1UHw== From 84285025bbc0636aacdebd52a892cbf3c43c8deb Mon Sep 17 00:00:00 2001 From: Kemil Beltre <20250204+kemilbeltre@users.noreply.github.com> Date: Mon, 17 Jul 2023 23:28:50 +0200 Subject: [PATCH 05/22] docs: move header section to main (#7122) * fix: move header section to main * refactor: change the header tag to div --- packages/website/src/pages/index.tsx | 45 +++++++++++++++------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/packages/website/src/pages/index.tsx b/packages/website/src/pages/index.tsx index be25b707ba49..4b1623c7c756 100644 --- a/packages/website/src/pages/index.tsx +++ b/packages/website/src/pages/index.tsx @@ -134,28 +134,33 @@ function Home(): React.JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( -
-
- -

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Get Started - - - Playground - +
+
+
+ Hero Logo +

{siteConfig.title}

+

{siteConfig.tagline}

+
+ + Get Started + + + Playground + +
-
-
+ {features.map((props, idx) => (
Date: Tue, 18 Jul 2023 13:49:13 +0930 Subject: [PATCH 06/22] chore(deps): update dependency webpack to v5.88.2 (#7206) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2aa1ccadd9ab..23a30e4838ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15052,9 +15052,9 @@ webpack-sources@^3.2.2, webpack-sources@^3.2.3: integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== webpack@^5.73.0, webpack@^5.88.1: - version "5.88.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.88.1.tgz#21eba01e81bd5edff1968aea726e2fbfd557d3f8" - integrity sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ== + version "5.88.2" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.88.2.tgz#f62b4b842f1c6ff580f3fcb2ed4f0b579f4c210e" + integrity sha512-JmcgNZ1iKj+aiR0OvTYtWQqJwq37Pf683dY9bVORwVbUrDhLhdn/PlO2sHsFHPkj7sHNQF3JwaAkp49V+Sq1tQ== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^1.0.0" From d207b59e24acb9377a7a55104d082bd91fbb664e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Goldberg=20=E2=9C=A8?= Date: Tue, 18 Jul 2023 06:45:03 -0400 Subject: [PATCH 07/22] fix(eslint-plugin): [member-ordering] account for repeated names (#6864) Co-authored-by: Brad Zacher --- .../src/rules/member-ordering.ts | 4 ++ .../tests/rules/member-ordering.test.ts | 47 +++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/packages/eslint-plugin/src/rules/member-ordering.ts b/packages/eslint-plugin/src/rules/member-ordering.ts index 29b748e88cfe..f7ad60c58feb 100644 --- a/packages/eslint-plugin/src/rules/member-ordering.ts +++ b/packages/eslint-plugin/src/rules/member-ordering.ts @@ -800,6 +800,10 @@ export default util.createRule({ previousName: string, order: AlphabeticalOrder, ): boolean { + if (name === previousName) { + return false; + } + switch (order) { case 'alphabetically': return name < previousName; diff --git a/packages/eslint-plugin/tests/rules/member-ordering.test.ts b/packages/eslint-plugin/tests/rules/member-ordering.test.ts index 9e8dda8b778b..b947d8a5a1e1 100644 --- a/packages/eslint-plugin/tests/rules/member-ordering.test.ts +++ b/packages/eslint-plugin/tests/rules/member-ordering.test.ts @@ -2008,6 +2008,53 @@ interface Foo { }, ], }, + // https://github.com/typescript-eslint/typescript-eslint/issues/6812 + { + code: ` +class Foo { + #bar: string; + + get bar(): string { + return this.#bar; + } + + set bar(value: string) { + this.#bar = value; + } +} + `, + options: [ + { + default: { + memberTypes: [['get', 'set']], + order: 'alphabetically', + }, + }, + ], + }, + { + code: ` +class Foo { + #bar: string; + + get bar(): string { + return this.#bar; + } + + set bar(value: string) { + this.#bar = value; + } +} + `, + options: [ + { + default: { + memberTypes: [['get', 'set']], + order: 'natural', + }, + }, + ], + }, ], invalid: [ { From 38101b9e5bcfe55794bc0583eaec76f9174c4271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Goldberg=20=E2=9C=A8?= Date: Tue, 18 Jul 2023 06:45:32 -0400 Subject: [PATCH 08/22] docs: add Local Linking guide (#7104) Co-authored-by: Brad Zacher --- .../local-development/Local_Linking.mdx | 97 +++++++++++++++++++ packages/website/sidebars/sidebar.base.js | 11 ++- 2 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 docs/contributing/local-development/Local_Linking.mdx diff --git a/docs/contributing/local-development/Local_Linking.mdx b/docs/contributing/local-development/Local_Linking.mdx new file mode 100644 index 000000000000..00908758485c --- /dev/null +++ b/docs/contributing/local-development/Local_Linking.mdx @@ -0,0 +1,97 @@ +--- +id: local-linking +title: Local Linking +--- + +It can sometimes be useful to try out your local `typescript-eslint` repository's changes in another local ("downstream") repository. +The general strategy to do so is: + +1. [Global linking](#global-linking): Use your package manager's global link command to make `@typescript-eslint/*` packages available as global symlinks. +2. [Repository linking](#repository-linking): Use your package manager's link command to reference those global symlinks in the local downstream repository. + +## Global Linking + +To make all `@typescript-eslint/*` packages available globally, run this command from your `typescript-eslint` repository root: + +```shell +for package in ./packages/*; do + cd $package + # Insert your package manager's global link command here + cd ../.. +done +``` + +The command to put instead of that `#` comment, depends on the local downstream repository's package manager: + +- [npm](https://docs.npmjs.com/cli/v9/commands/npm-link 'npm link docs'): `npm link` +- [pnpm](https://pnpm.io/cli/link 'pnpm link docs'): `pnpm link --global` +- [Yarn v1 / classic](https://classic.yarnpkg.com/lang/en/docs/cli/link/ 'Yarn v1 / classic docs'): `yarn link` +- [Yarn v2 / v3 / berry](https://yarnpkg.com/cli/link 'Yarn v2 / v3 / berry docs'): _skip this step altogether_ + +## Repository Linking + +Now that the `@typescript-eslint/*` packages are available locally, you can link to them in the local downstream repository. +Run that repository's package manager's link command for any `@typescript-eslint/*` packages that repository depends on: + +- npm: `npm link @typescript-eslint/eslint-plugin @typescript-eslint/parser` +- pnpm: `pnpm link @typescript-eslint/eslint-plugin @typescript-eslint/parser --global` +- Yarn v1 / classic: `yarn link @typescript-eslint/eslint-plugin @typescript-eslint/parser` +- Yarn v2 / v3 / berry: `yarn link /path/to/your/typescript-eslint/packages/eslint-plugin /path/to/your/typescript-eslint/packages/parser` + - This will add a `resolutions` entry for each package in the local downstream repository's `package.json` + +Now, you should be able to run ESLint in the local downstream repository as you normally would, and have it reference the local typescript-eslint package. + +:::tip +To check that the local package is being used, consider adding a `console.log("Hello, world!");` to a file such as `./packages/eslint-plugin/dist/index.js` and making sure that log appears when linting the local downstream repository. +::: + +## Troubleshooting + +### Packages Not Found (`Cannot find module`) + +If a local `@typescript-eslint/*` package has a dependency not present in the published npm version, linting in the local downstream repository may see a different error: + +```plaintext +Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.js': Cannot find module 'ts-api-utils' +Require stack: +- /repos/typescript-eslint/packages/typescript-estree/dist/convert-comments.js +``` + +In this case, you can manually install any missing packages in the local downstream repository as dev dependencies (`--save-dev`). + +```shell +yarn add ts-api-utils -D +``` + +### Yarn Link Failures (`Cannot link ... conflicts with parent dependency`) + +Yarn v2 / v3 / berry can be strict about conflicting dependencies. +You may see errors about conflicting versions when running `yarn` to install in the local downstream repository: + +```plaintext +$ yarn +➤ YN0000: ┌ Resolution step +➤ YN0000: └ Completed +➤ YN0000: ┌ Fetch step +➤ YN0000: └ Completed +➤ YN0000: ┌ Link step +➤ YN0071: │ Cannot link @typescript-eslint/parser into eslint-plugin-import@npm:2.27.5 [6d590] dependency debug@npm:4.3.4 [531b6] conflicts with parent dependency debug@npm:3.2.7 [65bed] +➤ YN0071: │ Cannot link @typescript-eslint/parser into eslint-module-utils@npm:2.8.0 [0b7fa] dependency debug@npm:4.3.4 [531b6] conflicts with parent dependency debug@npm:3.2.7 [65bed] +➤ YN0000: └ Completed in 0s 370ms +➤ YN0000: Failed with errors in 0s 643ms +``` + +To resolve this, you can add a manual entry to the `resolutions` field in the local downstream repository's `package.json` for each failing package. +Use the largest major version referenced in the Yarn errors. + +```json +{ + "resolutions": { + "@typescript-eslint/eslint-plugin": "portal:/path/to/your/typescript-eslint/packages/eslint-plugin", + "@typescript-eslint/parser": "portal:/path/to/your/typescript-eslint/packages/parser", + "debug": "4" + } +} +``` + +Re-running `yarn` should succeed. diff --git a/packages/website/sidebars/sidebar.base.js b/packages/website/sidebars/sidebar.base.js index d414d4803ba8..f9d408bbb43f 100644 --- a/packages/website/sidebars/sidebar.base.js +++ b/packages/website/sidebars/sidebar.base.js @@ -84,7 +84,16 @@ module.exports = { items: [ 'contributing/discussions', 'contributing/issues', - 'contributing/local-development', + { + collapsible: false, + items: ['contributing/local-development/local-linking'], + label: 'Local Development', + link: { + id: 'contributing/local-development', + type: 'doc', + }, + type: 'category', + }, 'contributing/pull-requests', ], label: 'Contributing', From f81314731cccb779423e2580a805eff3efff8564 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Tue, 18 Jul 2023 23:00:50 +0930 Subject: [PATCH 09/22] feat(eslint-plugin): sync getFunctionHeadLoc implementation with upstream (#7260) --- .../src/util/getFunctionHeadLoc.ts | 230 ++++++++++++++---- .../explicit-function-return-type.test.ts | 170 ++++++------- .../explicit-module-boundary-types.test.ts | 148 +++++------ 3 files changed, 340 insertions(+), 208 deletions(-) diff --git a/packages/eslint-plugin/src/util/getFunctionHeadLoc.ts b/packages/eslint-plugin/src/util/getFunctionHeadLoc.ts index ddc004d0397d..a8f6bc40afbd 100644 --- a/packages/eslint-plugin/src/util/getFunctionHeadLoc.ts +++ b/packages/eslint-plugin/src/util/getFunctionHeadLoc.ts @@ -1,5 +1,9 @@ +// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L1668-L1787 + import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; -import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '@typescript-eslint/utils'; +import { AST_NODE_TYPES, ESLintUtils } from '@typescript-eslint/utils'; + +import { isArrowToken, isOpeningParenToken } from './astUtils'; type FunctionNode = | TSESTree.ArrowFunctionExpression @@ -7,65 +11,193 @@ type FunctionNode = | TSESTree.FunctionExpression; /** - * Creates a report location for the given function. - * The location only encompasses the "start" of the function, and not the body - * - * eg. - * - * ``` - * function foo(args) {} - * ^^^^^^^^^^^^^^^^^^ - * - * get y(args) {} - * ^^^^^^^^^^^ - * - * const x = (args) => {} - * ^^^^^^^^^ - * ``` + * Gets the `(` token of the given function node. + * @param node The function node to get. + * @param sourceCode The source code object to get tokens. + * @returns `(` token. */ -export function getFunctionHeadLoc( +function getOpeningParenOfParams( node: FunctionNode, sourceCode: TSESLint.SourceCode, -): TSESTree.SourceLocation { - function getLocStart(): TSESTree.Position { - if (node.parent.type === AST_NODE_TYPES.MethodDefinition) { - // return the start location for class method - - if (node.parent.decorators && node.parent.decorators.length > 0) { - // exclude decorators - return sourceCode.getTokenAfter( - node.parent.decorators[node.parent.decorators.length - 1], - )!.loc.start; - } +): TSESTree.Token { + // If the node is an arrow function and doesn't have parens, this returns the identifier of the first param. + if ( + node.type === AST_NODE_TYPES.ArrowFunctionExpression && + node.params.length === 1 + ) { + const argToken = ESLintUtils.nullThrows( + sourceCode.getFirstToken(node.params[0]), + ESLintUtils.NullThrowsReasons.MissingToken('parameter', 'arrow function'), + ); + const maybeParenToken = sourceCode.getTokenBefore(argToken); - return node.parent.loc.start; - } + return maybeParenToken && isOpeningParenToken(maybeParenToken) + ? maybeParenToken + : argToken; + } - if (node.parent.type === AST_NODE_TYPES.Property && node.parent.method) { - // return the start location for object method shorthand - return node.parent.loc.start; - } + // Otherwise, returns paren. + return node.id != null + ? ESLintUtils.nullThrows( + sourceCode.getTokenAfter(node.id, isOpeningParenToken), + ESLintUtils.NullThrowsReasons.MissingToken('id', 'function'), + ) + : ESLintUtils.nullThrows( + sourceCode.getFirstToken(node, isOpeningParenToken), + ESLintUtils.NullThrowsReasons.MissingToken( + 'opening parenthesis', + 'function', + ), + ); +} - // return the start location for a regular function - return node.loc.start; - } +/** + * Gets the location of the given function node for reporting. + * + * - `function foo() {}` + * ^^^^^^^^^^^^ + * - `(function foo() {})` + * ^^^^^^^^^^^^ + * - `(function() {})` + * ^^^^^^^^ + * - `function* foo() {}` + * ^^^^^^^^^^^^^ + * - `(function* foo() {})` + * ^^^^^^^^^^^^^ + * - `(function*() {})` + * ^^^^^^^^^ + * - `() => {}` + * ^^ + * - `async () => {}` + * ^^ + * - `({ foo: function foo() {} })` + * ^^^^^^^^^^^^^^^^^ + * - `({ foo: function() {} })` + * ^^^^^^^^^^^^^ + * - `({ ['foo']: function() {} })` + * ^^^^^^^^^^^^^^^^^ + * - `({ [foo]: function() {} })` + * ^^^^^^^^^^^^^^^ + * - `({ foo() {} })` + * ^^^ + * - `({ foo: function* foo() {} })` + * ^^^^^^^^^^^^^^^^^^ + * - `({ foo: function*() {} })` + * ^^^^^^^^^^^^^^ + * - `({ ['foo']: function*() {} })` + * ^^^^^^^^^^^^^^^^^^ + * - `({ [foo]: function*() {} })` + * ^^^^^^^^^^^^^^^^ + * - `({ *foo() {} })` + * ^^^^ + * - `({ foo: async function foo() {} })` + * ^^^^^^^^^^^^^^^^^^^^^^^ + * - `({ foo: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^ + * - `({ ['foo']: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^^^^^ + * - `({ [foo]: async function() {} })` + * ^^^^^^^^^^^^^^^^^^^^^ + * - `({ async foo() {} })` + * ^^^^^^^^^ + * - `({ get foo() {} })` + * ^^^^^^^ + * - `({ set foo(a) {} })` + * ^^^^^^^ + * - `class A { constructor() {} }` + * ^^^^^^^^^^^ + * - `class A { foo() {} }` + * ^^^ + * - `class A { *foo() {} }` + * ^^^^ + * - `class A { async foo() {} }` + * ^^^^^^^^^ + * - `class A { ['foo']() {} }` + * ^^^^^^^ + * - `class A { *['foo']() {} }` + * ^^^^^^^^ + * - `class A { async ['foo']() {} }` + * ^^^^^^^^^^^^^ + * - `class A { [foo]() {} }` + * ^^^^^ + * - `class A { *[foo]() {} }` + * ^^^^^^ + * - `class A { async [foo]() {} }` + * ^^^^^^^^^^^ + * - `class A { get foo() {} }` + * ^^^^^^^ + * - `class A { set foo(a) {} }` + * ^^^^^^^ + * - `class A { static foo() {} }` + * ^^^^^^^^^^ + * - `class A { static *foo() {} }` + * ^^^^^^^^^^^ + * - `class A { static async foo() {} }` + * ^^^^^^^^^^^^^^^^ + * - `class A { static get foo() {} }` + * ^^^^^^^^^^^^^^ + * - `class A { static set foo(a) {} }` + * ^^^^^^^^^^^^^^ + * - `class A { foo = function() {} }` + * ^^^^^^^^^^^^^^ + * - `class A { static foo = function() {} }` + * ^^^^^^^^^^^^^^^^^^^^^ + * - `class A { foo = (a, b) => {} }` + * ^^^^^^ + * @param node The function node to get. + * @param sourceCode The source code object to get tokens. + * @returns The location of the function node for reporting. + */ +export function getFunctionHeadLoc( + node: FunctionNode, + sourceCode: TSESLint.SourceCode, +): TSESTree.SourceLocation { + const parent = node.parent; + let start = null; + let end = null; - function getLocEnd(): TSESTree.Position { - if (node.type === AST_NODE_TYPES.ArrowFunctionExpression) { - // find the end location for arrow function expression - return sourceCode.getTokenBefore( - node.body, - token => - token.type === AST_TOKEN_TYPES.Punctuator && token.value === '=>', - )!.loc.end; + if ( + parent.type === AST_NODE_TYPES.MethodDefinition || + parent.type === AST_NODE_TYPES.PropertyDefinition + ) { + // the decorator's range is included within the member + // however it's usually irrelevant to the member itself - so we don't want + // to highlight it ever. + if (parent.decorators.length > 0) { + const lastDecorator = parent.decorators[parent.decorators.length - 1]; + const firstTokenAfterDecorator = ESLintUtils.nullThrows( + sourceCode.getTokenAfter(lastDecorator), + ESLintUtils.NullThrowsReasons.MissingToken( + 'modifier or member name', + 'class member', + ), + ); + start = firstTokenAfterDecorator.loc.start; + } else { + start = parent.loc.start; } + end = getOpeningParenOfParams(node, sourceCode).loc.start; + } else if (parent.type === AST_NODE_TYPES.Property) { + start = parent.loc.start; + end = getOpeningParenOfParams(node, sourceCode).loc.start; + } else if (node.type === AST_NODE_TYPES.ArrowFunctionExpression) { + const arrowToken = ESLintUtils.nullThrows( + sourceCode.getTokenBefore(node.body, isArrowToken), + ESLintUtils.NullThrowsReasons.MissingToken( + 'arrow token', + 'arrow function', + ), + ); - // return the end location for a regular function - return sourceCode.getTokenBefore(node.body)!.loc.end; + start = arrowToken.loc.start; + end = arrowToken.loc.end; + } else { + start = node.loc.start; + end = getOpeningParenOfParams(node, sourceCode).loc.start; } return { - start: getLocStart(), - end: getLocEnd(), + start: Object.assign({}, start), + end: Object.assign({}, end), }; } diff --git a/packages/eslint-plugin/tests/rules/explicit-function-return-type.test.ts b/packages/eslint-plugin/tests/rules/explicit-function-return-type.test.ts index a17a27dec178..d65263a9c023 100644 --- a/packages/eslint-plugin/tests/rules/explicit-function-return-type.test.ts +++ b/packages/eslint-plugin/tests/rules/explicit-function-return-type.test.ts @@ -680,7 +680,7 @@ function test(a: number, b: number) { line: 2, endLine: 2, column: 1, - endColumn: 36, + endColumn: 14, }, ], }, @@ -696,7 +696,7 @@ function test() { line: 2, endLine: 2, column: 1, - endColumn: 16, + endColumn: 14, }, ], }, @@ -712,7 +712,7 @@ var fn = function () { line: 2, endLine: 2, column: 10, - endColumn: 21, + endColumn: 19, }, ], }, @@ -725,7 +725,7 @@ var arrowFn = () => 'test'; messageId: 'missingReturnType', line: 2, endLine: 2, - column: 15, + column: 18, endColumn: 20, }, ], @@ -751,30 +751,30 @@ class Test { { messageId: 'missingReturnType', line: 4, - endLine: 4, column: 3, - endColumn: 13, + endLine: 4, + endColumn: 11, }, { messageId: 'missingReturnType', line: 8, - endLine: 8, column: 3, - endColumn: 11, + endLine: 8, + endColumn: 9, }, { messageId: 'missingReturnType', line: 11, + column: 3, endLine: 11, - column: 11, - endColumn: 16, + endColumn: 11, }, { messageId: 'missingReturnType', line: 12, - endLine: 12, column: 3, - endColumn: 19, + endLine: 12, + endColumn: 17, }, ], }, @@ -791,7 +791,7 @@ function test() { line: 2, endLine: 2, column: 1, - endColumn: 16, + endColumn: 14, }, ], }, @@ -803,7 +803,7 @@ function test() { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 13, + column: 16, endColumn: 18, }, ], @@ -817,7 +817,7 @@ function test() { line: 1, endLine: 1, column: 13, - endColumn: 24, + endColumn: 22, }, ], }, @@ -829,7 +829,7 @@ function test() { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 16, + column: 19, endColumn: 21, }, ], @@ -843,7 +843,7 @@ function test() { line: 1, endLine: 1, column: 16, - endColumn: 27, + endColumn: 25, }, ], }, @@ -863,37 +863,37 @@ class Foo { { messageId: 'missingReturnType', line: 3, + column: 3, endLine: 3, - column: 14, - endColumn: 19, + endColumn: 14, }, { messageId: 'missingReturnType', line: 4, + column: 3, endLine: 4, - column: 14, - endColumn: 25, + endColumn: 23, }, { messageId: 'missingReturnType', line: 5, + column: 3, endLine: 5, - column: 14, - endColumn: 29, + endColumn: 27, }, { messageId: 'missingReturnType', line: 7, + column: 3, endLine: 7, - column: 14, - endColumn: 19, + endColumn: 14, }, { messageId: 'missingReturnType', line: 8, + column: 3, endLine: 8, - column: 14, - endColumn: 25, + endColumn: 23, }, ], }, @@ -905,7 +905,7 @@ class Foo { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 15, + column: 18, endColumn: 20, }, ], @@ -923,7 +923,7 @@ var funcExpr = function () { line: 2, endLine: 2, column: 16, - endColumn: 27, + endColumn: 25, }, ], }, @@ -936,7 +936,7 @@ var funcExpr = function () { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 12, + column: 15, endColumn: 17, }, ], @@ -954,8 +954,8 @@ const x = { messageId: 'missingReturnType', line: 4, endLine: 4, - column: 8, - endColumn: 13, + column: 3, + endColumn: 8, }, ], }, @@ -972,8 +972,8 @@ const x: Foo = { messageId: 'missingReturnType', line: 4, endLine: 4, - column: 8, - endColumn: 13, + column: 3, + endColumn: 8, }, ], }, @@ -985,7 +985,7 @@ const x: Foo = { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 7, + column: 10, endColumn: 12, }, ], @@ -999,7 +999,7 @@ const x: Foo = { line: 1, endLine: 1, column: 7, - endColumn: 18, + endColumn: 16, }, ], }, @@ -1015,7 +1015,7 @@ const x: Foo = { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1033,7 +1033,7 @@ const x: Foo = { line: 3, endLine: 3, column: 10, - endColumn: 21, + endColumn: 19, }, ], }, @@ -1049,7 +1049,7 @@ function fn() { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1067,7 +1067,7 @@ function fn() { line: 3, endLine: 3, column: 10, - endColumn: 21, + endColumn: 19, }, ], }, @@ -1093,7 +1093,7 @@ function FunctionDeclaration() { messageId: 'missingReturnType', line: 9, endLine: 9, - column: 11, + column: 14, endColumn: 16, }, ], @@ -1112,7 +1112,7 @@ function FunctionDeclaration() { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1136,36 +1136,36 @@ foo(() => ''); { messageId: 'missingReturnType', line: 3, + column: 8, endLine: 3, - column: 5, endColumn: 10, }, { messageId: 'missingReturnType', line: 4, + column: 8, endLine: 4, - column: 5, endColumn: 10, }, { messageId: 'missingReturnType', line: 5, + column: 8, endLine: 5, - column: 5, endColumn: 10, }, { messageId: 'missingReturnType', line: 6, + column: 8, endLine: 6, - column: 5, endColumn: 10, }, { messageId: 'missingReturnType', line: 7, + column: 8, endLine: 7, - column: 5, endColumn: 10, }, ], @@ -1192,7 +1192,7 @@ new Accumulator().accumulate(() => 1); messageId: 'missingReturnType', line: 10, endLine: 10, - column: 30, + column: 33, endColumn: 35, }, ], @@ -1209,7 +1209,7 @@ new Accumulator().accumulate(() => 1); messageId: 'missingReturnType', line: 1, endLine: 1, - column: 2, + column: 5, endColumn: 7, }, ], @@ -1242,23 +1242,23 @@ foo({ { messageId: 'missingReturnType', line: 4, - endLine: 4, column: 3, - endColumn: 9, + endLine: 4, + endColumn: 7, }, { messageId: 'missingReturnType', line: 9, + column: 3, endLine: 9, - column: 9, - endColumn: 20, + endColumn: 18, }, { messageId: 'missingReturnType', line: 14, + column: 3, endLine: 14, - column: 9, - endColumn: 14, + endColumn: 9, }, ], }, @@ -1278,7 +1278,7 @@ const x: HigherOrderType = () => arg1 => arg2 => 'foo'; messageId: 'missingReturnType', line: 3, endLine: 3, - column: 42, + column: 47, endColumn: 49, }, ], @@ -1299,21 +1299,21 @@ const x: HigherOrderType = () => arg1 => arg2 => 'foo'; messageId: 'missingReturnType', line: 3, endLine: 3, - column: 28, + column: 31, endColumn: 33, }, { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 34, + column: 39, endColumn: 41, }, { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 42, + column: 47, endColumn: 49, }, ], @@ -1333,14 +1333,14 @@ const func = (value: number) => ({ type: 'X', value } as Action); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 14, + column: 30, endColumn: 32, }, { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 14, + column: 30, endColumn: 32, }, ], @@ -1359,7 +1359,7 @@ const func = (value: number) => ({ type: 'X', value } as const); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 14, + column: 30, endColumn: 32, }, ], @@ -1374,7 +1374,7 @@ const func = (value: number) => ({ type: 'X', value } as const); messageId: 'missingReturnType', line: 1, endLine: 1, - column: 13, + column: 31, endColumn: 33, }, ], @@ -1391,7 +1391,7 @@ const func = (value: number) => ({ type: 'X', value } as const); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 21, + column: 39, endColumn: 41, }, ], @@ -1451,46 +1451,46 @@ const x = { `, errors: [ { - messageId: 'missingReturnType', line: 2, - endLine: 2, column: 1, - endColumn: 16, + messageId: 'missingReturnType', + endLine: 2, + endColumn: 14, }, { - messageId: 'missingReturnType', line: 5, + column: 16, + messageId: 'missingReturnType', endLine: 5, - column: 13, endColumn: 18, }, { - messageId: 'missingReturnType', line: 8, - endLine: 8, column: 13, - endColumn: 24, + messageId: 'missingReturnType', + endLine: 8, + endColumn: 22, }, { - messageId: 'missingReturnType', line: 11, - endLine: 11, column: 20, - endColumn: 31, + messageId: 'missingReturnType', + endLine: 11, + endColumn: 29, }, { line: 15, - column: 12, + column: 3, messageId: 'missingReturnType', endLine: 15, - endColumn: 23, + endColumn: 21, }, { - messageId: 'missingReturnType', line: 20, + column: 3, + messageId: 'missingReturnType', endLine: 20, - column: 6, - endColumn: 17, + endColumn: 15, }, ], }, @@ -1508,7 +1508,7 @@ class Foo { line: 4, endLine: 4, column: 3, - endColumn: 18, + endColumn: 16, }, ], }, @@ -1529,7 +1529,7 @@ const foo = (function () { line: 2, endLine: 2, column: 14, - endColumn: 25, + endColumn: 23, }, ], }, @@ -1551,7 +1551,7 @@ const foo = (function () { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1573,7 +1573,7 @@ let foo = function () { line: 2, endLine: 2, column: 11, - endColumn: 22, + endColumn: 20, }, ], }, @@ -1591,7 +1591,7 @@ let foo = (() => () => {})()(); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 18, + column: 21, endColumn: 23, }, ], diff --git a/packages/eslint-plugin/tests/rules/explicit-module-boundary-types.test.ts b/packages/eslint-plugin/tests/rules/explicit-module-boundary-types.test.ts index 854aa1bfe345..ce9176c136b4 100644 --- a/packages/eslint-plugin/tests/rules/explicit-module-boundary-types.test.ts +++ b/packages/eslint-plugin/tests/rules/explicit-module-boundary-types.test.ts @@ -753,7 +753,7 @@ export function test(a: number, b: number) { line: 2, endLine: 2, column: 8, - endColumn: 43, + endColumn: 21, }, ], }, @@ -769,7 +769,7 @@ export function test() { line: 2, endLine: 2, column: 8, - endColumn: 23, + endColumn: 21, }, ], }, @@ -785,7 +785,7 @@ export var fn = function () { line: 2, endLine: 2, column: 17, - endColumn: 28, + endColumn: 26, }, ], }, @@ -798,7 +798,7 @@ export var arrowFn = () => 'test'; messageId: 'missingReturnType', line: 2, endLine: 2, - column: 22, + column: 25, endColumn: 27, }, ], @@ -825,15 +825,15 @@ export class Test { { messageId: 'missingReturnType', line: 4, - endLine: 4, column: 3, - endColumn: 13, + endLine: 4, + endColumn: 11, }, { messageId: 'missingArgType', line: 7, - endLine: 7, column: 12, + endLine: 7, endColumn: 17, data: { name: 'value', @@ -842,22 +842,22 @@ export class Test { { messageId: 'missingReturnType', line: 8, - endLine: 8, column: 3, - endColumn: 11, + endLine: 8, + endColumn: 9, }, { messageId: 'missingReturnType', line: 11, + column: 3, endLine: 11, - column: 11, - endColumn: 17, + endColumn: 11, }, { messageId: 'missingArgType', line: 11, - endLine: 11, column: 11, + endLine: 11, endColumn: 14, data: { name: 'arg', @@ -897,37 +897,37 @@ export class Foo { { messageId: 'missingReturnType', line: 3, + column: 3, endLine: 3, - column: 14, - endColumn: 19, + endColumn: 14, }, { messageId: 'missingReturnType', line: 4, + column: 3, endLine: 4, - column: 14, - endColumn: 25, + endColumn: 23, }, { messageId: 'missingReturnType', line: 5, + column: 3, endLine: 5, - column: 14, - endColumn: 29, + endColumn: 27, }, { messageId: 'missingReturnType', line: 7, + column: 3, endLine: 7, - column: 14, - endColumn: 19, + endColumn: 14, }, { messageId: 'missingReturnType', line: 8, + column: 3, endLine: 8, - column: 14, - endColumn: 25, + endColumn: 23, }, ], }, @@ -938,7 +938,7 @@ export class Foo { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 16, + column: 19, endColumn: 21, }, ], @@ -951,7 +951,7 @@ export class Foo { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 22, + column: 25, endColumn: 27, }, ], @@ -969,7 +969,7 @@ export var funcExpr = function () { line: 2, endLine: 2, column: 23, - endColumn: 34, + endColumn: 32, }, ], }, @@ -986,8 +986,8 @@ export const x: Foo = { messageId: 'missingReturnType', line: 4, endLine: 4, - column: 8, - endColumn: 13, + column: 3, + endColumn: 8, }, ], }, @@ -999,7 +999,7 @@ export const x: Foo = { messageId: 'missingReturnType', line: 1, endLine: 1, - column: 22, + column: 25, endColumn: 27, }, ], @@ -1013,7 +1013,7 @@ export const x: Foo = { line: 1, endLine: 1, column: 22, - endColumn: 33, + endColumn: 31, }, ], }, @@ -1029,7 +1029,7 @@ export default () => { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1047,7 +1047,7 @@ export default () => { line: 3, endLine: 3, column: 10, - endColumn: 21, + endColumn: 19, }, ], }, @@ -1063,7 +1063,7 @@ export function fn() { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1081,7 +1081,7 @@ export function fn() { line: 3, endLine: 3, column: 10, - endColumn: 21, + endColumn: 19, }, ], }, @@ -1107,7 +1107,7 @@ export function FunctionDeclaration() { messageId: 'missingReturnType', line: 9, endLine: 9, - column: 11, + column: 14, endColumn: 16, }, ], @@ -1126,7 +1126,7 @@ export default () => () => { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 10, + column: 13, endColumn: 15, }, ], @@ -1146,14 +1146,14 @@ export const func2 = (value: number) => ({ type: 'X', value } as Action); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 22, + column: 38, endColumn: 40, }, { messageId: 'missingReturnType', line: 3, endLine: 3, - column: 22, + column: 38, endColumn: 40, }, ], @@ -1172,7 +1172,7 @@ export const func = (value: number) => ({ type: 'X', value } as const); messageId: 'missingReturnType', line: 2, endLine: 2, - column: 21, + column: 37, endColumn: 39, }, ], @@ -1203,14 +1203,14 @@ export class Test { line: 8, endLine: 8, column: 3, - endColumn: 11, + endColumn: 9, }, { messageId: 'missingReturnType', line: 12, endLine: 12, - column: 9, - endColumn: 14, + column: 3, + endColumn: 9, }, ], }, @@ -1254,7 +1254,7 @@ export const func2 = (value: number) => value; messageId: 'missingReturnType', line: 2, endLine: 2, - column: 22, + column: 38, endColumn: 40, }, ], @@ -1342,10 +1342,6 @@ const foo = arg => arg; export default foo; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1353,6 +1349,10 @@ export default foo; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1361,10 +1361,6 @@ const foo = arg => arg; export = foo; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1372,6 +1368,10 @@ export = foo; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1381,10 +1381,6 @@ foo = arg => arg; export default foo; `, errors: [ - { - messageId: 'missingReturnType', - line: 3, - }, { messageId: 'missingArgType', line: 3, @@ -1392,6 +1388,10 @@ export default foo; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 3, + }, ], }, { @@ -1400,10 +1400,6 @@ const foo = arg => arg; export default [foo]; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1411,6 +1407,10 @@ export default [foo]; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1419,10 +1419,6 @@ const foo = arg => arg; export default { foo }; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1430,6 +1426,10 @@ export default { foo }; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1617,10 +1617,6 @@ test = (): void => { export default test; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1628,6 +1624,10 @@ export default test; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1639,10 +1639,6 @@ test = (): void => { export { test }; `, errors: [ - { - messageId: 'missingReturnType', - line: 2, - }, { messageId: 'missingArgType', line: 2, @@ -1650,6 +1646,10 @@ export { test }; name: 'arg', }, }, + { + messageId: 'missingReturnType', + line: 2, + }, ], }, { @@ -1667,7 +1667,7 @@ export const foo = { messageId: 'missingReturnType', line: 3, - column: 3, + column: 6, }, ], }, @@ -1680,7 +1680,7 @@ export var arrowFn = () => () => {}; { messageId: 'missingReturnType', line: 2, - column: 28, + column: 31, }, ], }, @@ -1889,14 +1889,14 @@ export const foo = { line: 2, endLine: 2, column: 8, - endColumn: 24, + endColumn: 22, }, { messageId: 'missingReturnType', line: 6, endLine: 6, column: 3, - endColumn: 10, + endColumn: 8, }, ], }, From 18ea3b1f8938e25053f89b7e4ec8dcc6c453118a Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Tue, 18 Jul 2023 23:04:26 +0930 Subject: [PATCH 10/22] feat(eslint-plugin): [class-methods-use-this] add extension rule (#6457) --- .../eslint-plugin/TSLINT_RULE_ALTERNATIVES.md | 4 +- packages/eslint-plugin/docs/rules/TEMPLATE.md | 6 +- .../docs/rules/class-methods-use-this.md | 57 +++ packages/eslint-plugin/src/configs/all.ts | 2 + .../src/rules/class-methods-use-this.ts | 265 +++++++++++ packages/eslint-plugin/src/rules/index.ts | 2 + .../src/util/getStaticStringValue.ts | 49 ++ packages/eslint-plugin/src/util/index.ts | 1 + .../eslint-plugin/src/util/isNullLiteral.ts | 2 +- .../class-methods-use-this-core.test.ts | 431 ++++++++++++++++++ .../class-methods-use-this.test.ts | 186 ++++++++ .../class-methods-use-this.shot | 52 +++ 12 files changed, 1053 insertions(+), 4 deletions(-) create mode 100644 packages/eslint-plugin/docs/rules/class-methods-use-this.md create mode 100644 packages/eslint-plugin/src/rules/class-methods-use-this.ts create mode 100644 packages/eslint-plugin/src/util/getStaticStringValue.ts create mode 100644 packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this-core.test.ts create mode 100644 packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this.test.ts create mode 100644 packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot diff --git a/packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md b/packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md index 097de8938048..8276fabd9226 100644 --- a/packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md +++ b/packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md @@ -185,7 +185,7 @@ It lists all TSLint rules along side rules from the ESLint ecosystem that are th | [`one-line`] | 🌟 | [`brace-style`][brace-style] or [Prettier] | | [`one-variable-per-declaration`] | 🌟 | [`one-var`][one-var] | | [`ordered-imports`] | 🌓 | [`import/order`] | -| [`prefer-function-over-method`] | 🌟 | [`class-methods-use-this`][class-methods-use-this] | +| [`prefer-function-over-method`] | 🌟 | [`@typescript-eslint/class-methods-use-this`] | | [`prefer-method-signature`] | ✅ | [`@typescript-eslint/method-signature-style`] | | [`prefer-switch`] | 🛑 | N/A | | [`prefer-template`] | 🌟 | [`prefer-template`][prefer-template] | @@ -566,7 +566,6 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint- [object-shorthand]: https://eslint.org/docs/rules/object-shorthand [brace-style]: https://eslint.org/docs/rules/brace-style [one-var]: https://eslint.org/docs/rules/one-var -[class-methods-use-this]: https://eslint.org/docs/rules/class-methods-use-this [prefer-template]: https://eslint.org/docs/rules/prefer-template [quotes]: https://eslint.org/docs/rules/quotes [semi]: https://eslint.org/docs/rules/semi @@ -598,6 +597,7 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint- [`@typescript-eslint/await-thenable`]: https://typescript-eslint.io/rules/await-thenable [`@typescript-eslint/ban-types`]: https://typescript-eslint.io/rules/ban-types [`@typescript-eslint/ban-ts-comment`]: https://typescript-eslint.io/rules/ban-ts-comment +[`@typescript-eslint/class-methods-use-this`]: https://typescript-eslint.io/rules/class-methods-use-this [`@typescript-eslint/consistent-type-assertions`]: https://typescript-eslint.io/rules/consistent-type-assertions [`@typescript-eslint/consistent-type-definitions`]: https://typescript-eslint.io/rules/consistent-type-definitions [`@typescript-eslint/explicit-member-accessibility`]: https://typescript-eslint.io/rules/explicit-member-accessibility diff --git a/packages/eslint-plugin/docs/rules/TEMPLATE.md b/packages/eslint-plugin/docs/rules/TEMPLATE.md index ddc6def34a5c..3fb311ad2a16 100644 --- a/packages/eslint-plugin/docs/rules/TEMPLATE.md +++ b/packages/eslint-plugin/docs/rules/TEMPLATE.md @@ -1,6 +1,10 @@ +--- +description: '' +--- + > 🛑 This file is source code, not the primary documentation location! 🛑 > -> See **https://typescript-eslint.io/rules/your-rule-name** for documentation. +> See **https://typescript-eslint.io/rules/RULE_NAME_REPLACEME** for documentation. ## Examples diff --git a/packages/eslint-plugin/docs/rules/class-methods-use-this.md b/packages/eslint-plugin/docs/rules/class-methods-use-this.md new file mode 100644 index 000000000000..4ee075552d2b --- /dev/null +++ b/packages/eslint-plugin/docs/rules/class-methods-use-this.md @@ -0,0 +1,57 @@ +--- +description: 'Enforce that class methods utilize `this`.' +--- + +> 🛑 This file is source code, not the primary documentation location! 🛑 +> +> See **https://typescript-eslint.io/rules/class-methods-use-this** for documentation. + +## Examples + +This rule extends the base [`eslint/class-methods-use-this`](https://eslint.org/docs/rules/class-methods-use-this) rule. +It adds support for ignoring `override` methods or methods on classes that implement an interface. + +## Options + +This rule adds the following options: + +```ts +interface Options extends BaseClassMethodsUseThisOptions { + ignoreOverrideMethods?: boolean; + ignoreClassesThatImplementAnInterface?: boolean; +} + +const defaultOptions: Options = { + ...baseClassMethodsUseThisOptions, + ignoreOverrideMethods: false, + ignoreClassesThatImplementAnInterface: false, +}; +``` + +### `ignoreOverrideMethods` + +Makes the rule to ignores any class member explicitly marked with `override`. + +Example of a correct code when `ignoreOverrideMethods` is set to `true`: + +```ts +class X { + override method() {} + override property = () => {}; +} +``` + +### `ignoreClassesThatImplementAnInterface` + +Makes the rule ignore all class members that are defined within a class that `implements` a type. + +It's important to note that this option does not only apply to members defined in the interface as that would require type information. + +Example of a correct code when `ignoreClassesThatImplementAnInterface` is set to `true`: + +```ts +class X implements Y { + method() {} + property = () => {}; +} +``` diff --git a/packages/eslint-plugin/src/configs/all.ts b/packages/eslint-plugin/src/configs/all.ts index 184a241a66fd..d0bd265b0996 100644 --- a/packages/eslint-plugin/src/configs/all.ts +++ b/packages/eslint-plugin/src/configs/all.ts @@ -19,6 +19,8 @@ export = { 'brace-style': 'off', '@typescript-eslint/brace-style': 'error', '@typescript-eslint/class-literal-property-style': 'error', + 'class-methods-use-this': 'off', + '@typescript-eslint/class-methods-use-this': 'error', 'comma-dangle': 'off', '@typescript-eslint/comma-dangle': 'error', 'comma-spacing': 'off', diff --git a/packages/eslint-plugin/src/rules/class-methods-use-this.ts b/packages/eslint-plugin/src/rules/class-methods-use-this.ts new file mode 100644 index 000000000000..948aa4def5ba --- /dev/null +++ b/packages/eslint-plugin/src/rules/class-methods-use-this.ts @@ -0,0 +1,265 @@ +import type { TSESTree } from '@typescript-eslint/utils'; +import { AST_NODE_TYPES } from '@typescript-eslint/utils'; + +import * as util from '../util'; + +type Options = [ + { + exceptMethods?: string[]; + enforceForClassFields?: boolean; + ignoreOverrideMethods?: boolean; + ignoreClassesThatImplementAnInterface?: boolean; + }, +]; +type MessageIds = 'missingThis'; + +export default util.createRule({ + name: 'class-methods-use-this', + meta: { + type: 'suggestion', + docs: { + description: 'Enforce that class methods utilize `this`', + extendsBaseRule: true, + requiresTypeChecking: false, + }, + fixable: 'code', + hasSuggestions: false, + schema: [ + { + type: 'object', + properties: { + exceptMethods: { + type: 'array', + description: + 'Allows specified method names to be ignored with this rule', + items: { + type: 'string', + }, + }, + enforceForClassFields: { + type: 'boolean', + description: + 'Enforces that functions used as instance field initializers utilize `this`', + default: true, + }, + ignoreOverrideMethods: { + type: 'boolean', + description: 'Ingore members marked with the `override` modifier', + }, + ignoreClassesThatImplementAnInterface: { + type: 'boolean', + description: + 'Ignore classes that specifically implement some interface', + }, + }, + additionalProperties: false, + }, + ], + messages: { + missingThis: "Expected 'this' to be used by class {{name}}.", + }, + }, + defaultOptions: [ + { + enforceForClassFields: true, + exceptMethods: [], + ignoreClassesThatImplementAnInterface: false, + ignoreOverrideMethods: false, + }, + ], + create( + context, + [ + { + enforceForClassFields, + exceptMethods: exceptMethodsRaw, + ignoreClassesThatImplementAnInterface, + ignoreOverrideMethods, + }, + ], + ) { + const exceptMethods = new Set(exceptMethodsRaw); + type Stack = + | { + member: null; + class: null; + parent: Stack | undefined; + usesThis: boolean; + } + | { + member: TSESTree.MethodDefinition | TSESTree.PropertyDefinition; + class: TSESTree.ClassDeclaration | TSESTree.ClassExpression; + parent: Stack | undefined; + usesThis: boolean; + }; + let stack: Stack | undefined; + + const sourceCode = context.getSourceCode(); + + function pushContext( + member?: TSESTree.MethodDefinition | TSESTree.PropertyDefinition, + ): void { + if (member?.parent.type === AST_NODE_TYPES.ClassBody) { + stack = { + member, + class: member.parent.parent as + | TSESTree.ClassDeclaration + | TSESTree.ClassExpression, + usesThis: false, + parent: stack, + }; + } else { + stack = { + member: null, + class: null, + usesThis: false, + parent: stack, + }; + } + } + + function enterFunction( + node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression, + ): void { + if ( + node.parent.type === AST_NODE_TYPES.MethodDefinition || + node.parent.type === AST_NODE_TYPES.PropertyDefinition + ) { + pushContext(node.parent); + } else { + pushContext(); + } + } + + /** + * Pop `this` used flag from the stack. + */ + function popContext(): Stack | undefined { + const oldStack = stack; + stack = stack?.parent; + return oldStack; + } + + /** + * Check if the node is an instance method not excluded by config + */ + function isIncludedInstanceMethod( + node: NonNullable, + ): node is NonNullable { + if ( + node.static || + (node.type === AST_NODE_TYPES.MethodDefinition && + node.kind === 'constructor') || + (node.type === AST_NODE_TYPES.PropertyDefinition && + !enforceForClassFields) + ) { + return false; + } + + if (node.computed || exceptMethods.size === 0) { + return true; + } + + const hashIfNeeded = + node.key.type === AST_NODE_TYPES.PrivateIdentifier ? '#' : ''; + const name = + node.key.type === AST_NODE_TYPES.Literal + ? util.getStaticStringValue(node.key) + : node.key.name || ''; + + return !exceptMethods.has(hashIfNeeded + (name ?? '')); + } + + /** + * Checks if we are leaving a function that is a method, and reports if 'this' has not been used. + * Static methods and the constructor are exempt. + * Then pops the context off the stack. + */ + function exitFunction( + node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression, + ): void { + const stackContext = popContext(); + if ( + stackContext?.member == null || + stackContext.class == null || + stackContext.usesThis || + (ignoreOverrideMethods && stackContext.member.override) || + (ignoreClassesThatImplementAnInterface && + stackContext.class.implements != null) + ) { + return; + } + + if (isIncludedInstanceMethod(stackContext.member)) { + context.report({ + node, + loc: util.getFunctionHeadLoc(node, sourceCode), + messageId: 'missingThis', + data: { + name: util.getFunctionNameWithKind(node), + }, + }); + } + } + + return { + // function declarations have their own `this` context + FunctionDeclaration(): void { + pushContext(); + }, + 'FunctionDeclaration:exit'(): void { + popContext(); + }, + + FunctionExpression(node): void { + enterFunction(node); + }, + 'FunctionExpression:exit'(node): void { + exitFunction(node); + }, + ...(enforceForClassFields + ? { + 'PropertyDefinition > ArrowFunctionExpression.value'( + node: TSESTree.ArrowFunctionExpression, + ): void { + enterFunction(node); + }, + 'PropertyDefinition > ArrowFunctionExpression.value:exit'( + node: TSESTree.ArrowFunctionExpression, + ): void { + exitFunction(node); + }, + } + : {}), + + /* + * Class field value are implicit functions. + */ + 'PropertyDefinition > *.key:exit'(): void { + pushContext(); + }, + 'PropertyDefinition:exit'(): void { + popContext(); + }, + + /* + * Class static blocks are implicit functions. They aren't required to use `this`, + * but we have to push context so that it captures any use of `this` in the static block + * separately from enclosing contexts, because static blocks have their own `this` and it + * shouldn't count as used `this` in enclosing contexts. + */ + StaticBlock(): void { + pushContext(); + }, + 'StaticBlock:exit'(): void { + popContext(); + }, + + 'ThisExpression, Super'(): void { + if (stack) { + stack.usesThis = true; + } + }, + }; + }, +}); diff --git a/packages/eslint-plugin/src/rules/index.ts b/packages/eslint-plugin/src/rules/index.ts index f5cf92c28d16..44aedd6198e1 100644 --- a/packages/eslint-plugin/src/rules/index.ts +++ b/packages/eslint-plugin/src/rules/index.ts @@ -7,6 +7,7 @@ import banTypes from './ban-types'; import blockSpacing from './block-spacing'; import braceStyle from './brace-style'; import classLiteralPropertyStyle from './class-literal-property-style'; +import classMethodsUseThis from './class-methods-use-this'; import commaDangle from './comma-dangle'; import commaSpacing from './comma-spacing'; import consistentGenericConstructors from './consistent-generic-constructors'; @@ -141,6 +142,7 @@ export default { 'block-spacing': blockSpacing, 'brace-style': braceStyle, 'class-literal-property-style': classLiteralPropertyStyle, + 'class-methods-use-this': classMethodsUseThis, 'comma-dangle': commaDangle, 'comma-spacing': commaSpacing, 'consistent-generic-constructors': consistentGenericConstructors, diff --git a/packages/eslint-plugin/src/util/getStaticStringValue.ts b/packages/eslint-plugin/src/util/getStaticStringValue.ts new file mode 100644 index 000000000000..6eeaf9af8ce3 --- /dev/null +++ b/packages/eslint-plugin/src/util/getStaticStringValue.ts @@ -0,0 +1,49 @@ +// adapted from https://github.com/eslint/eslint/blob/5bdaae205c3a0089ea338b382df59e21d5b06436/lib/rules/utils/ast-utils.js#L191-L230 + +import type { TSESTree } from '@typescript-eslint/utils'; +import { AST_NODE_TYPES } from '@typescript-eslint/utils'; + +import { isNullLiteral } from './isNullLiteral'; + +/** + * Returns the result of the string conversion applied to the evaluated value of the given expression node, + * if it can be determined statically. + * + * This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only. + * In all other cases, this function returns `null`. + * @param node Expression node. + * @returns String value if it can be determined. Otherwise, `null`. + */ +export function getStaticStringValue(node: TSESTree.Node): string | null { + switch (node.type) { + case AST_NODE_TYPES.Literal: + // eslint-disable-next-line eqeqeq -- intentional strict comparison for literal value + if (node.value === null) { + if (isNullLiteral(node)) { + return String(node.value); // "null" + } + if ('regex' in node) { + return `/${node.regex.pattern}/${node.regex.flags}`; + } + + if ('bigint' in node) { + return node.bigint; + } + + // Otherwise, this is an unknown literal. The function will return null. + } else { + return String(node.value); + } + break; + + case AST_NODE_TYPES.TemplateLiteral: + if (node.expressions.length === 0 && node.quasis.length === 1) { + return node.quasis[0].value.cooked; + } + break; + + // no default + } + + return null; +} diff --git a/packages/eslint-plugin/src/util/index.ts b/packages/eslint-plugin/src/util/index.ts index 53a19a96d368..5e9994a136d9 100644 --- a/packages/eslint-plugin/src/util/index.ts +++ b/packages/eslint-plugin/src/util/index.ts @@ -5,6 +5,7 @@ export * from './collectUnusedVariables'; export * from './createRule'; export * from './getFunctionHeadLoc'; export * from './getOperatorPrecedence'; +export * from './getStaticStringValue'; export * from './getStringLength'; export * from './getThisExpression'; export * from './getWrappingFixer'; diff --git a/packages/eslint-plugin/src/util/isNullLiteral.ts b/packages/eslint-plugin/src/util/isNullLiteral.ts index 85bf45882123..d59a926c5aaa 100644 --- a/packages/eslint-plugin/src/util/isNullLiteral.ts +++ b/packages/eslint-plugin/src/util/isNullLiteral.ts @@ -1,6 +1,6 @@ import type { TSESTree } from '@typescript-eslint/utils'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; -export function isNullLiteral(i: TSESTree.Node): boolean { +export function isNullLiteral(i: TSESTree.Node): i is TSESTree.NullLiteral { return i.type === AST_NODE_TYPES.Literal && i.value == null; } diff --git a/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this-core.test.ts b/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this-core.test.ts new file mode 100644 index 000000000000..4fba4d557f15 --- /dev/null +++ b/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this-core.test.ts @@ -0,0 +1,431 @@ +/* eslint-disable @typescript-eslint/internal/plugin-test-formatting -- +keeping eslint core formatting on purpose to make upstream diffing easier and so we don't need to edit line/cols */ +import { RuleTester } from '@typescript-eslint/rule-tester'; +import { AST_NODE_TYPES } from '@typescript-eslint/utils'; + +import rule from '../../../src/rules/class-methods-use-this'; + +const ruleTester = new RuleTester({ + parser: '@typescript-eslint/parser', +}); + +ruleTester.run('class-methods-use-this', rule, { + valid: [ + { code: 'class A { constructor() {} }', parserOptions: { ecmaVersion: 6 } }, + { code: 'class A { foo() {this} }', parserOptions: { ecmaVersion: 6 } }, + { + code: "class A { foo() {this.bar = 'bar';} }", + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A { foo() {bar(this);} }', + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A extends B { foo() {super.foo();} }', + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A { foo() { if(true) { return this; } } }', + parserOptions: { ecmaVersion: 6 }, + }, + { code: 'class A { static foo() {} }', parserOptions: { ecmaVersion: 6 } }, + { code: '({ a(){} });', parserOptions: { ecmaVersion: 6 } }, + { + code: 'class A { foo() { () => this; } }', + parserOptions: { ecmaVersion: 6 }, + }, + { code: '({ a: function () {} });', parserOptions: { ecmaVersion: 6 } }, + { + code: 'class A { foo() {this} bar() {} }', + options: [{ exceptMethods: ['bar'] }], + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A { "foo"() { } }', + options: [{ exceptMethods: ['foo'] }], + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A { 42() { } }', + options: [{ exceptMethods: ['42'] }], + parserOptions: { ecmaVersion: 6 }, + }, + { + code: 'class A { foo = function() {this} }', + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { foo = () => {this} }', + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { foo = () => {super.toString} }', + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { static foo = function() {} }', + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { static foo = () => {} }', + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { #bar() {} }', + options: [{ exceptMethods: ['#bar'] }], + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { foo = function () {} }', + options: [{ enforceForClassFields: false }], + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { foo = () => {} }', + options: [{ enforceForClassFields: false }], + parserOptions: { ecmaVersion: 2022 }, + }, + { + code: 'class A { foo() { return class { [this.foo] = 1 }; } }', + parserOptions: { ecmaVersion: 2022 }, + }, + { code: 'class A { static {} }', parserOptions: { ecmaVersion: 2022 } }, + ], + invalid: [ + { + code: 'class A { foo() {} }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {/**this**/} }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {var a = function () {this};} }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {var a = function () {var b = function(){this}};} }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {window.this} }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: "class A { foo() {that.this = 'this';} }", + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() { () => undefined; } }', + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {} bar() {} }', + options: [{ exceptMethods: ['bar'] }], + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + ], + }, + { + code: 'class A { foo() {} hasOwnProperty() {} }', + options: [{ exceptMethods: ['foo'] }], + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 20, + messageId: 'missingThis', + data: { name: "method 'hasOwnProperty'" }, + }, + ], + }, + { + code: 'class A { [foo]() {} }', + options: [{ exceptMethods: ['foo'] }], + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 11, + messageId: 'missingThis', + data: { name: 'method' }, + }, + ], + }, + { + code: 'class A { #foo() { } foo() {} #bar() {} }', + options: [{ exceptMethods: ['#foo'] }], + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 22, + messageId: 'missingThis', + data: { name: "method 'foo'" }, + }, + { + type: AST_NODE_TYPES.FunctionExpression, + line: 1, + column: 31, + messageId: 'missingThis', + data: { name: 'private method #bar' }, + }, + ], + }, + { + code: "class A { foo(){} 'bar'(){} 123(){} [`baz`](){} [a](){} [f(a)](){} get quux(){} set[a](b){} *quuux(){} }", + parserOptions: { ecmaVersion: 6 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 11, + }, + { + messageId: 'missingThis', + data: { name: "method 'bar'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 19, + }, + { + messageId: 'missingThis', + data: { name: "method '123'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 29, + }, + { + messageId: 'missingThis', + data: { name: "method 'baz'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 37, + }, + { + messageId: 'missingThis', + data: { name: 'method' }, + type: AST_NODE_TYPES.FunctionExpression, + column: 49, + }, + { + messageId: 'missingThis', + data: { name: 'method' }, + type: AST_NODE_TYPES.FunctionExpression, + column: 57, + }, + { + messageId: 'missingThis', + data: { name: "getter 'quux'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 68, + }, + { + messageId: 'missingThis', + data: { name: 'setter' }, + type: AST_NODE_TYPES.FunctionExpression, + column: 81, + }, + { + messageId: 'missingThis', + data: { name: "generator method 'quuux'" }, + type: AST_NODE_TYPES.FunctionExpression, + column: 93, + }, + ], + }, + { + code: 'class A { foo = function() {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + column: 11, + endColumn: 25, + }, + ], + }, + { + code: 'class A { foo = () => {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + column: 11, + endColumn: 17, + }, + ], + }, + { + code: 'class A { #foo = function() {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: 'private method #foo' }, + column: 11, + endColumn: 26, + }, + ], + }, + { + code: 'class A { #foo = () => {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: 'private method #foo' }, + column: 11, + endColumn: 18, + }, + ], + }, + { + code: 'class A { #foo() {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: 'private method #foo' }, + column: 11, + endColumn: 15, + }, + ], + }, + { + code: 'class A { get #foo() {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: 'private getter #foo' }, + column: 11, + endColumn: 19, + }, + ], + }, + { + code: 'class A { set #foo(x) {} }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: 'private setter #foo' }, + column: 11, + endColumn: 19, + }, + ], + }, + { + code: 'class A { foo () { return class { foo = this }; } }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + column: 11, + endColumn: 15, + }, + ], + }, + { + code: 'class A { foo () { return function () { foo = this }; } }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + column: 11, + endColumn: 15, + }, + ], + }, + { + code: 'class A { foo () { return class { static { this; } } } }', + parserOptions: { ecmaVersion: 2022 }, + errors: [ + { + messageId: 'missingThis', + data: { name: "method 'foo'" }, + column: 11, + endColumn: 15, + }, + ], + }, + ], +}); diff --git a/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this.test.ts b/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this.test.ts new file mode 100644 index 000000000000..5f2532b7b3df --- /dev/null +++ b/packages/eslint-plugin/tests/rules/class-methods-use-this/class-methods-use-this.test.ts @@ -0,0 +1,186 @@ +import { RuleTester } from '@typescript-eslint/rule-tester'; + +import rule from '../../../src/rules/class-methods-use-this'; + +const ruleTester = new RuleTester({ + parser: '@typescript-eslint/parser', +}); + +ruleTester.run('class-methods-use-this', rule, { + valid: [ + { + code: ` +class Foo implements Bar { + method() {} +} + `, + options: [{ ignoreClassesThatImplementAnInterface: true }], + }, + { + code: ` +class Foo { + override method() {} +} + `, + options: [{ ignoreOverrideMethods: true }], + }, + { + code: ` +class Foo implements Bar { + override method() {} +} + `, + options: [ + { + ignoreClassesThatImplementAnInterface: true, + ignoreOverrideMethods: true, + }, + ], + }, + { + code: ` +class Foo implements Bar { + property = () => {}; +} + `, + options: [{ ignoreClassesThatImplementAnInterface: true }], + }, + { + code: ` +class Foo { + override property = () => {}; +} + `, + options: [{ ignoreOverrideMethods: true }], + }, + { + code: ` +class Foo implements Bar { + override property = () => {}; +} + `, + options: [ + { + ignoreClassesThatImplementAnInterface: true, + ignoreOverrideMethods: true, + }, + ], + }, + { + code: ` +class Foo implements Bar { + property = () => {}; +} + `, + options: [ + { + ignoreClassesThatImplementAnInterface: false, + enforceForClassFields: false, + }, + ], + }, + { + code: ` +class Foo { + override property = () => {}; +} + `, + options: [ + { + ignoreOverrideMethods: false, + enforceForClassFields: false, + }, + ], + }, + ], + invalid: [ + { + code: ` +class Foo implements Bar { + method() {} +} + `, + options: [{ ignoreClassesThatImplementAnInterface: false }], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + { + code: ` +class Foo { + override method() {} +} + `, + options: [{ ignoreOverrideMethods: false }], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + { + code: ` +class Foo implements Bar { + override method() {} +} + `, + options: [ + { + ignoreClassesThatImplementAnInterface: false, + ignoreOverrideMethods: false, + }, + ], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + { + code: ` +class Foo implements Bar { + property = () => {}; +} + `, + options: [{ ignoreClassesThatImplementAnInterface: false }], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + { + code: ` +class Foo { + override property = () => {}; +} + `, + options: [{ ignoreOverrideMethods: false }], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + { + code: ` +class Foo implements Bar { + override property = () => {}; +} + `, + options: [ + { + ignoreClassesThatImplementAnInterface: false, + ignoreOverrideMethods: false, + }, + ], + errors: [ + { + messageId: 'missingThis', + }, + ], + }, + ], +}); diff --git a/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot b/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot new file mode 100644 index 000000000000..14858cd2617e --- /dev/null +++ b/packages/eslint-plugin/tests/schema-snapshots/class-methods-use-this.shot @@ -0,0 +1,52 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Rule schemas should be convertible to TS types for documentation purposes class-methods-use-this 1`] = ` +" +# SCHEMA: + +[ + { + "additionalProperties": false, + "properties": { + "enforceForClassFields": { + "default": true, + "description": "Enforces that functions used as instance field initializers utilize \`this\`", + "type": "boolean" + }, + "exceptMethods": { + "description": "Allows specified method names to be ignored with this rule", + "items": { + "type": "string" + }, + "type": "array" + }, + "ignoreClassesThatImplementAnInterface": { + "description": "Ignore classes that specifically implement some interface", + "type": "boolean" + }, + "ignoreOverrideMethods": { + "description": "Ingore members marked with the \`override\` modifier", + "type": "boolean" + } + }, + "type": "object" + } +] + + +# TYPES: + +type Options = [ + { + /** Enforces that functions used as instance field initializers utilize \`this\` */ + enforceForClassFields?: boolean; + /** Allows specified method names to be ignored with this rule */ + exceptMethods?: string[]; + /** Ignore classes that specifically implement some interface */ + ignoreClassesThatImplementAnInterface?: boolean; + /** Ingore members marked with the \`override\` modifier */ + ignoreOverrideMethods?: boolean; + }, +]; +" +`; From ad46286696289fc7e16957641428a6e4b1020301 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 06:43:48 -0700 Subject: [PATCH 11/22] chore(deps): update dependency lerna to v7.1.4 (#7262) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 39 ++++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 22460b599a7f..e41825e5de00 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "jest-snapshot": "^29.6.1", "jest-specific-snapshot": "^8.0.0", "jest": "29.6.1", - "lerna": "7.1.3", + "lerna": "7.1.4", "lint-staged": "^13.2.3", "make-dir": "^4.0.0", "markdownlint-cli": "^0.35.0", diff --git a/yarn.lock b/yarn.lock index 23a30e4838ff..e9ce0981d209 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2696,21 +2696,21 @@ resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== -"@lerna/child-process@7.1.3": - version "7.1.3" - resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-7.1.3.tgz#8037449080e0d2fdbff957e15bf1877a5d9872c3" - integrity sha512-ZXHo30G5Ia/RCWKVyBm+3kAe/liWy7KaRF+CPWZpxYo+ysFPBIJ/7XZlGMzmq8fQaMsPj1z61q4wyqeAlUwuvQ== +"@lerna/child-process@7.1.4": + version "7.1.4" + resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-7.1.4.tgz#5ab64540b01a339ecc6787f4f06d29aee99d71d5" + integrity sha512-cSiMDx9oI9vvVT+V/WHcbqrksNoc9PIPFiks1lPS7zrVWkEbgA6REQyYmRd2H71kihzqhX5TJ20f2dWv6oEPdA== dependencies: chalk "^4.1.0" execa "^5.0.0" strong-log-transformer "^2.1.0" -"@lerna/create@7.1.3": - version "7.1.3" - resolved "https://registry.yarnpkg.com/@lerna/create/-/create-7.1.3.tgz#497b50cee176083f7457a7ac1cd5e8f180761e73" - integrity sha512-i/xUmT7sMNTUhGpSUuQJ8N776YiT/fJaKPrzMSAoxqDBhyDryi4o4JUR+rrN9oELOEsO+SOXQEusBdkmUdVTMg== +"@lerna/create@7.1.4": + version "7.1.4" + resolved "https://registry.yarnpkg.com/@lerna/create/-/create-7.1.4.tgz#bfff377c36734ef9a95e3fe8cb030d6498844928" + integrity sha512-D5YWXsXIxWb1aGqcbtttczg86zMzkNhcs00/BleFNxdNYlTRdjLIReELOGBGrq3Hij05UN+7Dv9EKnPFJVbqAw== dependencies: - "@lerna/child-process" "7.1.3" + "@lerna/child-process" "7.1.4" dedent "0.7.0" fs-extra "^11.1.1" init-package-json "5.0.0" @@ -2956,7 +2956,7 @@ dependencies: "@nx/workspace" "16.5.2" -"@nx/devkit@16.5.2", "@nx/devkit@>=16.1.3 < 17": +"@nx/devkit@16.5.2", "@nx/devkit@>=16.5.1 < 17": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-16.5.2.tgz#0a30fc4e3beeea7d7bf16a0496d1ff3c5fa05299" integrity sha512-QDOQeFzVhQCA65g+2RfoGKZBUnCb151+F7/PvwRESEM+jybXHoXwR9PSE3ClnnmO/d0LUKB2ohU3Z9WQrQDALQ== @@ -9888,15 +9888,15 @@ latest-version@^5.1.0: dependencies: package-json "^6.3.0" -lerna@7.1.3: - version "7.1.3" - resolved "https://registry.yarnpkg.com/lerna/-/lerna-7.1.3.tgz#9aef15620b54038b1e4c5ea620c6b9b7590f26a4" - integrity sha512-LMs9HU0z5fNFMNOyDVinJcf04QaScReJ8Q2pqxO+nPOmbvNsBwykBgMTWLboL1rI1CCR0/WLdMnvObvR52MtTw== +lerna@7.1.4: + version "7.1.4" + resolved "https://registry.yarnpkg.com/lerna/-/lerna-7.1.4.tgz#0778732f4c77ead71a20ba1e9b0a77edc75cb383" + integrity sha512-/cabvmTTkmayyALIZx7OpHRex72i8xSOkiJchEkrKxAZHoLNaGSwqwKkj+x6WtmchhWl/gLlqwQXGRuxrJKiBw== dependencies: - "@lerna/child-process" "7.1.3" - "@lerna/create" "7.1.3" + "@lerna/child-process" "7.1.4" + "@lerna/create" "7.1.4" "@npmcli/run-script" "6.0.2" - "@nx/devkit" ">=16.1.3 < 17" + "@nx/devkit" ">=16.5.1 < 17" "@octokit/plugin-enterprise-rest" "6.0.1" "@octokit/rest" "19.0.11" byte-size "8.1.1" @@ -9930,6 +9930,7 @@ lerna@7.1.3: libnpmaccess "7.0.2" libnpmpublish "7.3.0" load-json-file "6.2.0" + lodash "^4.17.21" make-dir "3.1.0" minimatch "3.0.5" multimatch "5.0.0" @@ -9938,7 +9939,7 @@ lerna@7.1.3: npm-packlist "5.1.1" npm-registry-fetch "^14.0.5" npmlog "^6.0.2" - nx ">=16.1.3 < 17" + nx ">=16.5.1 < 17" p-map "4.0.0" p-map-series "2.1.0" p-pipe "3.1.0" @@ -11237,7 +11238,7 @@ nx-cloud@16.1.0: tar "6.1.11" yargs-parser ">=21.1.1" -nx@16.5.2, "nx@>=16.1.3 < 17": +nx@16.5.2, "nx@>=16.5.1 < 17": version "16.5.2" resolved "https://registry.yarnpkg.com/nx/-/nx-16.5.2.tgz#a271513abe73324fdf2924277d5f273d807a6f0e" integrity sha512-3XAkVBhXuoFgD7r0lASOh2589XSmBUjioevZb13lDjKDN/FHFWedwMZWtmmbzxBGO3EAWjl+3owBS1RIPm1UHw== From af77a1d33f0853d2ab0f61e4ac04dec47cd7ba18 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Wed, 19 Jul 2023 11:40:03 +0930 Subject: [PATCH 12/22] fix(eslint-plugin): use a default export for the rules type (#7266) --- packages/eslint-plugin/rules.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin/rules.d.ts b/packages/eslint-plugin/rules.d.ts index 9a5272d205c3..49518b6ee502 100644 --- a/packages/eslint-plugin/rules.d.ts +++ b/packages/eslint-plugin/rules.d.ts @@ -41,4 +41,4 @@ export interface TypeScriptESLintRules { [ruleName: string]: RuleModule; } declare const rules: TypeScriptESLintRules; -export = rules; +export default rules; From f2aed1bee1d265e8c87423a17b674be31a075f58 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Wed, 19 Jul 2023 11:40:31 +0930 Subject: [PATCH 13/22] fix(typescript-estree): fix TSNode type error on old ts versions (#7267) --- packages/typescript-estree/src/ts-estree/ts-nodes.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/typescript-estree/src/ts-estree/ts-nodes.ts b/packages/typescript-estree/src/ts-estree/ts-nodes.ts index 588316c297ad..3e9eab7fe8d6 100644 --- a/packages/typescript-estree/src/ts-estree/ts-nodes.ts +++ b/packages/typescript-estree/src/ts-estree/ts-nodes.ts @@ -4,18 +4,13 @@ import type * as ts from 'typescript'; // Eg: https://github.com/typescript-eslint/typescript-eslint/issues/2388, https://github.com/typescript-eslint/typescript-eslint/issues/2784 /* eslint-disable @typescript-eslint/no-empty-interface */ declare module 'typescript' { - // added in TS 4.0 - export interface NamedTupleMember extends ts.Node {} - // added in TS 4.1 - export interface TemplateLiteralTypeNode extends ts.Node {} - // added in TS 4.3 - export interface PrivateIdentifier extends ts.Node {} - export interface ClassStaticBlockDeclaration extends ts.Node {} // added in TS 4.5 export interface AssertClause extends ts.Node {} export interface AssertEntry extends ts.Node {} // added in TS 4.9 export interface SatisfiesExpression extends ts.Node {} + // added in TS 5.1 + export interface JsxNamespacedName extends ts.Node {} } /* eslint-enable @typescript-eslint/no-empty-interface */ From d431a3cdbce5f2e3652485bb06af17a943f30ebf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jul 2023 08:09:08 -0400 Subject: [PATCH 14/22] chore(deps): update dependency cspell to v6.31.2 (#7271) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 152 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 80 insertions(+), 72 deletions(-) diff --git a/yarn.lock b/yarn.lock index e9ce0981d209..c13888be975f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1282,10 +1282,10 @@ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@cspell/cspell-bundled-dicts@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-6.31.1.tgz#69bacbdcceae490b50d2573877f004328416d6e8" - integrity sha512-rsIev+dk1Vd8H1OKZhNhXycIVsMfeWJaeW3QUi1l4oIoGwQfJVbs1ZPZPHE5cglzyHOW1jQNStXf34UKaC6siA== +"@cspell/cspell-bundled-dicts@6.31.2": + version "6.31.2" + resolved "https://registry.yarnpkg.com/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-6.31.2.tgz#42865a6c025b0ce5550efa24c9a78d7094b206dc" + integrity sha512-rQ5y/U1Ah5AaduIh3NU2z371hRrOr1cmNdhhP8oiuz2E4VqmcoVHflXIct9DgY8uIJpwsSCdR6ypOQWZYXYnwA== dependencies: "@cspell/dict-ada" "^4.0.1" "@cspell/dict-aws" "^3.0.0" @@ -1304,7 +1304,7 @@ "@cspell/dict-en-gb" "1.1.33" "@cspell/dict-en_us" "^4.3.2" "@cspell/dict-filetypes" "^3.0.0" - "@cspell/dict-fonts" "^3.0.1" + "@cspell/dict-fonts" "^3.0.2" "@cspell/dict-fullstack" "^3.1.5" "@cspell/dict-gaming-terms" "^1.0.4" "@cspell/dict-git" "^2.0.0" @@ -1365,14 +1365,14 @@ integrity sha512-8czAa/Mh96wu2xr0RXQEGMTBUGkTvYn/Pb0o+gqOO1YW+poXGQc3gx0YPqILDryP/KCERrNvkWUJz3iGbvwC2A== "@cspell/dict-companies@^3.0.9": - version "3.0.9" - resolved "https://registry.yarnpkg.com/@cspell/dict-companies/-/dict-companies-3.0.9.tgz#dfc35ad35478c8bee20a8ecd9f7509c359fe334b" - integrity sha512-wSkVIJjk33Sm3LhieNv9TsSvUSeP0R/h8xx06NqbMYF43w9J8hZiMHlbB3FzaSOHRpXT5eBIJBVTeFbceZdiqg== + version "3.0.17" + resolved "https://registry.yarnpkg.com/@cspell/dict-companies/-/dict-companies-3.0.17.tgz#98c8bed74892a415f9471f77d11d2aa8f727b103" + integrity sha512-vo1jbozgZWSzz2evIL26kLd35tVb+5kW/UTvTzAwaWutSWRloRyKx38nj2CaLJ2IFxBdiATteCFGTzKCvJJl6A== "@cspell/dict-cpp@^5.0.2": - version "5.0.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-cpp/-/dict-cpp-5.0.2.tgz#ab6fd2b91a08c30602426ac782a4855f239cd1e7" - integrity sha512-Q0ZjfhrHHfm0Y1/7LMCq3Fne/bhiBeBogUw4TV1wX/1tg3m+5BtaW/7GiOzRk+rFsblVj3RFam59VJKMT3vSoQ== + version "5.0.3" + resolved "https://registry.yarnpkg.com/@cspell/dict-cpp/-/dict-cpp-5.0.3.tgz#231c03019dba4db59bcfee0fda5a710d70569052" + integrity sha512-7sx/RFsf0hB3q8chx8OHYl9Kd+g0pqA1laphwaAQ+/jPwoAreYT3kNQWbJ3bIt/rMoORetFSQxckSbaJXwwqpw== "@cspell/dict-cryptocurrencies@^3.0.1": version "3.0.1" @@ -1385,19 +1385,24 @@ integrity sha512-1JMofhLK+4p4KairF75D3A924m5ERMgd1GvzhwK2geuYgd2ZKuGW72gvXpIV7aGf52E3Uu1kDXxxGAiZ5uVG7g== "@cspell/dict-css@^4.0.5": - version "4.0.5" - resolved "https://registry.yarnpkg.com/@cspell/dict-css/-/dict-css-4.0.5.tgz#2233138a03c163f82b0f6fbe0cdd2aada3ca4afc" - integrity sha512-z5vw8nJSyKd6d3i5UmMNoVcAp0wxvs9OHWOmAeJKT9fO3tok02gK24VZhcJ0NJtiKdHQ2zRuzdfWl51wdAiY6A== + version "4.0.6" + resolved "https://registry.yarnpkg.com/@cspell/dict-css/-/dict-css-4.0.6.tgz#39cf199e68d6e17b9518938fa64368cec2f7f9ca" + integrity sha512-2Lo8W2ezHmGgY8cWFr4RUwnjbndna5mokpCK/DuxGILQnuajR0J31ANQOXj/8iZM2phFB93ZzMNk/0c04TDfSQ== "@cspell/dict-dart@^2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@cspell/dict-dart/-/dict-dart-2.0.2.tgz#714285f4f8bd304c1c477779ccbbfae5949819d7" integrity sha512-jigcODm7Z4IFZ4vParwwP3IT0fIgRq/9VoxkXfrxBMsLBGGM2QltHBj7pl+joX+c4cOHxfyZktGJK1B1wFtR4Q== +"@cspell/dict-data-science@^1.0.0": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@cspell/dict-data-science/-/dict-data-science-1.0.7.tgz#4f4fe831c10b97336d7ceff3a4278006f79e77ed" + integrity sha512-Q9VUFaarUpqM6CAmR8peP4o9alk0XQ4rgVoE2R2XalpC2cqPI8Hmg6QwMU2UPioSUcWMJCqLc/KzJti0gBMuxA== + "@cspell/dict-django@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-django/-/dict-django-4.0.2.tgz#08d21ee3ce7e323e4d7634abf6d69a96a6d4930c" - integrity sha512-L0Yw6+Yh2bE9/FAMG4gy9m752G4V8HEBjEAGeRIQ9qvxDLR9yD6dPOtgEFTjv7SWlKSrLb9wA/W3Q2GKCOusSg== + version "4.1.0" + resolved "https://registry.yarnpkg.com/@cspell/dict-django/-/dict-django-4.1.0.tgz#2d4b765daf3c83e733ef3e06887ea34403a4de7a" + integrity sha512-bKJ4gPyrf+1c78Z0Oc4trEB9MuhcB+Yg+uTTWsvhY6O2ncFYbB/LbEZfqhfmmuK/XJJixXfI1laF2zicyf+l0w== "@cspell/dict-docker@^1.1.6": version "1.1.6" @@ -1410,9 +1415,9 @@ integrity sha512-EOwGd533v47aP5QYV8GlSSKkmM9Eq8P3G/eBzSpH3Nl2+IneDOYOBLEUraHuiCtnOkNsz0xtZHArYhAB2bHWAw== "@cspell/dict-elixir@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-elixir/-/dict-elixir-4.0.2.tgz#1a37e92b45d744e1b78714c64811ca3dbc600a5c" - integrity sha512-/YeHlpZ1pE9VAyxp3V0xyUPapNyC61WwFuw2RByeoMqqYaIfS3Hw+JxtimOsAKVhUvgUH58zyKl5K5Q6FqgCpw== + version "4.0.3" + resolved "https://registry.yarnpkg.com/@cspell/dict-elixir/-/dict-elixir-4.0.3.tgz#57c25843e46cf3463f97da72d9ef8e37c818296f" + integrity sha512-g+uKLWvOp9IEZvrIvBPTr/oaO6619uH/wyqypqvwpmnmpjcfi8+/hqZH8YNKt15oviK8k4CkINIqNhyndG9d9Q== "@cspell/dict-en-common-misspellings@^1.0.2": version "1.0.2" @@ -1425,19 +1430,19 @@ integrity sha512-tKSSUf9BJEV+GJQAYGw5e+ouhEe2ZXE620S7BLKe3ZmpnjlNG9JqlnaBhkIMxKnNFkLY2BP/EARzw31AZnOv4g== "@cspell/dict-en_us@^4.3.2": - version "4.3.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-en_us/-/dict-en_us-4.3.2.tgz#ffe6e9a4decc453a0673f8e9a49a3a53ee020d2d" - integrity sha512-o8xtHDLPNzW6hK5b1TaDTWt25vVi9lWlL6/dZ9YoS+ZMj+Dy/yuXatqfOgeGyU3a9+2gxC0kbr4oufMUQXI2mQ== + version "4.3.4" + resolved "https://registry.yarnpkg.com/@cspell/dict-en_us/-/dict-en_us-4.3.4.tgz#176fbbcd546538787776007fa38a58c1424243a7" + integrity sha512-mR2yqWmFip1zTKja2SqyVMbzuqEThqkEJk9M32bMDziPJpEyOIPvLA0UPmj3cyRKJkRuVF0bhDCE33O+at38hw== "@cspell/dict-filetypes@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@cspell/dict-filetypes/-/dict-filetypes-3.0.0.tgz#3bb1ede3e28449f0d76024a7b918a556f210973a" - integrity sha512-Fiyp0z5uWaK0d2TfR9GMUGDKmUMAsOhGD5A0kHoqnNGswL2iw0KB0mFBONEquxU65fEnQv4R+jdM2d9oucujuA== - -"@cspell/dict-fonts@^3.0.1": version "3.0.1" - resolved "https://registry.yarnpkg.com/@cspell/dict-fonts/-/dict-fonts-3.0.1.tgz#0e0b875d463a9bd65e78145c9b6649ecad017df5" - integrity sha512-o2zVFKT3KcIBo88xlWhG4yOD0XQDjP7guc7C30ZZcSN8YCwaNc1nGoxU3QRea8iKcwk3cXH0G53nrQur7g9DjQ== + resolved "https://registry.yarnpkg.com/@cspell/dict-filetypes/-/dict-filetypes-3.0.1.tgz#61642b14af90894e6acf4c00f20ab2d097c1ed12" + integrity sha512-8z8mY1IbrTyTRumx2vvD9yzRhNMk9SajM/GtI5hdMM2pPpNSp25bnuauzjRf300eqlqPY2MNb5MmhBFO014DJw== + +"@cspell/dict-fonts@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@cspell/dict-fonts/-/dict-fonts-3.0.2.tgz#657d871cf627466765166cf18c448743c19317e2" + integrity sha512-Z5QdbgEI7DV+KPXrAeDA6dDm/vTzyaW53SGlKqz6PI5VhkOjgkBXv3YtZjnxMZ4dY2ZIqq+RUK6qa9Pi8rQdGQ== "@cspell/dict-fullstack@^3.1.5": version "3.1.5" @@ -1455,9 +1460,9 @@ integrity sha512-n1AxyX5Kgxij/sZFkxFJlzn3K9y/sCcgVPg/vz4WNJ4K9YeTsUmyGLA2OQI7d10GJeiuAo2AP1iZf2A8j9aj2w== "@cspell/dict-golang@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@cspell/dict-golang/-/dict-golang-6.0.1.tgz#86496bac8566fa97015f62cc81e6ec96bd98500f" - integrity sha512-Z19FN6wgg2M/A+3i1O8qhrGaxUUGOW8S2ySN0g7vp4HTHeFmockEPwYx7gArfssNIruw60JorZv+iLJ6ilTeow== + version "6.0.2" + resolved "https://registry.yarnpkg.com/@cspell/dict-golang/-/dict-golang-6.0.2.tgz#dcba58b9e658c1cc713c19965a358185d15d1987" + integrity sha512-5pyZn4AAiYukAW+gVMIMVmUSkIERFrDX2vtPDjg8PLQUhAHWiVeQSDjuOhq9/C5GCCEZU/zWSONkGiwLBBvV9A== "@cspell/dict-haskell@^4.0.1": version "4.0.1" @@ -1505,9 +1510,9 @@ integrity sha512-FEQJ4TnMcXEFslqBQkXa5HposMoCGsiBv2ux4IZuIXgadXeHKHUHk60iarWpjhzNzQLyN2GD7NoRMd12bK3Llw== "@cspell/dict-npm@^5.0.5": - version "5.0.5" - resolved "https://registry.yarnpkg.com/@cspell/dict-npm/-/dict-npm-5.0.5.tgz#fa6c1bc983e34ddc6d97094c758a4e166afd6214" - integrity sha512-eirZm4XpJNEcbmLGIwI2qXdRRlCKwEsH9mT3qCUytmbj6S6yn63F+8bShMW/yQBedV7+GXq9Td+cJdqiVutOiA== + version "5.0.7" + resolved "https://registry.yarnpkg.com/@cspell/dict-npm/-/dict-npm-5.0.7.tgz#f2977579413a09d53fb385ed48f93184aad55aea" + integrity sha512-6SegF0HsVaBTl6PlHjeErG8Av+tRYkUG1yaXUQIGWXU0A8oxhI0o4PuL65UWH5lkCKhJyGai69Cd0iytL0oVFg== "@cspell/dict-php@^4.0.1": version "4.0.1" @@ -1515,9 +1520,9 @@ integrity sha512-XaQ/JkSyq2c07MfRG54DjLi2CV+HHwS99DDCAao9Fq2JfkWroTQsUeek7wYZXJATrJVOULoV3HKih12x905AtQ== "@cspell/dict-powershell@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@cspell/dict-powershell/-/dict-powershell-5.0.1.tgz#55c5fa8dbf283c1b288febba9e06967b2b3b1aab" - integrity sha512-lLl+syWFgfv2xdsoxHfPIB2FGkn//XahCIKcRaf52AOlm1/aXeaJN579B9HCpvM7wawHzMqJ33VJuL/vb6Lc4g== + version "5.0.2" + resolved "https://registry.yarnpkg.com/@cspell/dict-powershell/-/dict-powershell-5.0.2.tgz#2b1d7d514354b6d7de405d5faaef30f8eca0ef09" + integrity sha512-IHfWLme3FXE7vnOmMncSBxOsMTdNWd1Vcyhag03WS8oANSgX8IZ+4lMI00mF0ptlgchf16/OU8WsV4pZfikEFw== "@cspell/dict-public-licenses@^2.0.2": version "2.0.2" @@ -1525,9 +1530,11 @@ integrity sha512-baKkbs/WGEV2lCWZoL0KBPh3uiPcul5GSDwmXEBAsR5McEW52LF94/b7xWM0EmSAc/y8ODc5LnPYC7RDRLi6LQ== "@cspell/dict-python@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-python/-/dict-python-4.0.2.tgz#36582b21c1fda7f54d95052968b845dd595b585f" - integrity sha512-w1jSWDR1CkO23cZFbSYgnD/ZqknDZSVCI1AOE6sSszOJR8shmBkV3lMBYd+vpLsWhmkLLBcZTXDkiqFLXDGowQ== + version "4.1.2" + resolved "https://registry.yarnpkg.com/@cspell/dict-python/-/dict-python-4.1.2.tgz#64a050faf6ecba1e5fdee2ab7c31b2267247eb45" + integrity sha512-Whcn4K8R0Ux/hcx/P9Fbx6i29GwTaXgT3LTt95AuCnV5RRLrzsqoyZkz851hcg5z4kjUQVMduDl3HECGgW/FNw== + dependencies: + "@cspell/dict-data-science" "^1.0.0" "@cspell/dict-r@^2.0.1": version "2.0.1" @@ -1550,9 +1557,9 @@ integrity sha512-ph0twaRoV+ylui022clEO1dZ35QbeEQaKTaV2sPOsdwIokABPIiK09oWwGK9qg7jRGQwVaRPEq0Vp+IG1GpqSQ== "@cspell/dict-software-terms@^3.1.6": - version "3.1.6" - resolved "https://registry.yarnpkg.com/@cspell/dict-software-terms/-/dict-software-terms-3.1.6.tgz#27a6fd2919e7118bb793e541960ea1eeed6d0b3c" - integrity sha512-w46+pIMRVtrDuTZXK/YxDP5NL5yVoX0ImEPO0s9WbxdyyfhzAF3sGYHBGN/50OGLHExcqe6Idb9feoRC9mCLxw== + version "3.2.0" + resolved "https://registry.yarnpkg.com/@cspell/dict-software-terms/-/dict-software-terms-3.2.0.tgz#41f5a7ff187298f04c9d564d45423afaddf637e0" + integrity sha512-RI6sv4Bc4i42YH/ofVelv8lXpJRhCyS9IhI2BtejUoMXKhKA9gC01ATXOylx+oaQmj3t5ark4R50xKFRvC7ENA== "@cspell/dict-sql@^2.1.0": version "2.1.0" @@ -6047,18 +6054,18 @@ cspell-dictionary@6.31.1: fast-equals "^4.0.3" gensequence "^5.0.2" -cspell-gitignore@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-gitignore/-/cspell-gitignore-6.31.1.tgz#3000c4c6c740c04d6178c62a9b83111d5fc96779" - integrity sha512-PAcmjN6X89Z8qgjem6HYb+VmvVtKuc+fWs4sk21+jv2MiLk23Bkp+8slSaIDVR//58fxJkMx17PHyo2cDO/69A== +cspell-gitignore@6.31.2: + version "6.31.2" + resolved "https://registry.yarnpkg.com/cspell-gitignore/-/cspell-gitignore-6.31.2.tgz#c297f0c094a96ea1ba8849fd17fb1a7feb274318" + integrity sha512-B1i8aiXCIbb/08u0K3xnDyXtg0qD+lb5B2itOOXi7KXlPkKvIuN4hWyXxhVDweWyYWEzyXD5wBpPrqICVrStHQ== dependencies: - cspell-glob "6.31.1" + cspell-glob "6.31.2" find-up "^5.0.0" -cspell-glob@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-6.31.1.tgz#525db68469790f3d0c856fcdef7616dfbecfe1d2" - integrity sha512-ygEmr5hgE4QtO5+L3/ihfMKBhPipbapfS22ilksFSChKMc15Regds0z+z/1ZBoe+OFAPneQfIuBxMwQ/fB00GQ== +cspell-glob@6.31.2: + version "6.31.2" + resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-6.31.2.tgz#877d914420e38aa3b375066f425e5a33514cc5e2" + integrity sha512-ceTjHM4HaBgvG5S3oiB+PTPYq58EQYG6MmYpycDHzpR5I2H1NurK9lxWHfANmLbi0DsHn58tIZNDMUnnQj19Jw== dependencies: micromatch "^4.0.5" @@ -6070,20 +6077,20 @@ cspell-grammar@6.31.1: "@cspell/cspell-pipe" "6.31.1" "@cspell/cspell-types" "6.31.1" -cspell-io@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-6.31.1.tgz#5f26437e6e5d525a73c708bf524da50a180f3c2c" - integrity sha512-deZcpvTYY/NmLfOdOtzcm+nDvJZozKmj4TY3pPpX0HquPX0A/w42bFRT/zZNmRslFl8vvrCZZUog7SOc6ha3uA== +cspell-io@6.31.2: + version "6.31.2" + resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-6.31.2.tgz#5b1059779b8417510df077781a82cbe2b5c7463b" + integrity sha512-Lp7LsF/f35LaOneROb/9mWiprShz2ONxjYFAt3bYP7gIxq41lWi8QhO+SN6spoqPp/wQXjSqJ7MuTZsemxPRnA== dependencies: "@cspell/cspell-service-bus" "6.31.1" node-fetch "^2.6.9" -cspell-lib@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-6.31.1.tgz#716fe73302086d384e756ece917d50dafa6cfda4" - integrity sha512-KgSiulbLExY+z2jGwkO77+aAkyugsPAw7y07j3hTQLpd+0esPCZqrmbo2ItnkvkDNd/c34PqQCr7/044/rz8gw== +cspell-lib@6.31.2: + version "6.31.2" + resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-6.31.2.tgz#46e1f89876e5a5c055bc2493562c2c6d7ebff8fb" + integrity sha512-LqaB2ZfVfQHKL5aZzYoKU6/UxxAtWeXAYwpC9l+satXmajYyXtAh4kWmuW+y7kKRH2jA79rJQS3QE6ToeSqgQQ== dependencies: - "@cspell/cspell-bundled-dicts" "6.31.1" + "@cspell/cspell-bundled-dicts" "6.31.2" "@cspell/cspell-pipe" "6.31.1" "@cspell/cspell-types" "6.31.1" "@cspell/strong-weak-map" "6.31.1" @@ -6092,9 +6099,9 @@ cspell-lib@6.31.1: configstore "^5.0.1" cosmiconfig "8.0.0" cspell-dictionary "6.31.1" - cspell-glob "6.31.1" + cspell-glob "6.31.2" cspell-grammar "6.31.1" - cspell-io "6.31.1" + cspell-io "6.31.2" cspell-trie-lib "6.31.1" fast-equals "^4.0.3" find-up "^5.0.0" @@ -6115,18 +6122,19 @@ cspell-trie-lib@6.31.1: gensequence "^5.0.2" cspell@^6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell/-/cspell-6.31.1.tgz#78a1b3d32c8f6f232fb1a00b2df8a8e8d72cf6fe" - integrity sha512-gyCtpkOpwI/TGibbtIgMBFnAUUp2hnYdvW/9Ky4RcneHtLH0+V/jUEbZD8HbRKz0GVZ6mhKWbNRSEyP9p3Cejw== + version "6.31.2" + resolved "https://registry.yarnpkg.com/cspell/-/cspell-6.31.2.tgz#c334ac34353fe446d82c27fe348bb17b4b3e9f7f" + integrity sha512-HJcQ8jqL/1N3Mj5dufFnIZCX3ACuRoFTSVY6h3Bo5wBqd2iiJTyeQ1SY9Zymlxtb2KyJ6jQRiFmkWeFx2HVs7w== dependencies: "@cspell/cspell-pipe" "6.31.1" + "@cspell/cspell-types" "6.31.1" "@cspell/dynamic-import" "6.31.1" chalk "^4.1.2" commander "^10.0.0" - cspell-gitignore "6.31.1" - cspell-glob "6.31.1" - cspell-io "6.31.1" - cspell-lib "6.31.1" + cspell-gitignore "6.31.2" + cspell-glob "6.31.2" + cspell-io "6.31.2" + cspell-lib "6.31.2" fast-glob "^3.2.12" fast-json-stable-stringify "^2.1.0" file-entry-cache "^6.0.1" From c79fec7e761cc2bccf839f761cff6f53652597f5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 21 Jul 2023 18:49:54 +0930 Subject: [PATCH 15/22] chore(deps): update dependency esbuild to v0.18.14 (#7280) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 226 +++++++++++++++++++++++++++--------------------------- 1 file changed, 113 insertions(+), 113 deletions(-) diff --git a/yarn.lock b/yarn.lock index c13888be975f..8de17613b473 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2125,220 +2125,220 @@ resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz#bafb75234a5d3d1b690e7c2956a599345e84a2fd" integrity sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA== -"@esbuild/android-arm64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.13.tgz#70ef455455654c7800c31ae55ae295d81712238c" - integrity sha512-j7NhycJUoUAG5kAzGf4fPWfd17N6SM3o1X6MlXVqfHvs2buFraCJzos9vbeWjLxOyBKHyPOnuCuipbhvbYtTAg== +"@esbuild/android-arm64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.15.tgz#abbe87b815d2f95ec749ffb4eba65d7d5343411f" + integrity sha512-NI/gnWcMl2kXt1HJKOn2H69SYn4YNheKo6NZt1hyfKWdMbaGadxjZIkcj4Gjk/WPxnbFXs9/3HjGHaknCqjrww== "@esbuild/android-arm@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.17.19.tgz#5898f7832c2298bc7d0ab53701c57beb74d78b4d" integrity sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A== -"@esbuild/android-arm@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.18.13.tgz#15db83099855fc4193658a40687893ee5c95d7a9" - integrity sha512-KwqFhxRFMKZINHzCqf8eKxE0XqWlAVPRxwy6rc7CbVFxzUWB2sA/s3hbMZeemPdhN3fKBkqOaFhTbS8xJXYIWQ== +"@esbuild/android-arm@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.18.15.tgz#6afedd79c68d5d4d1e434e20a9ab620bb5849372" + integrity sha512-wlkQBWb79/jeEEoRmrxt/yhn5T1lU236OCNpnfRzaCJHZ/5gf82uYx1qmADTBWE0AR/v7FiozE1auk2riyQd3w== "@esbuild/android-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.17.19.tgz#658368ef92067866d95fb268719f98f363d13ae1" integrity sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww== -"@esbuild/android-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.18.13.tgz#473d589219e1c06e305cf61ca77b8f69d9b6ffab" - integrity sha512-M2eZkRxR6WnWfVELHmv6MUoHbOqnzoTVSIxgtsyhm/NsgmL+uTmag/VVzdXvmahak1I6sOb1K/2movco5ikDJg== +"@esbuild/android-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.18.15.tgz#cdd886a58748b1584ad72d960c446fa958c11ab3" + integrity sha512-FM9NQamSaEm/IZIhegF76aiLnng1kEsZl2eve/emxDeReVfRuRNmvT28l6hoFD9TsCxpK+i4v8LPpEj74T7yjA== "@esbuild/darwin-arm64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz#584c34c5991b95d4d48d333300b1a4e2ff7be276" integrity sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg== -"@esbuild/darwin-arm64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.13.tgz#0f525b2c1821a0591a06963582e5dc749ba51d45" - integrity sha512-f5goG30YgR1GU+fxtaBRdSW3SBG9pZW834Mmhxa6terzcboz7P2R0k4lDxlkP7NYRIIdBbWp+VgwQbmMH4yV7w== +"@esbuild/darwin-arm64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.15.tgz#648b124a6a63022adb5b0cf441e264e8f5ba4af2" + integrity sha512-XmrFwEOYauKte9QjS6hz60FpOCnw4zaPAb7XV7O4lx1r39XjJhTN7ZpXqJh4sN6q60zbP6QwAVVA8N/wUyBH/w== "@esbuild/darwin-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz#7751d236dfe6ce136cce343dce69f52d76b7f6cb" integrity sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw== -"@esbuild/darwin-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.18.13.tgz#81965b690bae86bf1289b2ce0732506fd41fb545" - integrity sha512-RIrxoKH5Eo+yE5BtaAIMZaiKutPhZjw+j0OCh8WdvKEKJQteacq0myZvBDLU+hOzQOZWJeDnuQ2xgSScKf1Ovw== +"@esbuild/darwin-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.18.15.tgz#91cd2601c1604d123454d325e6b24fb6438350cf" + integrity sha512-bMqBmpw1e//7Fh5GLetSZaeo9zSC4/CMtrVFdj+bqKPGJuKyfNJ5Nf2m3LknKZTS+Q4oyPiON+v3eaJ59sLB5A== "@esbuild/freebsd-arm64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz#cacd171665dd1d500f45c167d50c6b7e539d5fd2" integrity sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ== -"@esbuild/freebsd-arm64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.13.tgz#895bb37fdea886db09549119158e044f146861f0" - integrity sha512-AfRPhHWmj9jGyLgW/2FkYERKmYR+IjYxf2rtSLmhOrPGFh0KCETFzSjx/JX/HJnvIqHt/DRQD/KAaVsUKoI3Xg== +"@esbuild/freebsd-arm64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.15.tgz#575940b0fc2f52833de4f6360445586742a8ff8b" + integrity sha512-LoTK5N3bOmNI9zVLCeTgnk5Rk0WdUTrr9dyDAQGVMrNTh9EAPuNwSTCgaKOKiDpverOa0htPcO9NwslSE5xuLA== "@esbuild/freebsd-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz#0769456eee2a08b8d925d7c00b79e861cb3162e4" integrity sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ== -"@esbuild/freebsd-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.13.tgz#0b1dfde3ff1b18f03f71e460f91dc463e6a23903" - integrity sha512-pGzWWZJBInhIgdEwzn8VHUBang8UvFKsvjDkeJ2oyY5gZtAM6BaxK0QLCuZY+qoj/nx/lIaItH425rm/hloETA== +"@esbuild/freebsd-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.15.tgz#09694fc601dd8d3263a1075977ee7d3488514ef8" + integrity sha512-62jX5n30VzgrjAjOk5orYeHFq6sqjvsIj1QesXvn5OZtdt5Gdj0vUNJy9NIpjfdNdqr76jjtzBJKf+h2uzYuTQ== "@esbuild/linux-arm64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz#38e162ecb723862c6be1c27d6389f48960b68edb" integrity sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg== -"@esbuild/linux-arm64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.18.13.tgz#350febed5d32d8ec1a424a4c4d7c9ba885604960" - integrity sha512-hCzZbVJEHV7QM77fHPv2qgBcWxgglGFGCxk6KfQx6PsVIdi1u09X7IvgE9QKqm38OpkzaAkPnnPqwRsltvLkIQ== +"@esbuild/linux-arm64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.18.15.tgz#2f5d226b024964f2b5b6bce7c874a8ad31785fa2" + integrity sha512-BWncQeuWDgYv0jTNzJjaNgleduV4tMbQjmk/zpPh/lUdMcNEAxy+jvneDJ6RJkrqloG7tB9S9rCrtfk/kuplsQ== "@esbuild/linux-arm@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz#1a2cd399c50040184a805174a6d89097d9d1559a" integrity sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA== -"@esbuild/linux-arm@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.18.13.tgz#47639d73d894026350eaccf7c174f1d26b747d6a" - integrity sha512-4iMxLRMCxGyk7lEvkkvrxw4aJeC93YIIrfbBlUJ062kilUUnAiMb81eEkVvCVoh3ON283ans7+OQkuy1uHW+Hw== +"@esbuild/linux-arm@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.18.15.tgz#172331fc66bbe89ba96e5e2ad583b2faa132d85c" + integrity sha512-dT4URUv6ir45ZkBqhwZwyFV6cH61k8MttIwhThp2BGiVtagYvCToF+Bggyx2VI57RG4Fbt21f9TmXaYx0DeUJg== "@esbuild/linux-ia32@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz#e28c25266b036ce1cabca3c30155222841dc035a" integrity sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ== -"@esbuild/linux-ia32@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.18.13.tgz#a901a16349c58bf6f873bced36bdf46a5f4dac5d" - integrity sha512-I3OKGbynl3AAIO6onXNrup/ttToE6Rv2XYfFgLK/wnr2J+1g+7k4asLrE+n7VMhaqX+BUnyWkCu27rl+62Adug== +"@esbuild/linux-ia32@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.18.15.tgz#fa797051131ee5f46d70c65a7edd14b6230cfc2f" + integrity sha512-JPXORvgHRHITqfms1dWT/GbEY89u848dC08o0yK3fNskhp0t2TuNUnsrrSgOdH28ceb1hJuwyr8R/1RnyPwocw== "@esbuild/linux-loong64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz#0f887b8bb3f90658d1a0117283e55dbd4c9dcf72" integrity sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ== -"@esbuild/linux-loong64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.18.13.tgz#faa08db402c18e351234719e00aba98867aa34ce" - integrity sha512-8pcKDApAsKc6WW51ZEVidSGwGbebYw2qKnO1VyD8xd6JN0RN6EUXfhXmDk9Vc4/U3Y4AoFTexQewQDJGsBXBpg== +"@esbuild/linux-loong64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.18.15.tgz#aeae1fa3d92b1486a91c0cb1cfd9c0ebe9168de4" + integrity sha512-kArPI0DopjJCEplsVj/H+2Qgzz7vdFSacHNsgoAKpPS6W/Ndh8Oe24HRDQ5QCu4jHgN6XOtfFfLpRx3TXv/mEg== "@esbuild/linux-mips64el@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz#f5d2a0b8047ea9a5d9f592a178ea054053a70289" integrity sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A== -"@esbuild/linux-mips64el@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.13.tgz#2123a54b49ddc1a1dff057bba8a9a5e9f26e5009" - integrity sha512-6GU+J1PLiVqWx8yoCK4Z0GnfKyCGIH5L2KQipxOtbNPBs+qNDcMJr9euxnyJ6FkRPyMwaSkjejzPSISD9hb+gg== +"@esbuild/linux-mips64el@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.15.tgz#b63cfe356c33807c4d8ee5a75452922e98502073" + integrity sha512-b/tmngUfO02E00c1XnNTw/0DmloKjb6XQeqxaYuzGwHe0fHVgx5/D6CWi+XH1DvkszjBUkK9BX7n1ARTOst59w== "@esbuild/linux-ppc64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz#876590e3acbd9fa7f57a2c7d86f83717dbbac8c7" integrity sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg== -"@esbuild/linux-ppc64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.13.tgz#9a9befd275a6a3f5baeed89aaafb746df7ba735d" - integrity sha512-pfn/OGZ8tyR8YCV7MlLl5hAit2cmS+j/ZZg9DdH0uxdCoJpV7+5DbuXrR+es4ayRVKIcfS9TTMCs60vqQDmh+w== +"@esbuild/linux-ppc64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.15.tgz#7dcb394e69cb47e4dc8a5960dd58b1a273d07f5d" + integrity sha512-KXPY69MWw79QJkyvUYb2ex/OgnN/8N/Aw5UDPlgoRtoEfcBqfeLodPr42UojV3NdkoO4u10NXQdamWm1YEzSKw== "@esbuild/linux-riscv64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz#7f49373df463cd9f41dc34f9b2262d771688bf09" integrity sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA== -"@esbuild/linux-riscv64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.13.tgz#6644a5b5840fa0c3ffade6f87d943413ece520a8" - integrity sha512-aIbhU3LPg0lOSCfVeGHbmGYIqOtW6+yzO+Nfv57YblEK01oj0mFMtvDJlOaeAZ6z0FZ9D13oahi5aIl9JFphGg== +"@esbuild/linux-riscv64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.15.tgz#fdfb9cf23b50d33112315e3194b9e16f7abf6c30" + integrity sha512-komK3NEAeeGRnvFEjX1SfVg6EmkfIi5aKzevdvJqMydYr9N+pRQK0PGJXk+bhoPZwOUgLO4l99FZmLGk/L1jWg== "@esbuild/linux-s390x@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz#e2afd1afcaf63afe2c7d9ceacd28ec57c77f8829" integrity sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q== -"@esbuild/linux-s390x@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.18.13.tgz#c1367a0a02b37f6b0382e71d9c9d97352ca23013" - integrity sha512-Pct1QwF2sp+5LVi4Iu5Y+6JsGaV2Z2vm4O9Dd7XZ5tKYxEHjFtb140fiMcl5HM1iuv6xXO8O1Vrb1iJxHlv8UA== +"@esbuild/linux-s390x@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.18.15.tgz#ce608d95989a502878d7cb1167df791e45268011" + integrity sha512-632T5Ts6gQ2WiMLWRRyeflPAm44u2E/s/TJvn+BP6M5mnHSk93cieaypj3VSMYO2ePTCRqAFXtuYi1yv8uZJNA== "@esbuild/linux-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz#8a0e9738b1635f0c53389e515ae83826dec22aa4" integrity sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw== -"@esbuild/linux-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.18.13.tgz#892674f0918ee3f5e523270cf49a69a557fb64c0" - integrity sha512-zTrIP0KzYP7O0+3ZnmzvUKgGtUvf4+piY8PIO3V8/GfmVd3ZyHJGz7Ht0np3P1wz+I8qJ4rjwJKqqEAbIEPngA== +"@esbuild/linux-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.18.15.tgz#49bbba5607702709f63b41906b4f1bcc44cf2f8e" + integrity sha512-MsHtX0NgvRHsoOtYkuxyk4Vkmvk3PLRWfA4okK7c+6dT0Fu4SUqXAr9y4Q3d8vUf1VWWb6YutpL4XNe400iQ1g== "@esbuild/netbsd-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz#c29fb2453c6b7ddef9a35e2c18b37bda1ae5c462" integrity sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q== -"@esbuild/netbsd-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.13.tgz#67954292195ecbdae33ab09a9ae6a7f566e49d04" - integrity sha512-I6zs10TZeaHDYoGxENuksxE1sxqZpCp+agYeW039yqFwh3MgVvdmXL5NMveImOC6AtpLvE4xG5ujVic4NWFIDQ== +"@esbuild/netbsd-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.15.tgz#08b5ccaf027c7e2174b9a19c29bebfe59dce1cfb" + integrity sha512-djST6s+jQiwxMIVQ5rlt24JFIAr4uwUnzceuFL7BQT4CbrRtqBPueS4GjXSiIpmwVri1Icj/9pFRJ7/aScvT+A== "@esbuild/openbsd-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz#95e75a391403cb10297280d524d66ce04c920691" integrity sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g== -"@esbuild/openbsd-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.13.tgz#b3eef873dfab547fbe7bcdb3573e1c59dea676b7" - integrity sha512-W5C5nczhrt1y1xPG5bV+0M12p2vetOGlvs43LH8SopQ3z2AseIROu09VgRqydx5qFN7y9qCbpgHLx0kb0TcW7g== +"@esbuild/openbsd-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.15.tgz#38ec4223ebab562f0a89ffe20a40f05d500f89f0" + integrity sha512-naeRhUIvhsgeounjkF5mvrNAVMGAm6EJWiabskeE5yOeBbLp7T89tAEw0j5Jm/CZAwyLe3c67zyCWH6fsBLCpw== "@esbuild/sunos-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz#722eaf057b83c2575937d3ffe5aeb16540da7273" integrity sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg== -"@esbuild/sunos-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.18.13.tgz#b368080f42dbb5ae926d0567c02bcd68a34c5efd" - integrity sha512-X/xzuw4Hzpo/yq3YsfBbIsipNgmsm8mE/QeWbdGdTTeZ77fjxI2K0KP3AlhZ6gU3zKTw1bKoZTuKLnqcJ537qw== +"@esbuild/sunos-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.18.15.tgz#dbbebf641957a54b77f39ca9b10b0b38586799ba" + integrity sha512-qkT2+WxyKbNIKV1AEhI8QiSIgTHMcRctzSaa/I3kVgMS5dl3fOeoqkb7pW76KwxHoriImhx7Mg3TwN/auMDsyQ== "@esbuild/win32-arm64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz#9aa9dc074399288bdcdd283443e9aeb6b9552b6f" integrity sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag== -"@esbuild/win32-arm64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.18.13.tgz#11dedda0e8cfb5f781411ea362b2040304be0fc3" - integrity sha512-4CGYdRQT/ILd+yLLE5i4VApMPfGE0RPc/wFQhlluDQCK09+b4JDbxzzjpgQqTPrdnP7r5KUtGVGZYclYiPuHrw== +"@esbuild/win32-arm64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.18.15.tgz#7f15fe5d14b9b24eb18ca211ad92e0f5df92a18b" + integrity sha512-HC4/feP+pB2Vb+cMPUjAnFyERs+HJN7E6KaeBlFdBv799MhD+aPJlfi/yk36SED58J9TPwI8MAcVpJgej4ud0A== "@esbuild/win32-ia32@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz#95ad43c62ad62485e210f6299c7b2571e48d2b03" integrity sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw== -"@esbuild/win32-ia32@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.18.13.tgz#6b8aa95515c05827b7c24c9db9581943566e0dcb" - integrity sha512-D+wKZaRhQI+MUGMH+DbEr4owC2D7XnF+uyGiZk38QbgzLcofFqIOwFs7ELmIeU45CQgfHNy9Q+LKW3cE8g37Kg== +"@esbuild/win32-ia32@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.18.15.tgz#a6609735a4a5e8fbdeb045720bc8be46825566fa" + integrity sha512-ovjwoRXI+gf52EVF60u9sSDj7myPixPxqzD5CmkEUmvs+W9Xd0iqISVBQn8xcx4ciIaIVlWCuTbYDOXOnOL44Q== "@esbuild/win32-x64@0.17.19": version "0.17.19" resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz#8cfaf2ff603e9aabb910e9c0558c26cf32744061" integrity sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA== -"@esbuild/win32-x64@0.18.13": - version "0.18.13" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.18.13.tgz#031f69b1f4cf62a18c38d502458c0b8b02625461" - integrity sha512-iVl6lehAfJS+VmpF3exKpNQ8b0eucf5VWfzR8S7xFve64NBNz2jPUgx1X93/kfnkfgP737O+i1k54SVQS7uVZA== +"@esbuild/win32-x64@0.18.15": + version "0.18.15" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.18.15.tgz#41ee66253566124cc44bce1b4c760a87d9f5bf1d" + integrity sha512-imUxH9a3WJARyAvrG7srLyiK73XdX83NXQkjKvQ+7vPh3ZxoLrzvPkQKKw2DwZ+RV2ZB6vBfNHP8XScAmQC3aA== "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" @@ -6939,32 +6939,32 @@ esbuild@~0.17.6: "@esbuild/win32-x64" "0.17.19" esbuild@~0.18.0: - version "0.18.13" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.13.tgz#59160add6c3420947fe008238140ed3480baf817" - integrity sha512-vhg/WR/Oiu4oUIkVhmfcc23G6/zWuEQKFS+yiosSHe4aN6+DQRXIfeloYGibIfVhkr4wyfuVsGNLr+sQU1rWWw== + version "0.18.15" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.15.tgz#5b5c1a22e608afd5675f82ad466c4d2cfd723f85" + integrity sha512-3WOOLhrvuTGPRzQPU6waSDWrDTnQriia72McWcn6UCi43GhCHrXH4S59hKMeez+IITmdUuUyvbU9JIp+t3xlPQ== optionalDependencies: - "@esbuild/android-arm" "0.18.13" - "@esbuild/android-arm64" "0.18.13" - "@esbuild/android-x64" "0.18.13" - "@esbuild/darwin-arm64" "0.18.13" - "@esbuild/darwin-x64" "0.18.13" - "@esbuild/freebsd-arm64" "0.18.13" - "@esbuild/freebsd-x64" "0.18.13" - "@esbuild/linux-arm" "0.18.13" - "@esbuild/linux-arm64" "0.18.13" - "@esbuild/linux-ia32" "0.18.13" - "@esbuild/linux-loong64" "0.18.13" - "@esbuild/linux-mips64el" "0.18.13" - "@esbuild/linux-ppc64" "0.18.13" - "@esbuild/linux-riscv64" "0.18.13" - "@esbuild/linux-s390x" "0.18.13" - "@esbuild/linux-x64" "0.18.13" - "@esbuild/netbsd-x64" "0.18.13" - "@esbuild/openbsd-x64" "0.18.13" - "@esbuild/sunos-x64" "0.18.13" - "@esbuild/win32-arm64" "0.18.13" - "@esbuild/win32-ia32" "0.18.13" - "@esbuild/win32-x64" "0.18.13" + "@esbuild/android-arm" "0.18.15" + "@esbuild/android-arm64" "0.18.15" + "@esbuild/android-x64" "0.18.15" + "@esbuild/darwin-arm64" "0.18.15" + "@esbuild/darwin-x64" "0.18.15" + "@esbuild/freebsd-arm64" "0.18.15" + "@esbuild/freebsd-x64" "0.18.15" + "@esbuild/linux-arm" "0.18.15" + "@esbuild/linux-arm64" "0.18.15" + "@esbuild/linux-ia32" "0.18.15" + "@esbuild/linux-loong64" "0.18.15" + "@esbuild/linux-mips64el" "0.18.15" + "@esbuild/linux-ppc64" "0.18.15" + "@esbuild/linux-riscv64" "0.18.15" + "@esbuild/linux-s390x" "0.18.15" + "@esbuild/linux-x64" "0.18.15" + "@esbuild/netbsd-x64" "0.18.15" + "@esbuild/openbsd-x64" "0.18.15" + "@esbuild/sunos-x64" "0.18.15" + "@esbuild/win32-arm64" "0.18.15" + "@esbuild/win32-ia32" "0.18.15" + "@esbuild/win32-x64" "0.18.15" escalade@^3.1.1: version "3.1.1" From e93245b79ed576cfdeb886099f1aaf16780b38d2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jul 2023 10:01:18 +0930 Subject: [PATCH 16/22] chore(deps): update dependency @swc/core to v1.3.70 (#7281) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 82 +++++++++++++++++++++++++++---------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8de17613b473..6ccd6816de9f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3632,84 +3632,84 @@ "@swc/core-android-arm64@link:./tools/dummypkg": version "1.0.0" -"@swc/core-darwin-arm64@1.3.69": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.69.tgz#e22032471244ec80c22bee8efc2100e456bb9488" - integrity sha512-IjZTf12zIPWkV3D7toaLDoJPSkLhQ4fDH8G6/yCJUI27cBFOI3L8LXqptYmISoN5yYdrcnNpdqdapD09JPuNJg== +"@swc/core-darwin-arm64@1.3.70": + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.70.tgz#056ac6899e22cb7f7be21388d4d938ca5123a72b" + integrity sha512-31+mcl0dgdRHvZRjhLOK9V6B+qJ7nxDZYINr9pBlqGWxknz37Vld5KK19Kpr79r0dXUZvaaelLjCnJk9dA2PcQ== -"@swc/core-darwin-x64@1.3.69": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.69.tgz#4c2034ba409b9e061b9e8ad56a762b8bb7815f18" - integrity sha512-/wBO0Rn5oS5dJI/L9kJRkPAdksVwl5H9nleW/NM3A40N98VV8T7h/i1nO051mxIjq0R6qXVGOWFbBoLrPYucJg== +"@swc/core-darwin-x64@1.3.70": + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.70.tgz#3945814de6fadbee5b46cb2a3422353acb420c5c" + integrity sha512-GMFJ65E18zQC80t0os+TZvI+8lbRuitncWVge/RXmXbVLPRcdykP4EJ87cqzcG5Ah0z18/E0T+ixD6jHRisrYQ== "@swc/core-freebsd-x64@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm-gnueabihf@1.3.69": +"@swc/core-linux-arm-gnueabihf@1.3.70": version "1.0.0" "@swc/core-linux-arm-gnueabihf@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm64-gnu@1.3.69": +"@swc/core-linux-arm64-gnu@1.3.70": version "1.0.0" "@swc/core-linux-arm64-gnu@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm64-musl@1.3.69": +"@swc/core-linux-arm64-musl@1.3.70": version "1.0.0" "@swc/core-linux-arm64-musl@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-x64-gnu@1.3.69": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.69.tgz#6879057d28f261b051fac52daca6c256f3a7fb7d" - integrity sha512-b+DUlVxYox3BwD3PyTwhLvqtu6TYZtW+S6O0FnttH11o4skHN0XyJ/cUZSI0X2biSmfDsizRDUt1PWPFM+F7SA== +"@swc/core-linux-x64-gnu@1.3.70": + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.70.tgz#774351532b154ed36a5c6d14b647e7a8ab510028" + integrity sha512-/nCly+V4xfMVwfEUoLLAukxUSot/RcSzsf6GdsGTjFcrp5sZIntAjokYRytm3VT1c2TK321AfBorsi9R5w8Y7Q== -"@swc/core-linux-x64-musl@1.3.69": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.69.tgz#bf4f9a74156524211472bb713d34f0bb7265669f" - integrity sha512-QXjsI+f8n9XPZHUvmGgkABpzN4M9kdSbhqBOZmv3o0AsDGNCA4uVowQqgZoPFAqlJTpwHeDmrv5sQ13HN+LOGw== +"@swc/core-linux-x64-musl@1.3.70": + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.70.tgz#c0b1b4ad5f4ef187eaa093589a4933ecb6836546" + integrity sha512-HoOsPJbt361KGKaivAK0qIiYARkhzlxeAfvF5NlnKxkIMOZpQ46Lwj3tR0VWohKbrhS+cYKFlVuDi5XnDkx0XA== -"@swc/core-win32-arm64-msvc@1.3.69": +"@swc/core-win32-arm64-msvc@1.3.70": version "1.0.0" "@swc/core-win32-arm64-msvc@link:./tools/dummypkg": version "1.0.0" -"@swc/core-win32-ia32-msvc@1.3.69": +"@swc/core-win32-ia32-msvc@1.3.70": version "1.0.0" "@swc/core-win32-ia32-msvc@link:./tools/dummypkg": version "1.0.0" -"@swc/core-win32-x64-msvc@1.3.69": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.69.tgz#304e1050d59bae21215a15839b05668d48a92837" - integrity sha512-ieBscU0gUgKjaseFI07tAaGqHvKyweNknPeSYEZOasVZUczhD6fK2GRnVREhv2RB2qdKC/VGFBsgRDMgzq1VLw== +"@swc/core-win32-x64-msvc@1.3.70": + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.70.tgz#5b3acddb96fdf60df089b837061915cb4be94eaa" + integrity sha512-LE8lW46+TQBzVkn2mHBlk8DIElPIZ2dO5P8AbJiARNBAnlqQWu67l9gWM89UiZ2l33J2cI37pHzON3tKnT8f9g== "@swc/core@^1.3.68": - version "1.3.69" - resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.69.tgz#b4a41e84de11832c233fbe714c6e412d8404bab0" - integrity sha512-Khc/DE9D5+2tYTHgAIp5DZARbs8kldWg3b0Jp6l8FQLjelcLFmlQWSwKhVZrgv4oIbgZydIp8jInsvTalMHqnQ== + version "1.3.70" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.70.tgz#f5ddc6fe6add7a99f5b94d2214ad0d8527d11479" + integrity sha512-LWVWlEDLlOD25PvA2NEz41UzdwXnlDyBiZbe69s3zM0DfCPwZXLUm79uSqH9ItsOjTrXSL5/1+XUL6C/BZwChA== optionalDependencies: - "@swc/core-darwin-arm64" "1.3.69" - "@swc/core-darwin-x64" "1.3.69" - "@swc/core-linux-arm-gnueabihf" "1.3.69" - "@swc/core-linux-arm64-gnu" "1.3.69" - "@swc/core-linux-arm64-musl" "1.3.69" - "@swc/core-linux-x64-gnu" "1.3.69" - "@swc/core-linux-x64-musl" "1.3.69" - "@swc/core-win32-arm64-msvc" "1.3.69" - "@swc/core-win32-ia32-msvc" "1.3.69" - "@swc/core-win32-x64-msvc" "1.3.69" + "@swc/core-darwin-arm64" "1.3.70" + "@swc/core-darwin-x64" "1.3.70" + "@swc/core-linux-arm-gnueabihf" "1.3.70" + "@swc/core-linux-arm64-gnu" "1.3.70" + "@swc/core-linux-arm64-musl" "1.3.70" + "@swc/core-linux-x64-gnu" "1.3.70" + "@swc/core-linux-x64-musl" "1.3.70" + "@swc/core-win32-arm64-msvc" "1.3.70" + "@swc/core-win32-ia32-msvc" "1.3.70" + "@swc/core-win32-x64-msvc" "1.3.70" "@swc/jest@^0.2.26": - version "0.2.26" - resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.26.tgz#6ef2d6d31869e3aaddc132603bc21f2e4c57cc5d" - integrity sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A== + version "0.2.27" + resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.27.tgz#f6cbd0b6f95cf689c3344c63fc379fa680cdbf52" + integrity sha512-Xt8EJ6Wy0NYVL8KDPcDMsuUSzyV2UAByamyy28x2iDZCJw2eVz3acedCGBYxxlPR/DNr6QbA35OSymuXhC9QVA== dependencies: "@jest/create-cache-key-function" "^27.4.2" jsonc-parser "^3.2.0" From fb7762f71346c9af3e97c9c8ff69691ee8fc8c40 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jul 2023 13:53:09 +0930 Subject: [PATCH 17/22] chore(deps): update dependency @microsoft/api-extractor to v7.36.3 (#7291) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6ccd6816de9f..0a2419491119 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2766,30 +2766,30 @@ resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-1.6.22.tgz#219dfd89ae5b97a8801f015323ffa4b62f45718b" integrity sha512-H1rQc1ZOHANWBvPcW+JpGwr+juXSxM8Q8YCkm3GhZd8REu1fHR3z99CErO1p9pkcfcxZnMdIZdIsXkOHY0NilA== -"@microsoft/api-extractor-model@7.27.4": - version "7.27.4" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.27.4.tgz#ddc566ead99737c1032d692829edd954870f7d35" - integrity sha512-HjqQFmuGPOS20rtnu+9Jj0QrqZyR59E+piUWXPMZTTn4jaZI+4UmsHSf3Id8vyueAhOBH2cgwBuRTE5R+MfSMw== +"@microsoft/api-extractor-model@7.27.5": + version "7.27.5" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.27.5.tgz#2220cf20c8587cd4cf78f82c20c4011a9e36a60f" + integrity sha512-9/tBzYMJitR+o+zkPr1lQh2+e8ClcaTF6eZo7vZGDqRt2O5XmXWPbYJZmxyM3wb5at6lfJNEeGZrQXLjsQ0Nbw== dependencies: "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.59.5" + "@rushstack/node-core-library" "3.59.6" "@microsoft/api-extractor@^7.36.1": - version "7.36.2" - resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.36.2.tgz#8f7696fcc3c9c0c43469e6f59c56349bc1631193" - integrity sha512-ONe/jOmTZtR3OjTkWKHmeSV1P5ozbHDxHr6FV3KoWyIl1AcPk2B3dmvVBM5eOlZB5bgM66nxcWQTZ6msQo2hHg== + version "7.36.3" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.36.3.tgz#b6c1a98ba04016adcd2cac918b5386bbc937fa40" + integrity sha512-u0H6362AQq+r55X8drHx4npgkrCfJnMzRRHfQo8PMNKB8TcBnrTLfXhXWi+xnTM6CzlU/netEN8c4bq581Rnrg== dependencies: - "@microsoft/api-extractor-model" "7.27.4" + "@microsoft/api-extractor-model" "7.27.5" "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.59.5" + "@rushstack/node-core-library" "3.59.6" "@rushstack/rig-package" "0.4.0" "@rushstack/ts-command-line" "4.15.1" colors "~1.2.1" lodash "~4.17.15" resolve "~1.22.1" - semver "~7.3.0" + semver "~7.5.4" source-map "~0.6.1" typescript "~5.0.4" @@ -3389,17 +3389,17 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@rushstack/node-core-library@3.59.5": - version "3.59.5" - resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.59.5.tgz#38034d4c38b5ddd7d1c7f04233ce1b2209b7ae1f" - integrity sha512-1IpV7LufrI1EoVO8hYsb3t6L8L+yp40Sa0OaOV2CIu1zx4e6ZeVNaVIEXFgMXBKdGXkAh21MnCaIzlDNpG6ZQw== +"@rushstack/node-core-library@3.59.6": + version "3.59.6" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.59.6.tgz#1dd2534a872549d463950a62b97d40fe3a6bdcf6" + integrity sha512-bMYJwNFfWXRNUuHnsE9wMlW/mOB4jIwSUkRKtu02CwZhQdmzMsUbxE0s1xOLwTpNIwlzfW/YT7OnOHgDffLgYg== dependencies: colors "~1.2.1" fs-extra "~7.0.1" import-lazy "~4.0.0" jju "~1.4.0" resolve "~1.22.1" - semver "~7.3.0" + semver "~7.5.4" z-schema "~5.0.2" "@rushstack/rig-package@0.4.0": @@ -13268,20 +13268,13 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0, semve resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: +semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4, semver@~7.5.4: version "7.5.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" -semver@~7.3.0: - version "7.3.8" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" - integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== - dependencies: - lru-cache "^6.0.0" - send@0.18.0: version "0.18.0" resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" From 131ae664bf2024bfa43af69ee21efbe2b7fd0473 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jul 2023 13:53:29 +0930 Subject: [PATCH 18/22] chore(deps): update dependency eslint-plugin-eslint-plugin to v5.1.1 (#7292) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 0a2419491119..58aa030de579 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7030,9 +7030,9 @@ eslint-plugin-eslint-comments@^3.2.0: ignore "^5.0.5" eslint-plugin-eslint-plugin@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-5.1.0.tgz#040e08aa057d187418acae9d7c336b156ba1db07" - integrity sha512-HOzgLRSZJdEZpLaXbA3qd/4Sfa09W6NTzDBqWd5zeQNc1wnsGfGYGE2Rr8nVDeckyFT5u7GlU+lYrXF89UyECg== + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-5.1.1.tgz#1de9f0511b0300bf85b3ddb29e9f7653fa684bf0" + integrity sha512-4MGDsG505Ot2TSDSYxFL0cpDo4Y+t6hKB8cfZw9Jx484VjXWDfiYC/A6cccWFtWoOOC0j+wGgQIIb11cdIAMBg== dependencies: eslint-utils "^3.0.0" estraverse "^5.3.0" From cdc7f8992f3374e80cf578bf750aa0a8ec03a5c0 Mon Sep 17 00:00:00 2001 From: Brad Zacher Date: Sat, 22 Jul 2023 02:35:36 -0700 Subject: [PATCH 19/22] docs: fix typos in v6 blog --- .../website/blog/2023-07-09-announcing-typescript-eslint-v6.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md b/packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md index e79664a58748..c4a5d6b7d3b5 100644 --- a/packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md +++ b/packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md @@ -110,6 +110,7 @@ See [our _Configurations_ linting docs](/linting/configs) for the updated docume For more information on these changes, see: +- [Our documentation on our configurations](https://typescript-eslint.io/linting/configs). - [Configs: Have recommended/strict configs include lesser configs, and simplify type checked names](https://github.com/typescript-eslint/typescript-eslint/discussions/6019) for the discussion leading up to these configuration changes. - [feat(eslint-plugin): rework configs: recommended, strict, stylistic; -type-checked](https://github.com/typescript-eslint/typescript-eslint/pull/5251) for the pull request implementing the changes. @@ -636,7 +637,7 @@ As of [feat: add package.json exports for public packages](https://github.com/ty Developers must now mostly import directly from the package names, e.g.: ```ts -import * as TSESLint from '@typescript-eslint/ts-eslint'; +import * as TSESLint from '@typescript-eslint/utils/ts-eslint'; ``` See [RFC: Use package.json exports to "hide" the dist folder for packages and control our exported surface-area](https://github.com/typescript-eslint/typescript-eslint/discussions/6015) for more backing context. From 6c9a5d5baaf75a098b34f6661fad58d42854d816 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jul 2023 03:31:11 -0700 Subject: [PATCH 20/22] chore(deps): update dependency stylelint to v15.10.2 (#7294) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index 58aa030de579..431bbd674590 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6149,10 +6149,10 @@ css-declaration-sorter@^6.3.0: resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.3.0.tgz#72ebd995c8f4532ff0036631f7365cce9759df14" integrity sha512-OGT677UGHJTAVMRhPO+HJ4oKln3wkBTwtDFH0ojbqm+MJm6xuDMHp2nkhh/ThaBqq20IbraBQSWKfSLNHQO9Og== -css-functions-list@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/css-functions-list/-/css-functions-list-3.1.0.tgz#cf5b09f835ad91a00e5959bcfc627cd498e1321b" - integrity sha512-/9lCvYZaUbBGvYUgYGFJ4dcYiyqdhSjG7IPVluoV8A1ILjkF7ilmhp1OGUz8n+nmBcu0RNrQAzgD8B6FJbrt2w== +css-functions-list@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/css-functions-list/-/css-functions-list-3.2.0.tgz#8290b7d064bf483f48d6559c10e98dc4d1ad19ee" + integrity sha512-d/jBMPyYybkkLVypgtGv12R+pIFw4/f/IHtCTxWpZc8ofTYOPigIgmA6vu5rMHartZC+WuXhBUHfnyNUIQSYrg== css-loader@^6.7.1: version "6.7.1" @@ -12190,10 +12190,10 @@ postcss-zindex@^5.1.0: resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-5.1.0.tgz#4a5c7e5ff1050bd4c01d95b1847dfdcc58a496ff" integrity sha512-fgFMf0OtVSBR1va1JNHYgMxYk73yhn/qb4uQDq1DLGYolz8gHCyr/sesEuGUaYs58E3ZJRcpoGuPVoB7Meiq9A== -postcss@^8.3.11, postcss@^8.4.13, postcss@^8.4.14, postcss@^8.4.21, postcss@^8.4.24, postcss@^8.4.7: - version "8.4.25" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.25.tgz#4a133f5e379eda7f61e906c3b1aaa9b81292726f" - integrity sha512-7taJ/8t2av0Z+sQEvNzCkpDynl0tX3uJMCODi6nT3PfASC7dYCWV9aQ+uiCf+KBD4SEFcu+GvJdGdwzQ6OSjCw== +postcss@^8.3.11, postcss@^8.4.13, postcss@^8.4.14, postcss@^8.4.21, postcss@^8.4.25, postcss@^8.4.7: + version "8.4.27" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.27.tgz#234d7e4b72e34ba5a92c29636734349e0d9c3057" + integrity sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ== dependencies: nanoid "^3.3.6" picocolors "^1.0.0" @@ -13973,9 +13973,9 @@ stylelint-order@^6.0.3: postcss-sorting "^8.0.2" stylelint@^15.10.1: - version "15.10.1" - resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-15.10.1.tgz#93f189958687e330c106b010cbec0c41dcae506d" - integrity sha512-CYkzYrCFfA/gnOR+u9kJ1PpzwG10WLVnoxHDuBA/JiwGqdM9+yx9+ou6SE/y9YHtfv1mcLo06fdadHTOx4gBZQ== + version "15.10.2" + resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-15.10.2.tgz#0ee5a8371d3a2e1ff27fefd48309d3ddef7c3405" + integrity sha512-UxqSb3hB74g4DTO45QhUHkJMjKKU//lNUAOWyvPBVPZbCknJ5HjOWWZo+UDuhHa9FLeVdHBZXxu43eXkjyIPWg== dependencies: "@csstools/css-parser-algorithms" "^2.3.0" "@csstools/css-tokenizer" "^2.1.1" @@ -13984,7 +13984,7 @@ stylelint@^15.10.1: balanced-match "^2.0.0" colord "^2.9.3" cosmiconfig "^8.2.0" - css-functions-list "^3.1.0" + css-functions-list "^3.2.0" css-tree "^2.3.1" debug "^4.3.4" fast-glob "^3.3.0" @@ -14004,7 +14004,7 @@ stylelint@^15.10.1: micromatch "^4.0.5" normalize-path "^3.0.0" picocolors "^1.0.0" - postcss "^8.4.24" + postcss "^8.4.25" postcss-resolve-nested-selector "^0.1.1" postcss-safe-parser "^6.0.0" postcss-selector-parser "^6.0.13" From 9105011681514372a7e851768d83a603fa19e8f2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Jul 2023 03:31:26 -0700 Subject: [PATCH 21/22] chore(deps): update nx to v16.5.3 (#7282) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 12 +-- yarn.lock | 300 ++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 229 insertions(+), 83 deletions(-) diff --git a/package.json b/package.json index e41825e5de00..e93d904d0d6d 100644 --- a/package.json +++ b/package.json @@ -60,10 +60,10 @@ "@babel/eslint-parser": "^7.22.7", "@babel/parser": "^7.22.7", "@babel/types": "^7.22.5", - "@nrwl/nx-cloud": "16.1.0", - "@nx/jest": "16.5.2", - "@nx/linter": "16.5.2", - "@nx/workspace": "16.5.2", + "@nrwl/nx-cloud": "16.1.1", + "@nx/jest": "16.5.3", + "@nx/linter": "16.5.3", + "@nx/workspace": "16.5.3", "@swc/core": "^1.3.68", "@swc/jest": "^0.2.26", "@types/babel__code-frame": "^7.0.3", @@ -107,8 +107,8 @@ "markdownlint-cli": "^0.35.0", "ncp": "^2.0.0", "netlify": "^13.1.9", - "nx-cloud": "16.1.0", - "nx": "16.5.2", + "nx-cloud": "16.1.1", + "nx": "16.5.3", "patch-package": "^7.0.0", "prettier": "^2.8.4", "pretty-format": "^29.6.1", diff --git a/yarn.lock b/yarn.lock index 431bbd674590..a5a4df83eb5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2921,33 +2921,40 @@ dependencies: "@nx/devkit" "16.5.2" -"@nrwl/jest@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nrwl/jest/-/jest-16.5.2.tgz#8ff6176e5a9604a094f6c02793e163f41db5298c" - integrity sha512-Chd4YGyo+8G1OmqAd9k0dtMjo9rO7Uh8vsUkWFtEDIyxmmElEReBC9nGBE/9FQYZFoc+xP1a5IaceGqupZX8bQ== +"@nrwl/devkit@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-16.5.3.tgz#78e1170a173148c9af53fa4bb149e97cdac7ca70" + integrity sha512-a/XtuamF0PbiW8glJwI91Tx234qNYCF0PULyk2tjqp/idefiJlbb1eIkPz3kTWvZUG6tvPLdmwzpdHOqqH13Aw== dependencies: - "@nx/jest" "16.5.2" + "@nx/devkit" "16.5.3" -"@nrwl/js@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nrwl/js/-/js-16.5.2.tgz#cb1bedaa7c033fa3f892adfd2199166a0dd59faf" - integrity sha512-5kr4h869oq3qoKPiVELSWBrb18szZKjKHmCOxJvyL1AUeNR+F7AQxYcuyqNwLKQXBVMhQU2cAUJjqUc0gezlnA== +"@nrwl/jest@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/jest/-/jest-16.5.3.tgz#9d4344f29b16816749ea84a79dae43e44ceedf06" + integrity sha512-QwClOTlcVf8uD17vPUlnmAl/6Ul8t9EEPbwtUXZb6QZSJ3Ihn/7EphmKhz77lJ2Em8XHpdkPdBTVXg665J/CmA== dependencies: - "@nx/js" "16.5.2" + "@nx/jest" "16.5.3" -"@nrwl/linter@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nrwl/linter/-/linter-16.5.2.tgz#16a7cd8ce025d4efbd80af60b489ea4d92321fa2" - integrity sha512-8P9rxKVOWvckwn80YUJwI7PUI2Tegp0ecbwZi2gju0KATV1sEGxrrR2luHHaxfgC+lXGj1B88LzgxpDaD8Q9Hw== +"@nrwl/js@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/js/-/js-16.5.3.tgz#421afe18ec559a6bbe1d5836e9cc5e36a27f7e35" + integrity sha512-l1mpG5ItfiuMRwTxpHpu0+uNR4Stk3usR4Bhy0MwW1QYk9DtgqCYfTs0/gF2CLKCTXJ211RkSXJ9NHge1m39hA== dependencies: - "@nx/linter" "16.5.2" + "@nx/js" "16.5.3" -"@nrwl/nx-cloud@16.1.0": - version "16.1.0" - resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-16.1.0.tgz#627f7d7599aa312a424ec016f45ce63b21bae292" - integrity sha512-OFjbSqdCuZq9KRYU/mOlIN8SYLZREsLlZYqYpObZqXJ5meUgBDJbUSwRweUSUvt73fgRixLEau2jPysiLHKxSQ== +"@nrwl/linter@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/linter/-/linter-16.5.3.tgz#09c067c227aa18fca8e96459a397f3a232b1289f" + integrity sha512-miUER7nOqEuAty8JKul0WxRsbRem2zNuZhG6a9MW6Ss2ny9uBeGKrElts+nDFGaL7eXQJgtoB0ChRfp06pKSoA== + dependencies: + "@nx/linter" "16.5.3" + +"@nrwl/nx-cloud@16.1.1": + version "16.1.1" + resolved "https://registry.yarnpkg.com/@nrwl/nx-cloud/-/nx-cloud-16.1.1.tgz#9e1ed2acff11ab0ae8a4c0c045d412034ac26be7" + integrity sha512-iJIPP46+saFZK748FKU4u4YZH+Sv3ZvZPbMwGVMhwqhOYcrlO5aSa0lpilyoN8WuhooKNqcCfiqshx6V577fTg== dependencies: - nx-cloud "16.1.0" + nx-cloud "16.1.1" "@nrwl/tao@16.5.2": version "16.5.2" @@ -2956,12 +2963,19 @@ dependencies: nx "16.5.2" -"@nrwl/workspace@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nrwl/workspace/-/workspace-16.5.2.tgz#22c9e8f5ebd2d1cdc7ca5762d733422e4b5f61b8" - integrity sha512-ht3//ryb2lXKtiLyKTCITyoMsyPg0NycueU42rpmR8Gs3jFTHePQVLfSS9pdck8apors9i+Pg/tJPXdSpjY07A== +"@nrwl/tao@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-16.5.3.tgz#728201a32e2046e4846d8bc075d75fbb9b1b8d7e" + integrity sha512-GHL8NU2P/kMahXo9lhExTgG1ow9sI3CbCe8E+UPgp4GOscIJypCpD5FuvwmkYJHgMzAx1nknlDYXN12xEe7QVg== + dependencies: + nx "16.5.3" + +"@nrwl/workspace@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nrwl/workspace/-/workspace-16.5.3.tgz#bd106f93293fa6478249c949d01d8ac825f356c1" + integrity sha512-0S7ifuEsDhdSq775vXDEfvjrBIu6ORogesZCe3XLnOzX9u+xsUsYFnT59cnACkdM8IP++dnyuZkfCk0C/xBdYA== dependencies: - "@nx/workspace" "16.5.2" + "@nx/workspace" "16.5.3" "@nx/devkit@16.5.2", "@nx/devkit@>=16.5.1 < 17": version "16.5.2" @@ -2975,16 +2989,28 @@ tmp "~0.2.1" tslib "^2.3.0" -"@nx/jest@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nx/jest/-/jest-16.5.2.tgz#f4de39379b5b2e6ffcf3047193ffffb4c569f740" - integrity sha512-EVELIF4cy9iri8dSSLA2ZvEkExq/3DMTritxbI2mqI/iHixybqJ2D4aSw26gzbCz8rilMgPacriADDbkhGiFkw== +"@nx/devkit@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-16.5.3.tgz#df9bd5a4c0818d6d845e2f271e377c1217e7c292" + integrity sha512-szsBpO4ZYEwilUZMEjpmvg8ritl8C7jEAkAq3k2CxEdwE24cDBPwjXWnbc4YffvYW9gatDt+n93in5XYXWT5CA== + dependencies: + "@nrwl/devkit" "16.5.3" + ejs "^3.1.7" + ignore "^5.0.4" + semver "7.5.3" + tmp "~0.2.1" + tslib "^2.3.0" + +"@nx/jest@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/jest/-/jest-16.5.3.tgz#319493b590f7a7d28dccb5e5556de3de18dfbab8" + integrity sha512-E9SMO/wFDXBZCepcE3TcAk6Fu0Q/wTIGCXNum6urTS+2hqetisugC+cxCoisBrevPlqZvTm5WmBU/4UipmxN0g== dependencies: "@jest/reporters" "^29.4.1" "@jest/test-result" "^29.4.1" - "@nrwl/jest" "16.5.2" - "@nx/devkit" "16.5.2" - "@nx/js" "16.5.2" + "@nrwl/jest" "16.5.3" + "@nx/devkit" "16.5.3" + "@nx/js" "16.5.3" "@phenomnomnominal/tsquery" "~5.0.1" chalk "^4.1.0" dotenv "~10.0.0" @@ -2995,10 +3021,10 @@ resolve.exports "1.1.0" tslib "^2.3.0" -"@nx/js@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nx/js/-/js-16.5.2.tgz#200e1ddad3f61f8a200397717edbeb4d51e23d47" - integrity sha512-CuV0I3erdx9Kv3QParQrdUnIxzHt9iWOMI6hhrcGARrP0C2l2cxQ10X/pG7pA9XMMWw5aibfHj7sPQzHXWWkSw== +"@nx/js@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/js/-/js-16.5.3.tgz#ababd7048279610c4304cd88fff002b7a3577284" + integrity sha512-4eGseRQR2t9QoahwBOEvqv3xGL7icfpx4dhCfhv1YV5ImoycuqwaUhoJZwTYvxOW0pahwI2qDZCpOUGXz76kGg== dependencies: "@babel/core" "^7.15.0" "@babel/plugin-proposal-class-properties" "^7.14.5" @@ -3007,9 +3033,9 @@ "@babel/preset-env" "^7.15.0" "@babel/preset-typescript" "^7.15.0" "@babel/runtime" "^7.14.8" - "@nrwl/js" "16.5.2" - "@nx/devkit" "16.5.2" - "@nx/workspace" "16.5.2" + "@nrwl/js" "16.5.3" + "@nx/devkit" "16.5.3" + "@nx/workspace" "16.5.3" "@phenomnomnominal/tsquery" "~5.0.1" babel-plugin-const-enum "^1.0.1" babel-plugin-macros "^2.8.0" @@ -3025,14 +3051,14 @@ source-map-support "0.5.19" tslib "^2.3.0" -"@nx/linter@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nx/linter/-/linter-16.5.2.tgz#59cf9a0116fc01b544c6c63960c781715e1677d5" - integrity sha512-d9HPiVCcYb8s5bYrjI7uqwZO640arOwB6FKn3AdIo6SHge1wn8rNvsytDx1IB0C3TcGQhjIC+4X7ZxN5GmfRbw== +"@nx/linter@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/linter/-/linter-16.5.3.tgz#a5a1d8c44d67748f67c2e3bcc694987764ebdf5f" + integrity sha512-md+dzialAUqXMgEZWqguhTyeFkuGMJ2oRQed3k4EkkJ2JScXXtnj/Izk2kob7Eik7KEoBTSlNdOMHdCgc4FeIA== dependencies: - "@nrwl/linter" "16.5.2" - "@nx/devkit" "16.5.2" - "@nx/js" "16.5.2" + "@nrwl/linter" "16.5.3" + "@nx/devkit" "16.5.3" + "@nx/js" "16.5.3" "@phenomnomnominal/tsquery" "~5.0.1" tmp "~0.2.1" tslib "^2.3.0" @@ -3042,58 +3068,108 @@ resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-16.5.2.tgz#0efcc62881eddd20e5bb8f881e6c8cc082c864f8" integrity sha512-myiNbDJLhhVHRLo6z3TeiaUeYTWdvBR3RdHQq4szTgb82Bnn8ruzteRGGJwKZd551YlttRcieBysxzUzHkmVBg== +"@nx/nx-darwin-arm64@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-16.5.3.tgz#94c96114293e91553aa233adcb38f82598b6badb" + integrity sha512-HS3R/vRVFwOjZ0l1y3h1UMSd7Zfh4NQ2qDe1FSOfA38AXNftyWNCnZ1kkOikVjJKCpwKXls56XcPDu+2hbqSDA== + "@nx/nx-darwin-x64@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-16.5.2.tgz#6b03c1f4569411db7f8f90df90c820b083bde65f" integrity sha512-m354qmKrv7a5eD9Qv8bGEmrLCBEyCS6/y0PyOR32Dmi7qwlgHsQ4FfVkOnlWefC5ednhFLJQT6yxwhg8cFGDxw== +"@nx/nx-darwin-x64@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-16.5.3.tgz#6cb273f439f07441ba78ea98cab7521c3dd30e64" + integrity sha512-3QEZkliJy+rk5UrcBsMnExBIAXmjqd4dHBDGH1eo0w85/3Bih3Z9QxU/n+3tEewvUCCx4o4kg+bya/hVz23V6g== + "@nx/nx-freebsd-x64@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-16.5.2.tgz#931e8be5c70d87b87f17d8faf0b9089383df0505" integrity sha512-qrR9yxcC2BLnw9JulecILmyp6Jco9unHHzQcfhLZTpw5c1PNHmZzHwJ3i3iNEf1o2kXEIa+SlOCis9ndvNQQVA== +"@nx/nx-freebsd-x64@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-16.5.3.tgz#506e33a1229a554ce17b611cbf55b774ea6166ec" + integrity sha512-FyJ2xUBPifO0y9LoVuS0CjwN+GGsYSy+O1y541eh8j4Y86/xcPx0j+fhHhh3MDnKA9ftjbq+vrqgs84NHmIAAw== + "@nx/nx-linux-arm-gnueabihf@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-16.5.2.tgz#d9d865f99ba1128f6aa5b6bf0887bb743590eeb6" integrity sha512-+I1Oj54caDymMsQuRu/l4ULS4RVvwDUM1nXey5JhWulDOUF//09Ckz03Q9p0NCnvBvQd3SyE65++PMfZrrurbA== +"@nx/nx-linux-arm-gnueabihf@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-16.5.3.tgz#f7c0c8e3cdd46d8b92d1ea6f2c2d2985802b7888" + integrity sha512-Zn343k/satXGWEJjh56+Y/Uxtsl1aCyUtq0OPxznwx/ZGG+Sw2wN/ZEnePEh0OB1/yZ2uWAFRHVSA2fYPrmdhQ== + "@nx/nx-linux-arm64-gnu@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-16.5.2.tgz#c442df598108776cce297561555520ffbce251ea" integrity sha512-4Q4jpgtNBTb4lMegFKS9hkzS/WttH3MxkgM//8qs1zhgUz/AsuXTitBo71E3xCnQl/i38p0eIpiKXXwBJeHgDw== +"@nx/nx-linux-arm64-gnu@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-16.5.3.tgz#69c3b2eeda6cbbada94d7c91034159746bf04202" + integrity sha512-ACUhKWHe7C7IopyIwXAoHx/phaZudBOu+pZwzVDaRy2xn78tdzJQrOySsQ7YmBGoGSXEAd5+3pVVXnXcRNJ2aA== + "@nx/nx-linux-arm64-musl@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-16.5.2.tgz#e07c0031f60372e726d2272fac5f3743c4d9591c" integrity sha512-VLukS/pfenr/Qw/EUn3GPAREDVXuSmfKeYBQKkALXEK6cRVQhXFXMLGHgMemCYbpoUJyFtFEO94PKV7VU7wZPg== +"@nx/nx-linux-arm64-musl@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-16.5.3.tgz#23381f971ef910e675aef0e2f279d8cb92888103" + integrity sha512-eNrVa1Oaf42kEiCoJu01NlmGs6hQMzDhHiQ/DBKxMePW1bh4O5FEQUtYp1K/AKPcHH5270VNz0eAl164+fMqpQ== + "@nx/nx-linux-x64-gnu@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-16.5.2.tgz#0748beae6944b42276f4705bc41b9e06cefb1d55" integrity sha512-TAGmY+MXbNl/aGg2KMvtg53rbmX0XHwnJRQtjhjqjAyvaOfFWI/WOqTU7xf/QCkXBUIK0D9xHWpALfA/fZFCBA== +"@nx/nx-linux-x64-gnu@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-16.5.3.tgz#4630eca95e41210db2362db8dfbed037fbca42c0" + integrity sha512-ZAW+Oar+WEwbmu8KFw80qDpT9y3qmWZdVD5wNRX5CMByuVJ3ly7MJbtD/rEDtvAUOgSMJikuGsK0jQ6acm+X/A== + "@nx/nx-linux-x64-musl@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-16.5.2.tgz#7b150081e21ba7aa0da511f80aae1c5d230d1664" integrity sha512-YyWmqcNbZgU76+LThAt+0arx9C2ewfI5UUI6kooZRniAd408EA2xl5fx2AWLLrISGH4nTb5p20HGmeWfGqjHPA== +"@nx/nx-linux-x64-musl@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-16.5.3.tgz#905927d9002be5c589b6d07d86bf5e727d4db343" + integrity sha512-jM2igA26dd0YVj9w/Pv2x3ZUUziVP4H3rFzYDAd80sQqLYWqELr6Fljyvj/2C+o+mOfVcw85+yfessjlPz8K8Q== + "@nx/nx-win32-arm64-msvc@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-16.5.2.tgz#f06f74b876c92d6b12cd351baff016b18bfd9a73" integrity sha512-pl7LluCc/57kl9VZ1ES27ym16ps4zgfCIeJiF8Ne8C6ALgt7C3PEG6417sFqbQw5J7NhsZ1aTb3eJ9fa9hurhA== +"@nx/nx-win32-arm64-msvc@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-16.5.3.tgz#36e76555d8e8410ed5b094378792265411542e4f" + integrity sha512-gEP6ekFXLfvRWezSvQoHxV+vhKavuA/Lhz/AifYAIgdJEmKUPqVdnUtdkYwU0Ygn/a11KqbFh8J4TikXIkVxYw== + "@nx/nx-win32-x64-msvc@16.5.2": version "16.5.2" resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-16.5.2.tgz#6ae96b6a90924daba81350863da4f9d12884fe8e" integrity sha512-bKSMElhzP37MkzWQ/Y12pQlesZ6TxwOOqwoaK/vHe6ZtxPxvG2+U8tQ21Nw5L3KyrDCnU5MJHGFtQVHHHt5MwA== -"@nx/workspace@16.5.2": - version "16.5.2" - resolved "https://registry.yarnpkg.com/@nx/workspace/-/workspace-16.5.2.tgz#7d8b84550c51bc3bebc2e6e701fd41a5995fcbca" - integrity sha512-j+EUQW0q2AtYmd1lWxnVJzzGHWbHbdjkV4b6VYG839CaK0+mWZ/t4EYzpGn7m4WU8rmyxh9YwU8uAl2nvc1JaQ== +"@nx/nx-win32-x64-msvc@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-16.5.3.tgz#574b81c46f5af0f2d374297b20168a98d79af5a2" + integrity sha512-QTpDoqxQq7wSuErkCgQoFegaUZ3D9lgmpS20zexlHm43SwS/MXtqRm9i5XNoJPTx19rpJ7gqaOm6+eOkOYLETg== + +"@nx/workspace@16.5.3": + version "16.5.3" + resolved "https://registry.yarnpkg.com/@nx/workspace/-/workspace-16.5.3.tgz#a297c588b25b3a3d3108316cb85754f7b021c207" + integrity sha512-nviDIJdNJ1K9K8g6Ug+NqHBHILm/J5Uqr4sPTOvNAfkUpqS6gN2aKUJ09iXIwA+/cu+3hrVjIyNhvQ3xHfMCBg== dependencies: - "@nrwl/workspace" "16.5.2" - "@nx/devkit" "16.5.2" + "@nrwl/workspace" "16.5.3" + "@nx/devkit" "16.5.3" "@parcel/watcher" "2.0.4" chalk "^4.1.0" chokidar "^3.5.1" @@ -3105,7 +3181,7 @@ ignore "^5.0.4" minimatch "3.0.5" npm-run-path "^4.0.1" - nx "16.5.2" + nx "16.5.3" open "^8.4.0" rxjs "^7.8.0" tmp "~0.2.1" @@ -3627,10 +3703,12 @@ "@svgr/plugin-svgo" "^6.2.0" "@swc/core-android-arm-eabi@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-android-arm64@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-darwin-arm64@1.3.70": version "1.3.70" @@ -3643,25 +3721,32 @@ integrity sha512-GMFJ65E18zQC80t0os+TZvI+8lbRuitncWVge/RXmXbVLPRcdykP4EJ87cqzcG5Ah0z18/E0T+ixD6jHRisrYQ== "@swc/core-freebsd-x64@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm-gnueabihf@1.3.70": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm-gnueabihf@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm64-gnu@1.3.70": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm64-gnu@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm64-musl@1.3.70": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm64-musl@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-x64-gnu@1.3.70": version "1.3.70" @@ -3674,16 +3759,20 @@ integrity sha512-HoOsPJbt361KGKaivAK0qIiYARkhzlxeAfvF5NlnKxkIMOZpQ46Lwj3tR0VWohKbrhS+cYKFlVuDi5XnDkx0XA== "@swc/core-win32-arm64-msvc@1.3.70": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-win32-arm64-msvc@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-win32-ia32-msvc@1.3.70": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-win32-ia32-msvc@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-win32-x64-msvc@1.3.70": version "1.3.70" @@ -3845,10 +3934,12 @@ "@types/ms" "*" "@types/eslint-scope@^3.7.3": - version "1.0.0" + version "0.0.0" + uid "" "@types/eslint-scope@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@types/eslint-visitor-keys@*": version "3.3.0" @@ -3858,16 +3949,20 @@ eslint-visitor-keys "*" "@types/eslint@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@types/estree@0.0.39": - version "1.0.0" + version "0.0.0" + uid "" "@types/estree@^1.0.0": - version "1.0.0" + version "0.0.0" + uid "" "@types/estree@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18": version "4.17.28" @@ -11230,12 +11325,12 @@ nth-check@^2.0.0, nth-check@^2.0.1: dependencies: boolbase "^1.0.0" -nx-cloud@16.1.0: - version "16.1.0" - resolved "https://registry.yarnpkg.com/nx-cloud/-/nx-cloud-16.1.0.tgz#77a57ed50311de7a2124bbd2ac2128e08e938b03" - integrity sha512-2K5OuJ4MEDrn2solje2X+a3UxSCdfR5PIscCRQbBANyvJfl3hGJSTxz0n5xeJJX4cKcQlfAxDQFRH6DHNdTGPQ== +nx-cloud@16.1.1: + version "16.1.1" + resolved "https://registry.yarnpkg.com/nx-cloud/-/nx-cloud-16.1.1.tgz#103ae0f13f5eb05d6ddd6d9bfcafc56cf295a59a" + integrity sha512-Rq7ynvkYzAJ67N3pDqU6cMqwvWP7WXJGP4EFjLxgUrRHNCccqDPggeAqePodfk3nZEUrZB8F5QBKZuuw1DR3oA== dependencies: - "@nrwl/nx-cloud" "16.1.0" + "@nrwl/nx-cloud" "16.1.1" axios "1.1.3" chalk "^4.1.0" dotenv "~10.0.0" @@ -11297,6 +11392,57 @@ nx@16.5.2, "nx@>=16.5.1 < 17": "@nx/nx-win32-arm64-msvc" "16.5.2" "@nx/nx-win32-x64-msvc" "16.5.2" +nx@16.5.3: + version "16.5.3" + resolved "https://registry.yarnpkg.com/nx/-/nx-16.5.3.tgz#6f90dba8c5cd17dedeea9e922487bafbcfe632ad" + integrity sha512-VxhOijTT3evTsKEa2qsBqSroaFj/tSvRKOc1K7MPlhokB5wLEedehzbwICCjIkicPHLImiKExjPs0l290DJLwA== + dependencies: + "@nrwl/tao" "16.5.3" + "@parcel/watcher" "2.0.4" + "@yarnpkg/lockfile" "^1.1.0" + "@yarnpkg/parsers" "3.0.0-rc.46" + "@zkochan/js-yaml" "0.0.6" + axios "^1.0.0" + chalk "^4.1.0" + cli-cursor "3.1.0" + cli-spinners "2.6.1" + cliui "^7.0.2" + dotenv "~10.0.0" + enquirer "~2.3.6" + fast-glob "3.2.7" + figures "3.2.0" + flat "^5.0.2" + fs-extra "^11.1.0" + glob "7.1.4" + ignore "^5.0.4" + js-yaml "4.1.0" + jsonc-parser "3.2.0" + lines-and-columns "~2.0.3" + minimatch "3.0.5" + npm-run-path "^4.0.1" + open "^8.4.0" + semver "7.5.3" + string-width "^4.2.3" + strong-log-transformer "^2.1.0" + tar-stream "~2.2.0" + tmp "~0.2.1" + tsconfig-paths "^4.1.2" + tslib "^2.3.0" + v8-compile-cache "2.3.0" + yargs "^17.6.2" + yargs-parser "21.1.1" + optionalDependencies: + "@nx/nx-darwin-arm64" "16.5.3" + "@nx/nx-darwin-x64" "16.5.3" + "@nx/nx-freebsd-x64" "16.5.3" + "@nx/nx-linux-arm-gnueabihf" "16.5.3" + "@nx/nx-linux-arm64-gnu" "16.5.3" + "@nx/nx-linux-arm64-musl" "16.5.3" + "@nx/nx-linux-x64-gnu" "16.5.3" + "@nx/nx-linux-x64-musl" "16.5.3" + "@nx/nx-win32-arm64-msvc" "16.5.3" + "@nx/nx-win32-x64-msvc" "16.5.3" + object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" From c869aa1792ed8e3c89d5ada2df8c00f8fe36526a Mon Sep 17 00:00:00 2001 From: "typescript-eslint[bot]" Date: Mon, 24 Jul 2023 17:15:52 +0000 Subject: [PATCH 22/22] chore: publish v6.2.0 --- CHANGELOG.md | 23 +++++++++++++++++++ lerna.json | 2 +- packages/ast-spec/CHANGELOG.md | 10 ++++++++ packages/ast-spec/package.json | 2 +- packages/eslint-plugin-internal/CHANGELOG.md | 10 ++++++++ packages/eslint-plugin-internal/package.json | 10 ++++---- packages/eslint-plugin-tslint/CHANGELOG.md | 10 ++++++++ packages/eslint-plugin-tslint/package.json | 6 ++--- packages/eslint-plugin/CHANGELOG.md | 22 ++++++++++++++++++ packages/eslint-plugin/package.json | 14 +++++------ packages/integration-tests/CHANGELOG.md | 10 ++++++++ packages/integration-tests/package.json | 2 +- packages/parser/CHANGELOG.md | 10 ++++++++ packages/parser/package.json | 10 ++++---- packages/repo-tools/CHANGELOG.md | 10 ++++++++ packages/repo-tools/package.json | 2 +- .../CHANGELOG.md | 10 ++++++++ .../package.json | 6 ++--- packages/rule-tester/CHANGELOG.md | 10 ++++++++ packages/rule-tester/package.json | 8 +++---- packages/scope-manager/CHANGELOG.md | 10 ++++++++ packages/scope-manager/package.json | 8 +++---- packages/type-utils/CHANGELOG.md | 10 ++++++++ packages/type-utils/package.json | 8 +++---- packages/types/CHANGELOG.md | 10 ++++++++ packages/types/package.json | 2 +- packages/typescript-estree/CHANGELOG.md | 13 +++++++++++ packages/typescript-estree/package.json | 6 ++--- packages/utils/CHANGELOG.md | 10 ++++++++ packages/utils/package.json | 10 ++++---- packages/visitor-keys/CHANGELOG.md | 10 ++++++++ packages/visitor-keys/package.json | 4 ++-- packages/website-eslint/CHANGELOG.md | 10 ++++++++ packages/website-eslint/package.json | 16 ++++++------- packages/website/CHANGELOG.md | 10 ++++++++ packages/website/package.json | 12 +++++----- 36 files changed, 272 insertions(+), 64 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8f32f7a0300..9a8c351378a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + + +### Bug Fixes + +* **eslint-plugin:** [member-ordering] account for repeated names ([#6864](https://github.com/typescript-eslint/typescript-eslint/issues/6864)) ([d207b59](https://github.com/typescript-eslint/typescript-eslint/commit/d207b59e24acb9377a7a55104d082bd91fbb664e)) +* **eslint-plugin:** [no-unsafe-enum-comparison] exempt bit shift operators ([#7074](https://github.com/typescript-eslint/typescript-eslint/issues/7074)) ([b3e0e75](https://github.com/typescript-eslint/typescript-eslint/commit/b3e0e7571f1abb5dae347d3701844324232b1431)) +* **eslint-plugin:** [prefer-nullish-coalescing] handle case when type of left side is null or undefined ([#7225](https://github.com/typescript-eslint/typescript-eslint/issues/7225)) ([b62affe](https://github.com/typescript-eslint/typescript-eslint/commit/b62affe8ddac7c0af22bf74f22503d0cda92f4c0)) +* **eslint-plugin:** use a default export for the rules type ([#7266](https://github.com/typescript-eslint/typescript-eslint/issues/7266)) ([af77a1d](https://github.com/typescript-eslint/typescript-eslint/commit/af77a1d33f0853d2ab0f61e4ac04dec47cd7ba18)) +* **typescript-estree:** fix TSNode type error on old ts versions ([#7267](https://github.com/typescript-eslint/typescript-eslint/issues/7267)) ([f2aed1b](https://github.com/typescript-eslint/typescript-eslint/commit/f2aed1bee1d265e8c87423a17b674be31a075f58)) + + +### Features + +* **eslint-plugin:** [class-methods-use-this] add extension rule ([#6457](https://github.com/typescript-eslint/typescript-eslint/issues/6457)) ([18ea3b1](https://github.com/typescript-eslint/typescript-eslint/commit/18ea3b1f8938e25053f89b7e4ec8dcc6c453118a)) +* **eslint-plugin:** sync getFunctionHeadLoc implementation with upstream ([#7260](https://github.com/typescript-eslint/typescript-eslint/issues/7260)) ([f813147](https://github.com/typescript-eslint/typescript-eslint/commit/f81314731cccb779423e2580a805eff3efff8564)) + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/lerna.json b/lerna.json index 5d9d7085471d..2713860cf0ff 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "6.1.0", + "version": "6.2.0", "npmClient": "yarn", "stream": true, "command": { diff --git a/packages/ast-spec/CHANGELOG.md b/packages/ast-spec/CHANGELOG.md index e418c59e37d7..dfdad311aa46 100644 --- a/packages/ast-spec/CHANGELOG.md +++ b/packages/ast-spec/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/ast-spec + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/ast-spec diff --git a/packages/ast-spec/package.json b/packages/ast-spec/package.json index eb3ff3bb63da..32e4deaf5932 100644 --- a/packages/ast-spec/package.json +++ b/packages/ast-spec/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/ast-spec", - "version": "6.1.0", + "version": "6.2.0", "description": "Complete specification for the TypeScript-ESTree AST", "private": true, "keywords": [ diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md index 1d080caea34b..f885c79a67a3 100644 --- a/packages/eslint-plugin-internal/CHANGELOG.md +++ b/packages/eslint-plugin-internal/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal diff --git a/packages/eslint-plugin-internal/package.json b/packages/eslint-plugin-internal/package.json index f113aa24fa0a..1a5ed9eee3db 100644 --- a/packages/eslint-plugin-internal/package.json +++ b/packages/eslint-plugin-internal/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-internal", - "version": "6.1.0", + "version": "6.2.0", "private": true, "main": "dist/index.js", "scripts": { @@ -14,10 +14,10 @@ }, "dependencies": { "@types/prettier": "*", - "@typescript-eslint/rule-tester": "6.1.0", - "@typescript-eslint/scope-manager": "6.1.0", - "@typescript-eslint/type-utils": "6.1.0", - "@typescript-eslint/utils": "6.1.0", + "@typescript-eslint/rule-tester": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.0", + "@typescript-eslint/type-utils": "6.2.0", + "@typescript-eslint/utils": "6.2.0", "prettier": "*" } } diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md index 61b4b22f1509..8a0dd55068b6 100644 --- a/packages/eslint-plugin-tslint/CHANGELOG.md +++ b/packages/eslint-plugin-tslint/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json index 3ec92c951977..19a3a0e22a5a 100644 --- a/packages/eslint-plugin-tslint/package.json +++ b/packages/eslint-plugin-tslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin-tslint", - "version": "6.1.0", + "version": "6.2.0", "main": "dist/index.js", "typings": "src/index.ts", "description": "ESLint plugin that wraps a TSLint configuration and lints the whole source using TSLint", @@ -46,7 +46,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/utils": "6.1.0" + "@typescript-eslint/utils": "6.2.0" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0", @@ -54,7 +54,7 @@ "typescript": "*" }, "devDependencies": { - "@typescript-eslint/parser": "6.1.0" + "@typescript-eslint/parser": "6.2.0" }, "funding": { "type": "opencollective", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index ddaac1c3b0d7..a336d00ce05a 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + + +### Bug Fixes + +* **eslint-plugin:** [member-ordering] account for repeated names ([#6864](https://github.com/typescript-eslint/typescript-eslint/issues/6864)) ([d207b59](https://github.com/typescript-eslint/typescript-eslint/commit/d207b59e24acb9377a7a55104d082bd91fbb664e)) +* **eslint-plugin:** [no-unsafe-enum-comparison] exempt bit shift operators ([#7074](https://github.com/typescript-eslint/typescript-eslint/issues/7074)) ([b3e0e75](https://github.com/typescript-eslint/typescript-eslint/commit/b3e0e7571f1abb5dae347d3701844324232b1431)) +* **eslint-plugin:** [prefer-nullish-coalescing] handle case when type of left side is null or undefined ([#7225](https://github.com/typescript-eslint/typescript-eslint/issues/7225)) ([b62affe](https://github.com/typescript-eslint/typescript-eslint/commit/b62affe8ddac7c0af22bf74f22503d0cda92f4c0)) +* **eslint-plugin:** use a default export for the rules type ([#7266](https://github.com/typescript-eslint/typescript-eslint/issues/7266)) ([af77a1d](https://github.com/typescript-eslint/typescript-eslint/commit/af77a1d33f0853d2ab0f61e4ac04dec47cd7ba18)) + + +### Features + +* **eslint-plugin:** [class-methods-use-this] add extension rule ([#6457](https://github.com/typescript-eslint/typescript-eslint/issues/6457)) ([18ea3b1](https://github.com/typescript-eslint/typescript-eslint/commit/18ea3b1f8938e25053f89b7e4ec8dcc6c453118a)) +* **eslint-plugin:** sync getFunctionHeadLoc implementation with upstream ([#7260](https://github.com/typescript-eslint/typescript-eslint/issues/7260)) ([f813147](https://github.com/typescript-eslint/typescript-eslint/commit/f81314731cccb779423e2580a805eff3efff8564)) + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index d0d783e06146..58c821310e16 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "6.1.0", + "version": "6.2.0", "description": "TypeScript plugin for ESLint", "files": [ "dist", @@ -57,10 +57,10 @@ }, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.1.0", - "@typescript-eslint/type-utils": "6.1.0", - "@typescript-eslint/utils": "6.1.0", - "@typescript-eslint/visitor-keys": "6.1.0", + "@typescript-eslint/scope-manager": "6.2.0", + "@typescript-eslint/type-utils": "6.2.0", + "@typescript-eslint/utils": "6.2.0", + "@typescript-eslint/visitor-keys": "6.2.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -74,8 +74,8 @@ "@types/marked": "*", "@types/natural-compare": "*", "@types/prettier": "*", - "@typescript-eslint/rule-schema-to-typescript-types": "6.1.0", - "@typescript-eslint/rule-tester": "6.1.0", + "@typescript-eslint/rule-schema-to-typescript-types": "6.2.0", + "@typescript-eslint/rule-tester": "6.2.0", "ajv": "^6.12.6", "chalk": "^5.3.0", "cross-fetch": "*", diff --git a/packages/integration-tests/CHANGELOG.md b/packages/integration-tests/CHANGELOG.md index 48fd31149c34..e028840cecb4 100644 --- a/packages/integration-tests/CHANGELOG.md +++ b/packages/integration-tests/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/integration-tests + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 3ed4cf8c5279..90ab24cbcbcf 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/integration-tests", - "version": "6.1.0", + "version": "6.2.0", "private": true, "scripts": { "format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore", diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md index a4889a68f6e1..81f2bfddae46 100644 --- a/packages/parser/CHANGELOG.md +++ b/packages/parser/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/parser + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/parser/package.json b/packages/parser/package.json index 9b582e0df42c..f39f8a7dac16 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "6.1.0", + "version": "6.2.0", "description": "An ESLint custom parser which leverages TypeScript ESTree", "files": [ "dist", @@ -51,10 +51,10 @@ "eslint": "^7.0.0 || ^8.0.0" }, "dependencies": { - "@typescript-eslint/scope-manager": "6.1.0", - "@typescript-eslint/types": "6.1.0", - "@typescript-eslint/typescript-estree": "6.1.0", - "@typescript-eslint/visitor-keys": "6.1.0", + "@typescript-eslint/scope-manager": "6.2.0", + "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/visitor-keys": "6.2.0", "debug": "^4.3.4" }, "devDependencies": { diff --git a/packages/repo-tools/CHANGELOG.md b/packages/repo-tools/CHANGELOG.md index d83318a2cef1..3abec56ed7f8 100644 --- a/packages/repo-tools/CHANGELOG.md +++ b/packages/repo-tools/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/repo-tools + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/repo-tools diff --git a/packages/repo-tools/package.json b/packages/repo-tools/package.json index 0afe859c4671..5d8c490195f1 100644 --- a/packages/repo-tools/package.json +++ b/packages/repo-tools/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/repo-tools", - "version": "6.1.0", + "version": "6.2.0", "private": true, "scripts": { "build": "tsc -b tsconfig.build.json", diff --git a/packages/rule-schema-to-typescript-types/CHANGELOG.md b/packages/rule-schema-to-typescript-types/CHANGELOG.md index 324919e7fed1..042c246b8957 100644 --- a/packages/rule-schema-to-typescript-types/CHANGELOG.md +++ b/packages/rule-schema-to-typescript-types/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/rule-schema-to-typescript-types + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/rule-schema-to-typescript-types/package.json b/packages/rule-schema-to-typescript-types/package.json index a3ddab833079..04e9bc3e6bee 100644 --- a/packages/rule-schema-to-typescript-types/package.json +++ b/packages/rule-schema-to-typescript-types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/rule-schema-to-typescript-types", - "version": "6.1.0", + "version": "6.2.0", "private": true, "type": "commonjs", "exports": { @@ -33,8 +33,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/type-utils": "6.1.0", - "@typescript-eslint/utils": "6.1.0", + "@typescript-eslint/type-utils": "6.2.0", + "@typescript-eslint/utils": "6.2.0", "natural-compare": "^1.4.0", "prettier": "*" }, diff --git a/packages/rule-tester/CHANGELOG.md b/packages/rule-tester/CHANGELOG.md index b4b3034a726a..ef5b7d84b9f3 100644 --- a/packages/rule-tester/CHANGELOG.md +++ b/packages/rule-tester/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/rule-tester + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/rule-tester/package.json b/packages/rule-tester/package.json index 5513949ae671..1d2349136229 100644 --- a/packages/rule-tester/package.json +++ b/packages/rule-tester/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/rule-tester", - "version": "6.1.0", + "version": "6.2.0", "description": "Tooling to test ESLint rules", "files": [ "dist", @@ -47,8 +47,8 @@ }, "//": "NOTE - AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70", "dependencies": { - "@typescript-eslint/typescript-estree": "6.1.0", - "@typescript-eslint/utils": "6.1.0", + "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/utils": "6.2.0", "ajv": "^6.10.0", "lodash.merge": "4.6.2", "semver": "^7.5.4" @@ -59,7 +59,7 @@ }, "devDependencies": { "@types/lodash.merge": "4.6.7", - "@typescript-eslint/parser": "6.1.0", + "@typescript-eslint/parser": "6.2.0", "chai": "^4.3.7", "mocha": "^8.3.2", "sinon": "^11.0.0", diff --git a/packages/scope-manager/CHANGELOG.md b/packages/scope-manager/CHANGELOG.md index 62f2ad6c8126..fdcbd692d1ea 100644 --- a/packages/scope-manager/CHANGELOG.md +++ b/packages/scope-manager/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/scope-manager + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/scope-manager diff --git a/packages/scope-manager/package.json b/packages/scope-manager/package.json index 14aacf7ee23c..2eb5a7048d8c 100644 --- a/packages/scope-manager/package.json +++ b/packages/scope-manager/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/scope-manager", - "version": "6.1.0", + "version": "6.2.0", "description": "TypeScript scope analyser for ESLint", "files": [ "dist", @@ -44,12 +44,12 @@ "typecheck": "nx typecheck" }, "dependencies": { - "@typescript-eslint/types": "6.1.0", - "@typescript-eslint/visitor-keys": "6.1.0" + "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/visitor-keys": "6.2.0" }, "devDependencies": { "@types/glob": "*", - "@typescript-eslint/typescript-estree": "6.1.0", + "@typescript-eslint/typescript-estree": "6.2.0", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", diff --git a/packages/type-utils/CHANGELOG.md b/packages/type-utils/CHANGELOG.md index babefc41d356..68ae9a9c9038 100644 --- a/packages/type-utils/CHANGELOG.md +++ b/packages/type-utils/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/type-utils + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/type-utils/package.json b/packages/type-utils/package.json index ef0f88667467..2c1fb9734d7a 100644 --- a/packages/type-utils/package.json +++ b/packages/type-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/type-utils", - "version": "6.1.0", + "version": "6.2.0", "description": "Type utilities for working with TypeScript + ESLint together", "files": [ "dist", @@ -45,13 +45,13 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/typescript-estree": "6.1.0", - "@typescript-eslint/utils": "6.1.0", + "@typescript-eslint/typescript-estree": "6.2.0", + "@typescript-eslint/utils": "6.2.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, "devDependencies": { - "@typescript-eslint/parser": "6.1.0", + "@typescript-eslint/parser": "6.2.0", "ajv": "^8.12.0", "typescript": "*" }, diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 59338dda722c..93649ba81c89 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/types + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/types/package.json b/packages/types/package.json index f7c2178932e2..cb99f11eefa8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/types", - "version": "6.1.0", + "version": "6.2.0", "description": "Types for the TypeScript-ESTree AST spec", "files": [ "dist", diff --git a/packages/typescript-estree/CHANGELOG.md b/packages/typescript-estree/CHANGELOG.md index 5343ba318639..a14e6dcd89de 100644 --- a/packages/typescript-estree/CHANGELOG.md +++ b/packages/typescript-estree/CHANGELOG.md @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + + +### Bug Fixes + +* **typescript-estree:** fix TSNode type error on old ts versions ([#7267](https://github.com/typescript-eslint/typescript-eslint/issues/7267)) ([f2aed1b](https://github.com/typescript-eslint/typescript-eslint/commit/f2aed1bee1d265e8c87423a17b674be31a075f58)) + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json index 3c78a4cdb23f..2eea7e9e3f9e 100644 --- a/packages/typescript-estree/package.json +++ b/packages/typescript-estree/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/typescript-estree", - "version": "6.1.0", + "version": "6.2.0", "description": "A parser that converts TypeScript source code into an ESTree compatible form", "files": [ "dist", @@ -52,8 +52,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.1.0", - "@typescript-eslint/visitor-keys": "6.1.0", + "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/visitor-keys": "6.2.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index de31060da285..f10392417c42 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/utils + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/utils/package.json b/packages/utils/package.json index e6537e850faa..d6f9cbcd0f09 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/utils", - "version": "6.1.0", + "version": "6.2.0", "description": "Utilities for working with TypeScript + ESLint together", "files": [ "dist", @@ -68,16 +68,16 @@ "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.1.0", - "@typescript-eslint/types": "6.1.0", - "@typescript-eslint/typescript-estree": "6.1.0", + "@typescript-eslint/scope-manager": "6.2.0", + "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/typescript-estree": "6.2.0", "semver": "^7.5.4" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0" }, "devDependencies": { - "@typescript-eslint/parser": "6.1.0", + "@typescript-eslint/parser": "6.2.0", "typescript": "*" }, "funding": { diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md index ef7763154735..74581c8b17c6 100644 --- a/packages/visitor-keys/CHANGELOG.md +++ b/packages/visitor-keys/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/visitor-keys + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/visitor-keys diff --git a/packages/visitor-keys/package.json b/packages/visitor-keys/package.json index 3143e8ccdcbe..983c5326aebc 100644 --- a/packages/visitor-keys/package.json +++ b/packages/visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/visitor-keys", - "version": "6.1.0", + "version": "6.2.0", "description": "Visitor keys used to help traverse the TypeScript-ESTree AST", "files": [ "dist", @@ -45,7 +45,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.1.0", + "@typescript-eslint/types": "6.2.0", "eslint-visitor-keys": "^3.4.1" }, "devDependencies": { diff --git a/packages/website-eslint/CHANGELOG.md b/packages/website-eslint/CHANGELOG.md index 62df50b63955..e9c7ffc71e4c 100644 --- a/packages/website-eslint/CHANGELOG.md +++ b/packages/website-eslint/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package @typescript-eslint/website-eslint + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) **Note:** Version bump only for package @typescript-eslint/website-eslint diff --git a/packages/website-eslint/package.json b/packages/website-eslint/package.json index e223d9e53789..69f9d8bdabcc 100644 --- a/packages/website-eslint/package.json +++ b/packages/website-eslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/website-eslint", - "version": "6.1.0", + "version": "6.2.0", "private": true, "description": "ESLint which works in browsers.", "files": [ @@ -23,18 +23,18 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.1.0", - "@typescript-eslint/utils": "6.1.0" + "@typescript-eslint/types": "6.2.0", + "@typescript-eslint/utils": "6.2.0" }, "devDependencies": { "@eslint/js": "8.45.0", - "@typescript-eslint/eslint-plugin": "6.1.0", - "@typescript-eslint/parser": "6.1.0", - "@typescript-eslint/scope-manager": "6.1.0", + "@typescript-eslint/eslint-plugin": "6.2.0", + "@typescript-eslint/parser": "6.2.0", + "@typescript-eslint/scope-manager": "6.2.0", "@typescript-eslint/types": "6.0.0", - "@typescript-eslint/typescript-estree": "6.1.0", + "@typescript-eslint/typescript-estree": "6.2.0", "@typescript-eslint/utils": "6.0.0", - "@typescript-eslint/visitor-keys": "6.1.0", + "@typescript-eslint/visitor-keys": "6.2.0", "esbuild": "~0.18.0", "eslint": "*", "esquery": "*", diff --git a/packages/website/CHANGELOG.md b/packages/website/CHANGELOG.md index 9ca7c5defcb5..3dac0578b710 100644 --- a/packages/website/CHANGELOG.md +++ b/packages/website/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.1.0...v6.2.0) (2023-07-24) + +**Note:** Version bump only for package website + +You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website. + + + + + # [6.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.0.0...v6.1.0) (2023-07-17) diff --git a/packages/website/package.json b/packages/website/package.json index 88c7338a3293..6f8cc3a49bc9 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "6.1.0", + "version": "6.2.0", "private": true, "scripts": { "build": "docusaurus build", @@ -24,8 +24,8 @@ "@docusaurus/remark-plugin-npm2yarn": "~2.4.1", "@docusaurus/theme-common": "~2.4.1", "@mdx-js/react": "1.6.22", - "@typescript-eslint/parser": "6.1.0", - "@typescript-eslint/website-eslint": "6.1.0", + "@typescript-eslint/parser": "6.2.0", + "@typescript-eslint/website-eslint": "6.2.0", "clsx": "^1.2.1", "eslint": "*", "json-schema": "^0.4.0", @@ -51,9 +51,9 @@ "@types/react": "*", "@types/react-helmet": "^6.1.6", "@types/react-router-dom": "^5.3.3", - "@typescript-eslint/eslint-plugin": "6.1.0", - "@typescript-eslint/rule-schema-to-typescript-types": "6.1.0", - "@typescript-eslint/types": "6.1.0", + "@typescript-eslint/eslint-plugin": "6.2.0", + "@typescript-eslint/rule-schema-to-typescript-types": "6.2.0", + "@typescript-eslint/types": "6.2.0", "copy-webpack-plugin": "^11.0.0", "cross-fetch": "*", "globby": "^11.1.0",