From 2801378a8b4dd4fad18639c7731c63d0cab5f291 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 9 Aug 2023 07:04:54 -0700 Subject: [PATCH 01/23] chore(deps): update dependency esbuild to v0.18.18 (#7443) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 283 +++++++++++++++++++++++++----------------------------- 1 file changed, 132 insertions(+), 151 deletions(-) diff --git a/yarn.lock b/yarn.lock index b90010f7d98b..bf8a254816ea 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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.17.tgz#9e00eb6865ed5f2dbe71a1e96f2c52254cd92903" - integrity sha512-9np+YYdNDed5+Jgr1TdWBsozZ85U1Oa3xW0c7TWqH0y2aGghXtZsuT8nYRbzOMcl0bXZXjOGbksoTtVOlWrRZg== +"@esbuild/android-arm64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz#984b4f9c8d0377443cc2dfcef266d02244593622" + integrity sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.18.17.tgz#1aa013b65524f4e9f794946b415b32ae963a4618" - integrity sha512-wHsmJG/dnL3OkpAcwbgoBTTMHVi4Uyou3F5mf58ZtmUyIKfcdA7TROav/6tCzET4A3QW2Q2FC+eFneMU+iyOxg== +"@esbuild/android-arm@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz#fedb265bc3a589c84cc11f810804f234947c3682" + integrity sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.18.17.tgz#c2bd0469b04ded352de011fae34a7a1d4dcecb79" - integrity sha512-O+FeWB/+xya0aLg23hHEM2E3hbfwZzjqumKMSIqcHbNvDa+dza2D0yLuymRBQQnC34CWrsJUXyH2MG5VnLd6uw== +"@esbuild/android-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.18.20.tgz#35cf419c4cfc8babe8893d296cd990e9e9f756f2" + integrity sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.17.tgz#0c21a59cb5bd7a2cec66c7a42431dca42aefeddd" - integrity sha512-M9uJ9VSB1oli2BE/dJs3zVr9kcCBBsE883prage1NWz6pBS++1oNn/7soPNS3+1DGj0FrkSvnED4Bmlu1VAE9g== +"@esbuild/darwin-arm64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz#08172cbeccf95fbc383399a7f39cfbddaeb0d7c1" + integrity sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.18.17.tgz#92f8763ff6f97dff1c28a584da7b51b585e87a7b" - integrity sha512-XDre+J5YeIJDMfp3n0279DFNrGCXlxOuGsWIkRb1NThMZ0BsrWXoTg23Jer7fEXQ9Ye5QjrvXpxnhzl3bHtk0g== +"@esbuild/darwin-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz#d70d5790d8bf475556b67d0f8b7c5bdff053d85d" + integrity sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.17.tgz#934f74bdf4022e143ba2f21d421b50fd0fead8f8" - integrity sha512-cjTzGa3QlNfERa0+ptykyxs5A6FEUQQF0MuilYXYBGdBxD3vxJcKnzDlhDCa1VAJCmAxed6mYhA2KaJIbtiNuQ== +"@esbuild/freebsd-arm64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz#98755cd12707f93f210e2494d6a4b51b96977f54" + integrity sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.17.tgz#16b6e90ba26ecc865eab71c56696258ec7f5d8bf" - integrity sha512-sOxEvR8d7V7Kw8QqzxWc7bFfnWnGdaFBut1dRUYtu+EIRXefBc/eIsiUiShnW0hM3FmQ5Zf27suDuHsKgZ5QrA== +"@esbuild/freebsd-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz#c1eb2bff03915f87c29cece4c1a7fa1f423b066e" + integrity sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.18.17.tgz#179a58e8d4c72116eb068563629349f8f4b48072" - integrity sha512-c9w3tE7qA3CYWjT+M3BMbwMt+0JYOp3vCMKgVBrCl1nwjAlOMYzEo+gG7QaZ9AtqZFj5MbUc885wuBBmu6aADQ== +"@esbuild/linux-arm64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz#bad4238bd8f4fc25b5a021280c770ab5fc3a02a0" + integrity sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.18.17.tgz#9d78cf87a310ae9ed985c3915d5126578665c7b5" - integrity sha512-2d3Lw6wkwgSLC2fIvXKoMNGVaeY8qdN0IC3rfuVxJp89CRfA3e3VqWifGDfuakPmp90+ZirmTfye1n4ncjv2lg== +"@esbuild/linux-arm@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz#3e617c61f33508a27150ee417543c8ab5acc73b0" + integrity sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.18.17.tgz#6fed202602d37361bca376c9d113266a722a908c" - integrity sha512-1DS9F966pn5pPnqXYz16dQqWIB0dmDfAQZd6jSSpiT9eX1NzKh07J6VKR3AoXXXEk6CqZMojiVDSZi1SlmKVdg== +"@esbuild/linux-ia32@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz#699391cccba9aee6019b7f9892eb99219f1570a7" + integrity sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.18.17.tgz#cdc60304830be1e74560c704bfd72cab8a02fa06" - integrity sha512-EvLsxCk6ZF0fpCB6w6eOI2Fc8KW5N6sHlIovNe8uOFObL2O+Mr0bflPHyHwLT6rwMg9r77WOAWb2FqCQrVnwFg== +"@esbuild/linux-loong64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz#e6fccb7aac178dd2ffb9860465ac89d7f23b977d" + integrity sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.17.tgz#c367b2855bb0902f5576291a2049812af2088086" - integrity sha512-e0bIdHA5p6l+lwqTE36NAW5hHtw2tNRmHlGBygZC14QObsA3bD4C6sXLJjvnDIjSKhW1/0S3eDy+QmX/uZWEYQ== +"@esbuild/linux-mips64el@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz#eeff3a937de9c2310de30622a957ad1bd9183231" + integrity sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.17.tgz#7fdc0083d42d64a4651711ee0a7964f489242f45" - integrity sha512-BAAilJ0M5O2uMxHYGjFKn4nJKF6fNCdP1E0o5t5fvMYYzeIqy2JdAP88Az5LHt9qBoUa4tDaRpfWt21ep5/WqQ== +"@esbuild/linux-ppc64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz#2f7156bde20b01527993e6881435ad79ba9599fb" + integrity sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.17.tgz#5198a417f3f5b86b10c95647b8bc032e5b6b2b1c" - integrity sha512-Wh/HW2MPnC3b8BqRSIme/9Zhab36PPH+3zam5pqGRH4pE+4xTrVLx2+XdGp6fVS3L2x+DrsIcsbMleex8fbE6g== +"@esbuild/linux-riscv64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz#6628389f210123d8b4743045af8caa7d4ddfc7a6" + integrity sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.18.17.tgz#7459c2fecdee2d582f0697fb76a4041f4ad1dd1e" - integrity sha512-j/34jAl3ul3PNcK3pfI0NSlBANduT2UO5kZ7FCaK33XFv3chDhICLY8wJJWIhiQ+YNdQ9dxqQctRg2bvrMlYgg== +"@esbuild/linux-s390x@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz#255e81fb289b101026131858ab99fba63dcf0071" + integrity sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.18.17.tgz#948cdbf46d81c81ebd7225a7633009bc56a4488c" - integrity sha512-QM50vJ/y+8I60qEmFxMoxIx4de03pGo2HwxdBeFd4nMh364X6TIBZ6VQ5UQmPbQWUVWHWws5MmJXlHAXvJEmpQ== +"@esbuild/linux-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz#c7690b3417af318a9b6f96df3031a8865176d338" + integrity sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.17.tgz#6bb89668c0e093c5a575ded08e1d308bd7fd63e7" - integrity sha512-/jGlhWR7Sj9JPZHzXyyMZ1RFMkNPjC6QIAan0sDOtIo2TYk3tZn5UDrkE0XgsTQCxWTTOcMPf9p6Rh2hXtl5TQ== +"@esbuild/netbsd-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz#30e8cd8a3dded63975e2df2438ca109601ebe0d1" + integrity sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.17.tgz#abac2ae75fef820ef6c2c48da4666d092584c79d" - integrity sha512-rSEeYaGgyGGf4qZM2NonMhMOP/5EHp4u9ehFiBrg7stH6BYEEjlkVREuDEcQ0LfIl53OXLxNbfuIj7mr5m29TA== +"@esbuild/openbsd-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz#7812af31b205055874c8082ea9cf9ab0da6217ae" + integrity sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.18.17.tgz#74a45fe1db8ea96898f1a9bb401dcf1dadfc8371" - integrity sha512-Y7ZBbkLqlSgn4+zot4KUNYst0bFoO68tRgI6mY2FIM+b7ZbyNVtNbDP5y8qlu4/knZZ73fgJDlXID+ohY5zt5g== +"@esbuild/sunos-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz#d5c275c3b4e73c9b0ecd38d1ca62c020f887ab9d" + integrity sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.18.17.tgz#fd95ffd217995589058a4ed8ac17ee72a3d7f615" - integrity sha512-bwPmTJsEQcbZk26oYpc4c/8PvTY3J5/QK8jM19DVlEsAB41M39aWovWoHtNm78sd6ip6prilxeHosPADXtEJFw== +"@esbuild/win32-arm64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz#73bc7f5a9f8a77805f357fab97f290d0e4820ac9" + integrity sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.18.17.tgz#9b7ef5d0df97593a80f946b482e34fcba3fa4aaf" - integrity sha512-H/XaPtPKli2MhW+3CQueo6Ni3Avggi6hP/YvgkEe1aSaxw+AeO8MFjq8DlgfTd9Iz4Yih3QCZI6YLMoyccnPRg== +"@esbuild/win32-ia32@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz#ec93cbf0ef1085cc12e71e0d661d20569ff42102" + integrity sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g== "@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.17": - version "0.18.17" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.18.17.tgz#bcb2e042631b3c15792058e189ed879a22b2968b" - integrity sha512-fGEb8f2BSA3CW7riJVurug65ACLuQAzKq0SSqkY2b2yHHH0MzDfbLyKIGzHwOI/gkHcxM/leuSW6D5w/LMNitA== +"@esbuild/win32-x64@0.18.20": + version "0.18.20" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz#786c5f41f043b07afb1af37683d7c33668858f6d" + integrity sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ== "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" @@ -3629,12 +3629,10 @@ "@svgr/plugin-svgo" "^6.2.0" "@swc/core-android-arm-eabi@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-android-arm64@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-darwin-arm64@1.3.74": version "1.3.74" @@ -3647,32 +3645,25 @@ integrity sha512-KKEGE1wXneYXe15fWDRM8/oekd/Q4yAuccA0vWY/7i6nOSPqWYcSDR0nRtR030ltDxWt0rk/eCTmNkrOWrKs3A== "@swc/core-freebsd-x64@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm-gnueabihf@1.3.74": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm-gnueabihf@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm64-gnu@1.3.74": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm64-gnu@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm64-musl@1.3.74": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-arm64-musl@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-linux-x64-gnu@1.3.74": version "1.3.74" @@ -3685,20 +3676,16 @@ integrity sha512-sxsFctbFMZEFmDE7CmYljG0dMumH8XBTwwtGr8s6z0fYAzXBGNq2AFPcmEh2np9rPWkt7pE1m0ByESD+dMkbxQ== "@swc/core-win32-arm64-msvc@1.3.74": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-win32-arm64-msvc@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-win32-ia32-msvc@1.3.74": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-win32-ia32-msvc@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@swc/core-win32-x64-msvc@1.3.74": version "1.3.74" @@ -3860,12 +3847,10 @@ "@types/ms" "*" "@types/eslint-scope@^3.7.3": - version "0.0.0" - uid "" + version "1.0.0" "@types/eslint-scope@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@types/eslint-visitor-keys@*": version "3.3.0" @@ -3875,20 +3860,16 @@ eslint-visitor-keys "*" "@types/eslint@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@types/estree@0.0.39": - version "0.0.0" - uid "" + version "1.0.0" "@types/estree@^1.0.0": - version "0.0.0" - uid "" + version "1.0.0" "@types/estree@link:./tools/dummypkg": - version "0.0.0" - uid "" + version "1.0.0" "@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18": version "4.17.28" @@ -6998,32 +6979,32 @@ esbuild@~0.17.6: "@esbuild/win32-x64" "0.17.19" esbuild@~0.18.0: - version "0.18.17" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.17.tgz#2aaf6bc6759b0c605777fdc435fea3969e091cad" - integrity sha512-1GJtYnUxsJreHYA0Y+iQz2UEykonY66HNWOb0yXYZi9/kNrORUEHVg87eQsCtqh59PEJ5YVZJO98JHznMJSWjg== + version "0.18.20" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.20.tgz#4709f5a34801b43b799ab7d6d82f7284a9b7a7a6" + integrity sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA== optionalDependencies: - "@esbuild/android-arm" "0.18.17" - "@esbuild/android-arm64" "0.18.17" - "@esbuild/android-x64" "0.18.17" - "@esbuild/darwin-arm64" "0.18.17" - "@esbuild/darwin-x64" "0.18.17" - "@esbuild/freebsd-arm64" "0.18.17" - "@esbuild/freebsd-x64" "0.18.17" - "@esbuild/linux-arm" "0.18.17" - "@esbuild/linux-arm64" "0.18.17" - "@esbuild/linux-ia32" "0.18.17" - "@esbuild/linux-loong64" "0.18.17" - "@esbuild/linux-mips64el" "0.18.17" - "@esbuild/linux-ppc64" "0.18.17" - "@esbuild/linux-riscv64" "0.18.17" - "@esbuild/linux-s390x" "0.18.17" - "@esbuild/linux-x64" "0.18.17" - "@esbuild/netbsd-x64" "0.18.17" - "@esbuild/openbsd-x64" "0.18.17" - "@esbuild/sunos-x64" "0.18.17" - "@esbuild/win32-arm64" "0.18.17" - "@esbuild/win32-ia32" "0.18.17" - "@esbuild/win32-x64" "0.18.17" + "@esbuild/android-arm" "0.18.20" + "@esbuild/android-arm64" "0.18.20" + "@esbuild/android-x64" "0.18.20" + "@esbuild/darwin-arm64" "0.18.20" + "@esbuild/darwin-x64" "0.18.20" + "@esbuild/freebsd-arm64" "0.18.20" + "@esbuild/freebsd-x64" "0.18.20" + "@esbuild/linux-arm" "0.18.20" + "@esbuild/linux-arm64" "0.18.20" + "@esbuild/linux-ia32" "0.18.20" + "@esbuild/linux-loong64" "0.18.20" + "@esbuild/linux-mips64el" "0.18.20" + "@esbuild/linux-ppc64" "0.18.20" + "@esbuild/linux-riscv64" "0.18.20" + "@esbuild/linux-s390x" "0.18.20" + "@esbuild/linux-x64" "0.18.20" + "@esbuild/netbsd-x64" "0.18.20" + "@esbuild/openbsd-x64" "0.18.20" + "@esbuild/sunos-x64" "0.18.20" + "@esbuild/win32-arm64" "0.18.20" + "@esbuild/win32-ia32" "0.18.20" + "@esbuild/win32-x64" "0.18.20" escalade@^3.1.1: version "3.1.1" From 2f535c3511a364188603c942a42c1267d9ab0712 Mon Sep 17 00:00:00 2001 From: Sukka Date: Wed, 9 Aug 2023 22:05:48 +0800 Subject: [PATCH 02/23] chore(eslint-plugin): remove unused `natural-compare-lite` from dependencies (#7442) --- packages/eslint-plugin/package.json | 1 - yarn.lock | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 0c1154a0a03f..cb9eee73ff10 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -65,7 +65,6 @@ "graphemer": "^1.4.0", "ignore": "^5.2.4", "natural-compare": "^1.4.0", - "natural-compare-lite": "^1.4.0", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" }, diff --git a/yarn.lock b/yarn.lock index bf8a254816ea..5afceec2b546 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10955,11 +10955,6 @@ nanoid@^3.3.6: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.6.tgz#443380c856d6e9f9824267d960b4236ad583ea4c" integrity sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA== -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" From b3bd517f3e516bb7ae3a697116b7cac92afd3d81 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 9 Aug 2023 07:06:22 -0700 Subject: [PATCH 03/23] chore(deps): update dependency monaco-editor to ~0.41.0 (#7431) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/website/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/website/package.json b/packages/website/package.json index 36ec9b56d662..6fc9eb7d0872 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -59,7 +59,7 @@ "cross-fetch": "*", "globby": "^11.1.0", "make-dir": "*", - "monaco-editor": "~0.40.0", + "monaco-editor": "~0.41.0", "raw-loader": "^4.0.2", "rimraf": "*", "stylelint": "^15.10.1", diff --git a/yarn.lock b/yarn.lock index 5afceec2b546..6fce466f6634 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10896,10 +10896,10 @@ modify-values@^1.0.1: resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== -monaco-editor@~0.40.0: - version "0.40.0" - resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.40.0.tgz#d10834e15ad50a15ec61fd01892e508464ebe2fe" - integrity sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g== +monaco-editor@~0.41.0: + version "0.41.0" + resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.41.0.tgz#2ba31e5af7e3ae93ac5d7467ec2772ef9b3d967f" + integrity sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA== ms@2.0.0: version "2.0.0" From 706aed39b2486de17a63a38e849fb8f47fd690be Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:00:26 +0930 Subject: [PATCH 04/23] chore(deps): update dependency @swc/jest to v0.2.28 (#7446) 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 6fce466f6634..3421e936bd77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3709,9 +3709,9 @@ "@swc/core-win32-x64-msvc" "1.3.74" "@swc/jest@^0.2.26": - version "0.2.27" - resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.27.tgz#f6cbd0b6f95cf689c3344c63fc379fa680cdbf52" - integrity sha512-Xt8EJ6Wy0NYVL8KDPcDMsuUSzyV2UAByamyy28x2iDZCJw2eVz3acedCGBYxxlPR/DNr6QbA35OSymuXhC9QVA== + version "0.2.28" + resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.28.tgz#cf21200a6058ab0dd2555b3ee1164d149bd8534b" + integrity sha512-iCB3lvngkQldLga35krb8LPa+6gmkVXnlpfCTXOAgMaEYFagLxOIFbIO8II7dhHa8ApOv5ap8iFRETI4lVY0vw== dependencies: "@jest/create-cache-key-function" "^27.4.2" jsonc-parser "^3.2.0" From bad37a22025b718a10e70cc84b9847eb41f723d0 Mon Sep 17 00:00:00 2001 From: auvred <61150013+auvred@users.noreply.github.com> Date: Thu, 10 Aug 2023 08:15:20 +0300 Subject: [PATCH 05/23] fix(eslint-plugin): [non-nullable-type-assertion-style] consider operator precedence when fixing (#7289) * fix(eslint-plugin): [non-nullable-type-assertion-style] consider operator precedence when fixing * test: split huge test case --- .../non-nullable-type-assertion-style.ts | 12 +++++- .../non-nullable-type-assertion-style.test.ts | 42 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/packages/eslint-plugin/src/rules/non-nullable-type-assertion-style.ts b/packages/eslint-plugin/src/rules/non-nullable-type-assertion-style.ts index 8b7345e82401..4523715d1fbd 100644 --- a/packages/eslint-plugin/src/rules/non-nullable-type-assertion-style.ts +++ b/packages/eslint-plugin/src/rules/non-nullable-type-assertion-style.ts @@ -114,11 +114,21 @@ export default util.createRule({ } if (sameTypeWithoutNullish(assertedTypes, originalTypes)) { + const expressionSourceCode = sourceCode.getText(node.expression); + + const higherPrecedenceThanUnary = + util.getOperatorPrecedence( + services.esTreeNodeToTSNodeMap.get(node.expression).kind, + ts.SyntaxKind.Unknown, + ) > util.OperatorPrecedence.Unary; + context.report({ fix(fixer) { return fixer.replaceText( node, - `${sourceCode.getText(node.expression)}!`, + higherPrecedenceThanUnary + ? `${expressionSourceCode}!` + : `(${expressionSourceCode})!`, ); }, messageId: 'preferNonNullAssertion', diff --git a/packages/eslint-plugin/tests/rules/non-nullable-type-assertion-style.test.ts b/packages/eslint-plugin/tests/rules/non-nullable-type-assertion-style.test.ts index 8b86634d2797..a5dd34cb94aa 100644 --- a/packages/eslint-plugin/tests/rules/non-nullable-type-assertion-style.test.ts +++ b/packages/eslint-plugin/tests/rules/non-nullable-type-assertion-style.test.ts @@ -199,6 +199,48 @@ declare const x: T; const y = x!; `, }, + { + code: ` +declare function nullablePromise(): Promise; + +async function fn(): Promise { + return (await nullablePromise()) as string; +} + `, + errors: [ + { + column: 10, + line: 5, + messageId: 'preferNonNullAssertion', + }, + ], + output: ` +declare function nullablePromise(): Promise; + +async function fn(): Promise { + return (await nullablePromise())!; +} + `, + }, + { + code: ` +declare const a: string | null; + +const b = (a || undefined) as string; + `, + errors: [ + { + column: 11, + line: 4, + messageId: 'preferNonNullAssertion', + }, + ], + output: ` +declare const a: string | null; + +const b = (a || undefined)!; + `, + }, ], }); From ad8401a5970441258cc4440a01a3acf35d861171 Mon Sep 17 00:00:00 2001 From: Kemil Beltre <20250204+kemilbeltre@users.noreply.github.com> Date: Thu, 10 Aug 2023 07:58:48 +0200 Subject: [PATCH 06/23] fix(eslint-plugin): [strict-boolean-expressions] replace dangerous fixer with suggestions (#7394) * fix(eslint-plugin): remove explicit rule check for logical negation expressions * feat: add null check error without fix options * refactor: add explicit null check rule suggestion * feat: change suggestion fix message id * test: add fix compare nullish suggestion * refactor: move !nullableObject to suggestions --- .../src/rules/strict-boolean-expressions.ts | 32 +++-- .../rules/strict-boolean-expressions.test.ts | 110 +++++++++++++++--- 2 files changed, 117 insertions(+), 25 deletions(-) diff --git a/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts b/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts index 6ea73c6e299f..2eed8cdc1e82 100644 --- a/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts +++ b/packages/eslint-plugin/src/rules/strict-boolean-expressions.ts @@ -703,23 +703,33 @@ export default util.createRule({ context.report({ node, messageId: 'conditionErrorNullableObject', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: util.getWrappingFixer({ + sourceCode, + node: node.parent, + innerNode: node, + wrap: code => `${code} == null`, + }), + }, + ], }); } else { // if (nullableObject) context.report({ node, messageId: 'conditionErrorNullableObject', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} != null`, - }), + suggest: [ + { + messageId: 'conditionFixCompareNullish', + fix: util.getWrappingFixer({ + sourceCode, + node, + wrap: code => `${code} != null`, + }), + }, + ], }); } } diff --git a/packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts b/packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts index 65878e2d17fe..9a285b70d186 100644 --- a/packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts +++ b/packages/eslint-plugin/tests/rules/strict-boolean-expressions.test.ts @@ -1008,15 +1008,40 @@ if (y) { (x: T) => x ? 1 : 0; `, errors: [ - { messageId: 'conditionErrorNullableObject', line: 2, column: 37 }, - { messageId: 'conditionErrorNullableObject', line: 3, column: 33 }, - { messageId: 'conditionErrorNullableObject', line: 4, column: 52 }, + { + messageId: 'conditionErrorNullableObject', + line: 2, + column: 37, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: 'declare const x: object | null; if (x != null) {}', + }, + ], + }, + { + messageId: 'conditionErrorNullableObject', + line: 3, + column: 33, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` (x?: { a: number }) => x == null;`, + }, + ], + }, + { + messageId: 'conditionErrorNullableObject', + line: 4, + column: 52, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` (x: T) => (x != null) ? 1 : 0;`, + }, + ], + }, ], - output: ` - declare const x: object | null; if (x != null) {} - (x?: { a: number }) => x == null; - (x: T) => (x != null) ? 1 : 0; - `, }), // nullable string in boolean context @@ -1620,18 +1645,75 @@ if (x) { obj && 1 || 0 `, errors: [ - { messageId: 'conditionErrorNullableObject', line: 3, column: 10 }, - { messageId: 'conditionErrorNullableObject', line: 4, column: 10 }, - { messageId: 'conditionErrorNullableObject', line: 5, column: 9 }, - { messageId: 'conditionErrorNullableObject', line: 6, column: 9 }, - ], - output: ` + { + messageId: 'conditionErrorNullableObject', + line: 3, + column: 10, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` declare const obj: { x: number } | null; (obj == null) ? 1 : 0 + !obj + obj || 0 + obj && 1 || 0 + `, + }, + ], + }, + { + messageId: 'conditionErrorNullableObject', + line: 4, + column: 10, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` + declare const obj: { x: number } | null; + !obj ? 1 : 0 obj == null + obj || 0 + obj && 1 || 0 + `, + }, + ], + }, + { + messageId: 'conditionErrorNullableObject', + line: 5, + column: 9, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` + declare const obj: { x: number } | null; + !obj ? 1 : 0 + !obj ;(obj != null) || 0 + obj && 1 || 0 + `, + }, + ], + }, + { + messageId: 'conditionErrorNullableObject', + line: 6, + column: 9, + suggestions: [ + { + messageId: 'conditionFixCompareNullish', + output: ` + declare const obj: { x: number } | null; + !obj ? 1 : 0 + !obj + obj || 0 ;(obj != null) && 1 || 0 `, + }, + ], + }, + ], }, ], }); From 49e5dd51e30b2b3d4368f7fc82897ea2ee6a52e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josh=20Goldberg=20=E2=9C=A8?= Date: Wed, 9 Aug 2023 23:02:26 -0700 Subject: [PATCH 07/23] chore: add pr-review-requested.yml workflow (#7416) * chore: add pr-review-requested.yml workflow * yarn format --write --- .github/workflows/pr-review-requested.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr-review-requested.yml diff --git a/.github/workflows/pr-review-requested.yml b/.github/workflows/pr-review-requested.yml new file mode 100644 index 000000000000..3a69f7c14e19 --- /dev/null +++ b/.github/workflows/pr-review-requested.yml @@ -0,0 +1,21 @@ +jobs: + pr_review_requested: + runs-on: ubuntu-latest + steps: + - uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: 'awaiting response' + - if: failure() + run: | + echo "Don't worry if the previous step failed." + echo "See https://github.com/actions-ecosystem/action-remove-labels/issues/221." + +name: PR Review Requested + +on: + pull_request_target: + types: + - review_requested + +permissions: + pull-requests: write From d25c5b436b012b18728f15460815ea2606534185 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 10 Aug 2023 11:54:48 +0200 Subject: [PATCH 08/23] docs: fix wrong explanation in `Configurations.mdx` (#7448) Fix typo in `Configurations.mdx` Explanation of `stylistic-type-checked` in section `Recommended Configurations` refers to `strict` instead of `stylistic`. --- docs/linting/Configurations.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/linting/Configurations.mdx b/docs/linting/Configurations.mdx index b86012cb0e8c..0782f0a52a20 100644 --- a/docs/linting/Configurations.mdx +++ b/docs/linting/Configurations.mdx @@ -56,7 +56,7 @@ Additionally, we provide a [`stylistic`](#stylistic) config that enforces concis We recommend that most projects should extend from either: - [`stylistic`](#stylistic): Stylistic rules you can drop in without additional configuration. -- [`stylistic-type-checked`](#stylistic-type-checked): Contains `strict` + additional stylistic rules that require type information. +- [`stylistic-type-checked`](#stylistic-type-checked): Contains `stylistic` + additional stylistic rules that require type information. :::note These configurations are our recommended starting points, but **you don't need to use them as-is**. From 49a53f0ba985941a431269d3761030dc414916b1 Mon Sep 17 00:00:00 2001 From: SUZUKI Sosuke Date: Thu, 10 Aug 2023 23:22:31 +0900 Subject: [PATCH 09/23] fix(typescript-estree): support `declare` and `export` modifiers for nested namespace declaration (#7410) --- .../module-nested-once-declare/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 74 +++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 +++++++++ .../snapshots/3-Babel-AST.shot | 65 ++++++++ .../snapshots/4-Babel-Tokens.shot | 76 +++++++++ .../snapshots/5-AST-Alignment-AST.shot | 78 ++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../module-nested-twice-declare/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 98 ++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 ++++++++++++ .../snapshots/3-Babel-AST.shot | 84 ++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 ++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 102 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../namespace-nested-once-declare/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 71 +++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 +++++++++ .../snapshots/3-Babel-AST.shot | 65 ++++++++ .../snapshots/4-Babel-Tokens.shot | 76 +++++++++ .../snapshots/5-AST-Alignment-AST.shot | 97 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 71 +++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 +++++++++ .../snapshots/3-Babel-AST.shot | 65 ++++++++ .../snapshots/4-Babel-Tokens.shot | 76 +++++++++ .../snapshots/5-AST-Alignment-AST.shot | 97 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../namespace-nested-once-export/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 84 ++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 76 +++++++++ .../snapshots/3-Babel-AST.shot | 77 +++++++++ .../snapshots/4-Babel-Tokens.shot | 76 +++++++++ .../snapshots/5-AST-Alignment-AST.shot | 109 +++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../namespace-nested-twice-declare/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 92 +++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 ++++++++++++ .../snapshots/3-Babel-AST.shot | 84 ++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 ++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 132 ++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 105 +++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 106 +++++++++++++ .../snapshots/3-Babel-AST.shot | 97 ++++++++++++ .../snapshots/4-Babel-Tokens.shot | 106 +++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 146 ++++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../namespace-nested-twice-export/fixture.ts | 1 + .../snapshots/1-TSESTree-AST.shot | 105 +++++++++++++ .../snapshots/2-TSESTree-Tokens.shot | 96 ++++++++++++ .../snapshots/3-Babel-AST.shot | 96 ++++++++++++ .../snapshots/4-Babel-Tokens.shot | 96 ++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 144 +++++++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 + .../tests/fixtures-with-differences-ast.shot | 8 + packages/typescript-estree/src/convert.ts | 17 +- packages/typescript-estree/src/node-utils.ts | 21 +++ 59 files changed, 3732 insertions(+), 4 deletions(-) create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/6-AST-Alignment-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/fixture.ts create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/1-TSESTree-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/2-TSESTree-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/6-AST-Alignment-Tokens.shot diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/fixture.ts new file mode 100644 index 000000000000..617f2d2428d8 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/fixture.ts @@ -0,0 +1 @@ +declare module abc.def {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..595debc43414 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,74 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [23, 25], + loc: { + start: { column: 23, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + declare: false, + global: false, + id: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + kind: "module", + + range: [19, 25], + loc: { + start: { column: 19, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + declare: true, + global: false, + id: Identifier { + type: "Identifier", + decorators: [], + name: "abc", + optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + kind: "module", + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..f05fbea8e362 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "module", + + range: [8, 14], + loc: { + start: { column: 8, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..d318158dbf0b --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,65 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [23, 25], + loc: { + start: { column: 23, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [19, 25], + loc: { + start: { column: 19, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..bd7e4f5f490b --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "module", + + range: [8, 14], + loc: { + start: { column: 8, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [23, 24], + loc: { + start: { column: 23, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..fb5a5c4a4a9d --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,78 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [23, 25], + loc: { + start: { column: 23, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'def', +- optional: false, + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +- kind: 'module', + + range: [19, 25], + loc: { + start: { column: 19, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + declare: true, +- global: false, + id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'abc', +- optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- kind: 'module', + + range: [0, 25], + loc: { + start: { column: 0, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 26], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..fdb6dc161203 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-once-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/fixture.ts new file mode 100644 index 000000000000..0cc1e8513765 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/fixture.ts @@ -0,0 +1 @@ +declare module abc.def.ghi {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..f219c0ae244c --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,98 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + declare: false, + global: false, + id: Identifier { + type: "Identifier", + decorators: [], + name: "ghi", + optional: false, + + range: [23, 26], + loc: { + start: { column: 23, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + kind: "module", + + range: [23, 29], + loc: { + start: { column: 23, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + declare: false, + global: false, + id: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + kind: "module", + + range: [19, 29], + loc: { + start: { column: 19, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + declare: true, + global: false, + id: Identifier { + type: "Identifier", + decorators: [], + name: "abc", + optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + kind: "module", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..c95519c7e7ac --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "module", + + range: [8, 14], + loc: { + start: { column: 8, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [23, 26], + loc: { + start: { column: 23, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..f78579e7fe3d --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "ghi", + + range: [23, 26], + loc: { + start: { column: 23, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + + range: [23, 29], + loc: { + start: { column: 23, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + + range: [19, 29], + loc: { + start: { column: 19, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..ff9d1eacd8cf --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "module", + + range: [8, 14], + loc: { + start: { column: 8, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [18, 19], + loc: { + start: { column: 18, line: 1 }, + end: { column: 19, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [23, 26], + loc: { + start: { column: 23, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..2e4db1ab60b3 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,102 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleDeclaration { + type: 'TSModuleDeclaration', + body: TSModuleBlock { + type: 'TSModuleBlock', + body: Array [], + + range: [27, 29], + loc: { + start: { column: 27, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'ghi', +- optional: false, + + range: [23, 26], + loc: { + start: { column: 23, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, +- kind: 'module', + + range: [23, 29], + loc: { + start: { column: 23, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, +- declare: false, +- global: false, + id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'def', +- optional: false, + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, +- kind: 'module', + + range: [19, 29], + loc: { + start: { column: 19, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + declare: true, +- global: false, + id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'abc', +- optional: false, + + range: [15, 18], + loc: { + start: { column: 15, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, +- kind: 'module', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 30], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..03cbe4774999 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration module-nested-twice-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/fixture.ts new file mode 100644 index 000000000000..56c4bfb8a217 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/fixture.ts @@ -0,0 +1 @@ +declare namespace abd.def {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..a17505651b98 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + declare: true, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abd", + optional: false, + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [18, 25], + loc: { + start: { column: 18, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + kind: "namespace", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..8769bf5f46b5 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..df75ba2eea9b --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,65 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [22, 28], + loc: { + start: { column: 22, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..be0128d5d6fe --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..26c71097e831 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,97 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], +- +- range: [26, 28], +- loc: { +- start: { column: 26, line: 1 }, +- end: { column: 28, line: 1 }, +- }, +- }, +- declare: true, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abd', +- optional: false, ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [18, 21], ++ range: [26, 28], + loc: { +- start: { column: 18, line: 1 }, +- end: { column: 21, line: 1 }, ++ start: { column: 26, line: 1 }, ++ end: { column: 28, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'def', +- optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + +- range: [18, 25], ++ range: [22, 28], ++ loc: { ++ start: { column: 22, line: 1 }, ++ end: { column: 28, line: 1 }, ++ }, ++ }, ++ declare: true, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abd', ++ ++ range: [18, 21], + loc: { + start: { column: 18, line: 1 }, +- end: { column: 25, line: 1 }, ++ end: { column: 21, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..0b09bec2a5a7 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/fixture.ts new file mode 100644 index 000000000000..56c4bfb8a217 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/fixture.ts @@ -0,0 +1 @@ +declare namespace abd.def {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..fefe4f69faf0 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,71 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + declare: true, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abd", + optional: false, + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [18, 25], + loc: { + start: { column: 18, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + kind: "namespace", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..a5081116fc4f --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..eebbcb70adb1 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,65 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [26, 28], + loc: { + start: { column: 26, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [22, 28], + loc: { + start: { column: 22, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..a2a9ddd576d8 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [27, 28], + loc: { + start: { column: 27, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..c6c7a44f6b38 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,97 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], +- +- range: [26, 28], +- loc: { +- start: { column: 26, line: 1 }, +- end: { column: 28, line: 1 }, +- }, +- }, +- declare: true, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abd', +- optional: false, ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [18, 21], ++ range: [26, 28], + loc: { +- start: { column: 18, line: 1 }, +- end: { column: 21, line: 1 }, ++ start: { column: 26, line: 1 }, ++ end: { column: 28, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'def', +- optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + +- range: [18, 25], ++ range: [22, 28], ++ loc: { ++ start: { column: 22, line: 1 }, ++ end: { column: 28, line: 1 }, ++ }, ++ }, ++ declare: true, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abd', ++ ++ range: [18, 21], + loc: { + start: { column: 18, line: 1 }, +- end: { column: 25, line: 1 }, ++ end: { column: 21, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 29], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..955c0d9a300e --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/fixture.ts new file mode 100644 index 000000000000..ce4dee7565ff --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/fixture.ts @@ -0,0 +1 @@ +export namespace abd.def {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..d8b2ef582c99 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + declare: false, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abd", + optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [17, 24], + loc: { + start: { column: 17, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + kind: "namespace", + + range: [7, 27], + loc: { + start: { column: 7, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + exportKind: "value", + source: null, + specifiers: [], + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..04c548168627 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..969e672365c7 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/3-Babel-AST.shot @@ -0,0 +1,77 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [25, 27], + loc: { + start: { column: 25, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [21, 27], + loc: { + start: { column: 21, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "abd", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [7, 27], + loc: { + start: { column: 7, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + exportKind: "value", + source: null, + specifiers: [], + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..8eecdd08473d --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abd", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [26, 27], + loc: { + start: { column: 26, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..84f061a5ebde --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,109 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], +- +- range: [25, 27], +- loc: { +- start: { column: 25, line: 1 }, +- end: { column: 27, line: 1 }, +- }, +- }, +- declare: false, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abd', +- optional: false, ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [17, 20], ++ range: [25, 27], + loc: { +- start: { column: 17, line: 1 }, +- end: { column: 20, line: 1 }, ++ start: { column: 25, line: 1 }, ++ end: { column: 27, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], + name: 'def', +- optional: false, + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + +- range: [17, 24], ++ range: [21, 27], ++ loc: { ++ start: { column: 21, line: 1 }, ++ end: { column: 27, line: 1 }, ++ }, ++ }, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abd', ++ ++ range: [17, 20], + loc: { + start: { column: 17, line: 1 }, +- end: { column: 24, line: 1 }, ++ end: { column: 20, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [7, 27], + loc: { + start: { column: 7, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 27], + loc: { + start: { column: 0, line: 1 }, + end: { column: 27, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 28], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..43bb050299f5 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-once-export AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/fixture.ts new file mode 100644 index 000000000000..ab821cb92af0 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/fixture.ts @@ -0,0 +1 @@ +declare namespace abc.def.ghi {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..bc92ba905b7e --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,92 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [30, 32], + loc: { + start: { column: 30, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + declare: true, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abc", + optional: false, + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [18, 25], + loc: { + start: { column: 18, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "ghi", + optional: false, + + range: [26, 29], + loc: { + start: { column: 26, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [18, 29], + loc: { + start: { column: 18, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + kind: "namespace", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..b9d36f117910 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare TSESTree - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [26, 29], + loc: { + start: { column: 26, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..c42e6dea3a33 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,84 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [30, 32], + loc: { + start: { column: 30, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "ghi", + + range: [26, 29], + loc: { + start: { column: 26, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + + range: [26, 32], + loc: { + start: { column: 26, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + + range: [22, 32], + loc: { + start: { column: 22, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abc", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..9c3b20aa1fb6 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare Babel - Tokens 1`] = ` +[ + Identifier { + type: "Identifier", + value: "declare", + + range: [0, 7], + loc: { + start: { column: 0, line: 1 }, + end: { column: 7, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [8, 17], + loc: { + start: { column: 8, line: 1 }, + end: { column: 17, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [18, 21], + loc: { + start: { column: 18, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [21, 22], + loc: { + start: { column: 21, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [22, 25], + loc: { + start: { column: 22, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [25, 26], + loc: { + start: { column: 25, line: 1 }, + end: { column: 26, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [26, 29], + loc: { + start: { column: 26, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [31, 32], + loc: { + start: { column: 31, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..7a97e14281ea --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,132 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [30, 32], +- loc: { +- start: { column: 30, line: 1 }, +- end: { column: 32, line: 1 }, +- }, +- }, +- declare: true, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abc', +- optional: false, +- +- range: [18, 21], ++ range: [30, 32], + loc: { +- start: { column: 18, line: 1 }, +- end: { column: 21, line: 1 }, ++ start: { column: 30, line: 1 }, ++ end: { column: 32, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'def', +- optional: false, ++ name: 'ghi', + +- range: [22, 25], ++ range: [26, 29], + loc: { +- start: { column: 22, line: 1 }, +- end: { column: 25, line: 1 }, ++ start: { column: 26, line: 1 }, ++ end: { column: 29, line: 1 }, + }, + }, + +- range: [18, 25], ++ range: [26, 32], + loc: { +- start: { column: 18, line: 1 }, +- end: { column: 25, line: 1 }, ++ start: { column: 26, line: 1 }, ++ end: { column: 32, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'ghi', +- optional: false, ++ name: 'def', + +- range: [26, 29], ++ range: [22, 25], + loc: { +- start: { column: 26, line: 1 }, +- end: { column: 29, line: 1 }, ++ start: { column: 22, line: 1 }, ++ end: { column: 25, line: 1 }, + }, + }, + +- range: [18, 29], ++ range: [22, 32], ++ loc: { ++ start: { column: 22, line: 1 }, ++ end: { column: 32, line: 1 }, ++ }, ++ }, ++ declare: true, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abc', ++ ++ range: [18, 21], + loc: { + start: { column: 18, line: 1 }, +- end: { column: 29, line: 1 }, ++ end: { column: 21, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + ], + sourceType: 'script', + + range: [0, 33], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..6b780da7104c --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/fixture.ts new file mode 100644 index 000000000000..7620f0a1fa99 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/fixture.ts @@ -0,0 +1 @@ +export declare namespace abc.def.ghi {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..d725dc2ec655 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,105 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [37, 39], + loc: { + start: { column: 37, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + declare: true, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abc", + optional: false, + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [29, 32], + loc: { + start: { column: 29, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + + range: [25, 32], + loc: { + start: { column: 25, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "ghi", + optional: false, + + range: [33, 36], + loc: { + start: { column: 33, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + + range: [25, 36], + loc: { + start: { column: 25, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + kind: "namespace", + + range: [7, 39], + loc: { + start: { column: 7, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + exportKind: "type", + source: null, + specifiers: [], + + range: [0, 39], + loc: { + start: { column: 0, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 40], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..cce80b8f5e4e --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "declare", + + range: [7, 14], + loc: { + start: { column: 7, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [15, 24], + loc: { + start: { column: 15, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [29, 32], + loc: { + start: { column: 29, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [33, 36], + loc: { + start: { column: 33, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [37, 38], + loc: { + start: { column: 37, line: 1 }, + end: { column: 38, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [38, 39], + loc: { + start: { column: 38, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..22193550e2ea --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/3-Babel-AST.shot @@ -0,0 +1,97 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [37, 39], + loc: { + start: { column: 37, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "ghi", + + range: [33, 36], + loc: { + start: { column: 33, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + + range: [33, 39], + loc: { + start: { column: 33, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [29, 32], + loc: { + start: { column: 29, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + + range: [29, 39], + loc: { + start: { column: 29, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + declare: true, + id: Identifier { + type: "Identifier", + name: "abc", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [7, 39], + loc: { + start: { column: 7, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + exportKind: "type", + source: null, + specifiers: [], + + range: [0, 39], + loc: { + start: { column: 0, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + ], + sourceType: "script", + + range: [0, 40], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..94038375b350 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,106 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "declare", + + range: [7, 14], + loc: { + start: { column: 7, line: 1 }, + end: { column: 14, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [15, 24], + loc: { + start: { column: 15, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [28, 29], + loc: { + start: { column: 28, line: 1 }, + end: { column: 29, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [29, 32], + loc: { + start: { column: 29, line: 1 }, + end: { column: 32, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [32, 33], + loc: { + start: { column: 32, line: 1 }, + end: { column: 33, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [33, 36], + loc: { + start: { column: 33, line: 1 }, + end: { column: 36, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [37, 38], + loc: { + start: { column: 37, line: 1 }, + end: { column: 38, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [38, 39], + loc: { + start: { column: 38, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..dc9a53f795df --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,146 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], +- +- range: [37, 39], +- loc: { +- start: { column: 37, line: 1 }, +- end: { column: 39, line: 1 }, +- }, +- }, +- declare: true, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abc', +- optional: false, ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [25, 28], ++ range: [37, 39], + loc: { +- start: { column: 25, line: 1 }, +- end: { column: 28, line: 1 }, ++ start: { column: 37, line: 1 }, ++ end: { column: 39, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'def', +- optional: false, ++ name: 'ghi', + +- range: [29, 32], ++ range: [33, 36], + loc: { +- start: { column: 29, line: 1 }, +- end: { column: 32, line: 1 }, ++ start: { column: 33, line: 1 }, ++ end: { column: 36, line: 1 }, + }, + }, + +- range: [25, 32], ++ range: [33, 39], + loc: { +- start: { column: 25, line: 1 }, +- end: { column: 32, line: 1 }, ++ start: { column: 33, line: 1 }, ++ end: { column: 39, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'ghi', +- optional: false, ++ name: 'def', + +- range: [33, 36], ++ range: [29, 32], + loc: { +- start: { column: 33, line: 1 }, +- end: { column: 36, line: 1 }, ++ start: { column: 29, line: 1 }, ++ end: { column: 32, line: 1 }, + }, + }, + +- range: [25, 36], ++ range: [29, 39], ++ loc: { ++ start: { column: 29, line: 1 }, ++ end: { column: 39, line: 1 }, ++ }, ++ }, ++ declare: true, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abc', ++ ++ range: [25, 28], + loc: { + start: { column: 25, line: 1 }, +- end: { column: 36, line: 1 }, ++ end: { column: 28, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [7, 39], + loc: { + start: { column: 7, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + exportKind: 'type', + source: null, + specifiers: Array [], + + range: [0, 39], + loc: { + start: { column: 0, line: 1 }, + end: { column: 39, line: 1 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [0, 40], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..0821649f34c9 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export-declare AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/fixture.ts b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/fixture.ts new file mode 100644 index 000000000000..4f50cefb1012 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/fixture.ts @@ -0,0 +1 @@ +export namespace abc.def.ghi {} diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..2446e9b95087 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,105 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export TSESTree - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [29, 31], + loc: { + start: { column: 29, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + declare: false, + global: false, + id: TSQualifiedName { + type: "TSQualifiedName", + left: TSQualifiedName { + type: "TSQualifiedName", + left: Identifier { + type: "Identifier", + decorators: [], + name: "abc", + optional: false, + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "def", + optional: false, + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [17, 24], + loc: { + start: { column: 17, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + right: Identifier { + type: "Identifier", + decorators: [], + name: "ghi", + optional: false, + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [17, 28], + loc: { + start: { column: 17, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + kind: "namespace", + + range: [7, 31], + loc: { + start: { column: 7, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + exportKind: "value", + source: null, + specifiers: [], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..faf98fe4cdc4 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export TSESTree - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..288e992909fb --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/3-Babel-AST.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export Babel - AST 1`] = ` +Program { + type: "Program", + body: [ + ExportNamedDeclaration { + type: "ExportNamedDeclaration", + assertions: [], + declaration: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleDeclaration { + type: "TSModuleDeclaration", + body: TSModuleBlock { + type: "TSModuleBlock", + body: [], + + range: [29, 31], + loc: { + start: { column: 29, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "ghi", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + + range: [25, 31], + loc: { + start: { column: 25, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + + range: [21, 31], + loc: { + start: { column: 21, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + id: Identifier { + type: "Identifier", + name: "abc", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + + range: [7, 31], + loc: { + start: { column: 7, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + exportKind: "value", + source: null, + specifiers: [], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: "module", + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..718198bf40dd --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,96 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export Babel - Tokens 1`] = ` +[ + Keyword { + type: "Keyword", + value: "export", + + range: [0, 6], + loc: { + start: { column: 0, line: 1 }, + end: { column: 6, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "namespace", + + range: [7, 16], + loc: { + start: { column: 7, line: 1 }, + end: { column: 16, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "abc", + + range: [17, 20], + loc: { + start: { column: 17, line: 1 }, + end: { column: 20, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [20, 21], + loc: { + start: { column: 20, line: 1 }, + end: { column: 21, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "def", + + range: [21, 24], + loc: { + start: { column: 21, line: 1 }, + end: { column: 24, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ".", + + range: [24, 25], + loc: { + start: { column: 24, line: 1 }, + end: { column: 25, line: 1 }, + }, + }, + Identifier { + type: "Identifier", + value: "ghi", + + range: [25, 28], + loc: { + start: { column: 25, line: 1 }, + end: { column: 28, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "{", + + range: [29, 30], + loc: { + start: { column: 29, line: 1 }, + end: { column: 30, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "}", + + range: [30, 31], + loc: { + start: { column: 30, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..26c9b1396134 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,144 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportNamedDeclaration { + type: 'ExportNamedDeclaration', + assertions: Array [], + declaration: TSModuleDeclaration { + type: 'TSModuleDeclaration', +- body: TSModuleBlock { +- type: 'TSModuleBlock', +- body: Array [], +- +- range: [29, 31], +- loc: { +- start: { column: 29, line: 1 }, +- end: { column: 31, line: 1 }, +- }, +- }, +- declare: false, +- global: false, +- id: TSQualifiedName { +- type: 'TSQualifiedName', +- left: TSQualifiedName { +- type: 'TSQualifiedName', +- left: Identifier { +- type: 'Identifier', +- decorators: Array [], +- name: 'abc', +- optional: false, ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleDeclaration { ++ type: 'TSModuleDeclaration', ++ body: TSModuleBlock { ++ type: 'TSModuleBlock', ++ body: Array [], + +- range: [17, 20], ++ range: [29, 31], + loc: { +- start: { column: 17, line: 1 }, +- end: { column: 20, line: 1 }, ++ start: { column: 29, line: 1 }, ++ end: { column: 31, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'def', +- optional: false, ++ name: 'ghi', + +- range: [21, 24], ++ range: [25, 28], + loc: { +- start: { column: 21, line: 1 }, +- end: { column: 24, line: 1 }, ++ start: { column: 25, line: 1 }, ++ end: { column: 28, line: 1 }, + }, + }, + +- range: [17, 24], ++ range: [25, 31], + loc: { +- start: { column: 17, line: 1 }, +- end: { column: 24, line: 1 }, ++ start: { column: 25, line: 1 }, ++ end: { column: 31, line: 1 }, + }, + }, +- right: Identifier { ++ id: Identifier { + type: 'Identifier', +- decorators: Array [], +- name: 'ghi', +- optional: false, ++ name: 'def', + +- range: [25, 28], ++ range: [21, 24], + loc: { +- start: { column: 25, line: 1 }, +- end: { column: 28, line: 1 }, ++ start: { column: 21, line: 1 }, ++ end: { column: 24, line: 1 }, + }, + }, + +- range: [17, 28], ++ range: [21, 31], ++ loc: { ++ start: { column: 21, line: 1 }, ++ end: { column: 31, line: 1 }, ++ }, ++ }, ++ id: Identifier { ++ type: 'Identifier', ++ name: 'abc', ++ ++ range: [17, 20], + loc: { + start: { column: 17, line: 1 }, +- end: { column: 28, line: 1 }, ++ end: { column: 20, line: 1 }, + }, + }, +- kind: 'namespace', + + range: [7, 31], + loc: { + start: { column: 7, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + exportKind: 'value', + source: null, + specifiers: Array [], + + range: [0, 31], + loc: { + start: { column: 0, line: 1 }, + end: { column: 31, line: 1 }, + }, + }, + ], + sourceType: 'module', + + range: [0, 32], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..4bcbc43fb7d3 --- /dev/null +++ b/packages/ast-spec/src/declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration TSModuleDeclaration namespace-nested-twice-export AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index 67a51cd0dd1f..a5be38aaf360 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -81,10 +81,18 @@ exports[`AST Fixtures List fixtures with AST differences 1`] = ` "declaration/TSModuleDeclaration/fixtures/module-id-identifier/fixture.ts", "declaration/TSModuleDeclaration/fixtures/module-id-literal/fixture.ts", "declaration/TSModuleDeclaration/fixtures/module-id-qualified-name/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-nested-once-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/module-nested-twice-declare/fixture.ts", "declaration/TSModuleDeclaration/fixtures/namespace-declare/fixture.ts", "declaration/TSModuleDeclaration/fixtures/namespace-id-identifier/fixture.ts", "declaration/TSModuleDeclaration/fixtures/namespace-id-qualified-name/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-once-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-once-export/fixture.ts", "declaration/TSModuleDeclaration/fixtures/namespace-nested-once/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export-declare/fixture.ts", + "declaration/TSModuleDeclaration/fixtures/namespace-nested-twice-export/fixture.ts", "declaration/TSModuleDeclaration/fixtures/namespace-nested-twice/fixture.ts", "declaration/TSNamespaceExportDeclaration/fixtures/valid/fixture.ts", "declaration/TSTypeAliasDeclaration/fixtures/declare/fixture.ts", diff --git a/packages/typescript-estree/src/convert.ts b/packages/typescript-estree/src/convert.ts index 15035300f7b3..e6de3e2bf563 100644 --- a/packages/typescript-estree/src/convert.ts +++ b/packages/typescript-estree/src/convert.ts @@ -14,6 +14,7 @@ import { getLastModifier, getLineAndCharacterFor, getLocFor, + getNamespaceModifiers, getRange, getTextForTokenKind, getTSNodeAccessibility, @@ -157,7 +158,14 @@ export class Converter { | ts.VariableStatement, result: T, ): T | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration { - const modifiers = getModifiers(node); + const isNamespaceNode = + ts.isModuleDeclaration(node) && + Boolean(node.flags & ts.NodeFlags.Namespace); + + const modifiers = isNamespaceNode + ? getNamespaceModifiers(node) + : getModifiers(node); + if (modifiers?.[0].kind === SyntaxKind.ExportKeyword) { /** * Make sure that original node is registered instead of export @@ -2818,6 +2826,8 @@ export class Converter { } case SyntaxKind.ModuleDeclaration: { + let isDeclare = hasModifier(SyntaxKind.DeclareKeyword, node); + const result = this.createNode(node, { type: AST_NODE_TYPES.TSModuleDeclaration, ...((): TSESTree.OptionalRangeAndLoc< @@ -2901,6 +2911,7 @@ export class Converter { node.body.name ) { node = node.body; + isDeclare ||= hasModifier(SyntaxKind.DeclareKeyword, node); const nextName = node.name as ts.Identifier; @@ -2931,9 +2942,7 @@ export class Converter { })(), }); - if (hasModifier(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } + result.declare = isDeclare; if (node.flags & ts.NodeFlags.GlobalAugmentation) { result.global = true; diff --git a/packages/typescript-estree/src/node-utils.ts b/packages/typescript-estree/src/node-utils.ts index c24ad12215f8..9e75926a617c 100644 --- a/packages/typescript-estree/src/node-utils.ts +++ b/packages/typescript-estree/src/node-utils.ts @@ -924,3 +924,24 @@ export function nodeCanBeDecorated(node: TSNode): boolean { return false; } + +export function getNamespaceModifiers( + node: ts.ModuleDeclaration, +): ts.Modifier[] | undefined { + // For following nested namespaces, use modifiers given to the topmost namespace + // export declare namespace foo.bar.baz {} + let modifiers = getModifiers(node); + let moduleDeclaration = node; + while ( + (!modifiers || modifiers.length === 0) && + ts.isModuleDeclaration(moduleDeclaration.parent) && + moduleDeclaration.parent.name + ) { + const parentModifiers = getModifiers(moduleDeclaration.parent); + if (parentModifiers && parentModifiers?.length > 0) { + modifiers = parentModifiers; + } + moduleDeclaration = moduleDeclaration.parent; + } + return modifiers; +} From 60df0bbafb6247341784dfbdf932585eac88b637 Mon Sep 17 00:00:00 2001 From: Wes Pickett Date: Thu, 10 Aug 2023 10:32:12 -0400 Subject: [PATCH 10/23] fix(utils): add to JSONSchema4Type missing Array and Object (#7406) * fix: JSONSchema4Type missing Array and Object From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/json-schema/index.d.ts#L30 * fix: cleanup and build fix * fix: lint disable line * fix: create and move array/object to a new extended type. * fix: lint error * fix: lint error --- packages/utils/src/json-schema.ts | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/utils/src/json-schema.ts b/packages/utils/src/json-schema.ts index 4a09a589ad20..51ae016ca453 100644 --- a/packages/utils/src/json-schema.ts +++ b/packages/utils/src/json-schema.ts @@ -27,6 +27,22 @@ export type JSONSchema4TypeName = */ export type JSONSchema4Type = boolean | number | string | null; +export type JSONSchema4TypeExtended = + | JSONSchema4Type + | JSONSchema4Array + | JSONSchema4Object; + +// Workaround for infinite type recursion +// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style +export interface JSONSchema4Object { + [key: string]: JSONSchema4TypeExtended; +} + +// Workaround for infinite type recursion +// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 +// eslint-disable-next-line @typescript-eslint/no-empty-interface +export interface JSONSchema4Array extends Array {} + /** * Meta schema * @@ -51,7 +67,7 @@ export type JSONSchema4 = | JSONSchema4AnyOfSchema | JSONSchema4AnySchema | JSONSchema4ArraySchema - | JSONSchema4BoleanSchema + | JSONSchema4BooleanSchema | JSONSchema4MultiSchema | JSONSchema4NullSchema | JSONSchema4NumberSchema @@ -133,7 +149,7 @@ interface JSONSchema4Base { /** * The default value for the item if not present */ - default?: JSONSchema4Type | undefined; + default?: JSONSchema4TypeExtended | undefined; /** * This attribute indicates if the instance must have a value, and not @@ -187,7 +203,7 @@ export interface JSONSchema4MultiSchema Omit, Omit, Omit, - Omit, + Omit, Omit, Omit { type: JSONSchema4TypeName[]; @@ -440,7 +456,7 @@ export interface JSONSchema4NumberSchema extends JSONSchema4Base { /** * @see https://json-schema.org/understanding-json-schema/reference/boolean.html */ -export interface JSONSchema4BoleanSchema extends JSONSchema4Base { +export interface JSONSchema4BooleanSchema extends JSONSchema4Base { type: 'boolean'; /** From 0324fa25696bfec92ceae64aab1c86e4fb68221a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 06:27:31 -0700 Subject: [PATCH 11/23] chore(deps): update dependency @swc/core to v1.3.75 (#7455) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 76 +++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/yarn.lock b/yarn.lock index 3421e936bd77..d61c594eda82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3634,79 +3634,79 @@ "@swc/core-android-arm64@link:./tools/dummypkg": version "1.0.0" -"@swc/core-darwin-arm64@1.3.74": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.74.tgz#5ec6f504fb8cd74fd5133080f6cc670327a867cd" - integrity sha512-2rMV4QxM583jXcREfo0MhV3Oj5pgRSfSh/kVrB1twL2rQxOrbzkAPT/8flmygdVoL4f2F7o1EY5lKlYxEBiIKQ== +"@swc/core-darwin-arm64@1.3.76": + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.76.tgz#757f10c6482a44b8cea3e85b8ae714ce9b31b4b5" + integrity sha512-ovviEhZ/1E81Z9OGrO0ivLWk4VCa3I3ZzM+cd3gugglRRwVwtlIaoIYqY5S3KiCAupDd1+UCl5X7Vbio7a/V8g== -"@swc/core-darwin-x64@1.3.74": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.74.tgz#5da7bdc4ad0fb3b4375d9c1039672ae8f61efaeb" - integrity sha512-KKEGE1wXneYXe15fWDRM8/oekd/Q4yAuccA0vWY/7i6nOSPqWYcSDR0nRtR030ltDxWt0rk/eCTmNkrOWrKs3A== +"@swc/core-darwin-x64@1.3.76": + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.76.tgz#edba4a4dbbc7454bc914fc8cf61545a74622d46f" + integrity sha512-tcySTDqs0SHCebtW35sCdcLWsmTEo7bEwx0gNL/spetqVT9fpFi6qU8qcnt7i2KaZHbeNl9g1aadu+Yrni+GzA== "@swc/core-freebsd-x64@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm-gnueabihf@1.3.74": +"@swc/core-linux-arm-gnueabihf@1.3.76": version "1.0.0" "@swc/core-linux-arm-gnueabihf@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm64-gnu@1.3.74": +"@swc/core-linux-arm64-gnu@1.3.76": version "1.0.0" "@swc/core-linux-arm64-gnu@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-arm64-musl@1.3.74": +"@swc/core-linux-arm64-musl@1.3.76": version "1.0.0" "@swc/core-linux-arm64-musl@link:./tools/dummypkg": version "1.0.0" -"@swc/core-linux-x64-gnu@1.3.74": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.74.tgz#a98d9a984d47404aa2de478dd3cd33dbd195bba2" - integrity sha512-LEXpcShF6DLTWJSiBhMSYZkLQ27UvaQ24fCFhoIV/R3dhYaUpHmIyLPPBNC82T03lB3ONUFVwrRw6fxDJ/f00A== +"@swc/core-linux-x64-gnu@1.3.76": + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.76.tgz#cc2e6f0f90f0e9d6dcb8bc62cd31172e0967b396" + integrity sha512-iwCeRzd9oSvUzqt7nU6p/ztceAWfnO9XVxBn502R5gs6QCBbE1HCKrWHDO77aKPK7ss+0NcIGHvXTd9L8/wRzw== -"@swc/core-linux-x64-musl@1.3.74": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.74.tgz#95e04431eba994b4fae23c578ad1ba73fb72c21d" - integrity sha512-sxsFctbFMZEFmDE7CmYljG0dMumH8XBTwwtGr8s6z0fYAzXBGNq2AFPcmEh2np9rPWkt7pE1m0ByESD+dMkbxQ== +"@swc/core-linux-x64-musl@1.3.76": + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.76.tgz#ebc327df5e07aa02e41309e56590f505f1fc64c0" + integrity sha512-a671g4tW8kyFeuICsgq4uB9ukQfiIyXJT4V6YSnmqhCTz5mazWuDxZ5wKnx/1g5nXTl+U5cWH2TZaCJatp4GKA== -"@swc/core-win32-arm64-msvc@1.3.74": +"@swc/core-win32-arm64-msvc@1.3.76": version "1.0.0" "@swc/core-win32-arm64-msvc@link:./tools/dummypkg": version "1.0.0" -"@swc/core-win32-ia32-msvc@1.3.74": +"@swc/core-win32-ia32-msvc@1.3.76": version "1.0.0" "@swc/core-win32-ia32-msvc@link:./tools/dummypkg": version "1.0.0" -"@swc/core-win32-x64-msvc@1.3.74": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.74.tgz#4fd459c7264d4c97d1b2965ed6aa86b1725ce38b" - integrity sha512-S3YAvvLprTnPRwQuy9Dkwubb5SRLpVK3JJsqYDbGfgj8PGQyKHZcVJ5X3nfFsoWLy3j9B/3Os2nawprRSzeC5A== +"@swc/core-win32-x64-msvc@1.3.76": + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.76.tgz#eea647407895a5a410a459b2abf8572adb147927" + integrity sha512-CiMpWLLlR3Cew9067E7XxaLBwYYJ90r9EhGSO6V1pvYSWj7ET/Ppmtj1ZhzPJMqRXAP6xflfl5R5o4ee1m4WLA== "@swc/core@^1.3.68": - version "1.3.74" - resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.74.tgz#b1d1a3c46ca32b7f10d970c8a209d2913c9de251" - integrity sha512-P+MIExOTdWlfq8Heb1/NhBAke6UTckd4cRDuJoFcFMGBRvgoCMNWhnfP3FRRXPLI7GGg27dRZS+xHiqYyQmSrA== + version "1.3.76" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.76.tgz#f5259bd718e11854d9bd3a05f91f40bca21dffbc" + integrity sha512-aYYTA2aVYkwJAZepQXtPnkUthhOfn8qd6rsh+lrJxonFrjmpI7RHt2tMDVTXP6XDX7fvnvrVtT1bwZfmBFPh0Q== optionalDependencies: - "@swc/core-darwin-arm64" "1.3.74" - "@swc/core-darwin-x64" "1.3.74" - "@swc/core-linux-arm-gnueabihf" "1.3.74" - "@swc/core-linux-arm64-gnu" "1.3.74" - "@swc/core-linux-arm64-musl" "1.3.74" - "@swc/core-linux-x64-gnu" "1.3.74" - "@swc/core-linux-x64-musl" "1.3.74" - "@swc/core-win32-arm64-msvc" "1.3.74" - "@swc/core-win32-ia32-msvc" "1.3.74" - "@swc/core-win32-x64-msvc" "1.3.74" + "@swc/core-darwin-arm64" "1.3.76" + "@swc/core-darwin-x64" "1.3.76" + "@swc/core-linux-arm-gnueabihf" "1.3.76" + "@swc/core-linux-arm64-gnu" "1.3.76" + "@swc/core-linux-arm64-musl" "1.3.76" + "@swc/core-linux-x64-gnu" "1.3.76" + "@swc/core-linux-x64-musl" "1.3.76" + "@swc/core-win32-arm64-msvc" "1.3.76" + "@swc/core-win32-ia32-msvc" "1.3.76" + "@swc/core-win32-x64-msvc" "1.3.76" "@swc/jest@^0.2.26": version "0.2.28" From 889cc31fa916c42e4087c6f41fc56313a098bd7d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 06:27:39 -0700 Subject: [PATCH 12/23] chore(deps): update dependency @microsoft/api-extractor to v7.36.4 (#7454) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/yarn.lock b/yarn.lock index d61c594eda82..dd3659387958 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2761,26 +2761,26 @@ 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.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== +"@microsoft/api-extractor-model@7.27.6": + version "7.27.6" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor-model/-/api-extractor-model-7.27.6.tgz#308e44cd595d2fb446c6357759ee0675ec37d26e" + integrity sha512-eiCnlayyum1f7fS2nA9pfIod5VCNR1G+Tq84V/ijDrKrOFVa598BLw145nCsGDMoFenV6ajNi2PR5WCwpAxW6Q== dependencies: "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.59.6" + "@rushstack/node-core-library" "3.59.7" "@microsoft/api-extractor@^7.36.1": - 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== + version "7.36.4" + resolved "https://registry.yarnpkg.com/@microsoft/api-extractor/-/api-extractor-7.36.4.tgz#3bb9fbbbeacaa48eea49150351905a2677a506d9" + integrity sha512-21UECq8C/8CpHT23yiqTBQ10egKUacIpxkPyYR7hdswo/M5yTWdBvbq+77YC9uPKQJOUfOD1FImBQ1DzpsdeQQ== dependencies: - "@microsoft/api-extractor-model" "7.27.5" + "@microsoft/api-extractor-model" "7.27.6" "@microsoft/tsdoc" "0.14.2" "@microsoft/tsdoc-config" "~0.16.1" - "@rushstack/node-core-library" "3.59.6" - "@rushstack/rig-package" "0.4.0" - "@rushstack/ts-command-line" "4.15.1" + "@rushstack/node-core-library" "3.59.7" + "@rushstack/rig-package" "0.4.1" + "@rushstack/ts-command-line" "4.15.2" colors "~1.2.1" lodash "~4.17.15" resolve "~1.22.1" @@ -3384,10 +3384,10 @@ estree-walker "^1.0.1" picomatch "^2.2.2" -"@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== +"@rushstack/node-core-library@3.59.7": + version "3.59.7" + resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.59.7.tgz#9dcd62b79263e8a5b68465d4bf9124ec86e14b6c" + integrity sha512-ln1Drq0h+Hwa1JVA65x5mlSgUrBa1uHL+V89FqVWQgXd1vVIMhrtqtWGQrhTnFHxru5ppX+FY39VWELF/FjQCw== dependencies: colors "~1.2.1" fs-extra "~7.0.1" @@ -3397,18 +3397,18 @@ semver "~7.5.4" z-schema "~5.0.2" -"@rushstack/rig-package@0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.4.0.tgz#1dade94da5cd81321ca9ec630b6ceed2d57cc826" - integrity sha512-FnM1TQLJYwSiurP6aYSnansprK5l8WUK8VG38CmAaZs29ZeL1msjK0AP1VS4ejD33G0kE/2cpsPsS9jDenBMxw== +"@rushstack/rig-package@0.4.1": + version "0.4.1" + resolved "https://registry.yarnpkg.com/@rushstack/rig-package/-/rig-package-0.4.1.tgz#ff11bf67dad46f9b4f09db91cf45739ab411ee9f" + integrity sha512-AGRwpqlXNSp9LhUSz4HKI9xCluqQDt/obsQFdv/NYIekF3pTTPzc+HbQsIsjVjYnJ3DcmxOREVMhvrMEjpiq6g== dependencies: resolve "~1.22.1" strip-json-comments "~3.1.1" -"@rushstack/ts-command-line@4.15.1": - version "4.15.1" - resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.15.1.tgz#8f2ebde6bb19deb2c5b65363854b84aea1bf59f0" - integrity sha512-EL4jxZe5fhb1uVL/P/wQO+Z8Rc8FMiWJ1G7VgnPDvdIt5GVjRfK7vwzder1CZQiX3x0PY6uxENYLNGTFd1InRQ== +"@rushstack/ts-command-line@4.15.2": + version "4.15.2" + resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.15.2.tgz#7920e3fa2ab6af129d995ce4424c600da0bf8a93" + integrity sha512-5+C2uoJY8b+odcZD6coEe2XNC4ZjGB4vCMESbqW/8DHRWC/qIHfANdmN9F1wz/lAgxz72i7xRoVtPY2j7e4gpQ== dependencies: "@types/argparse" "1.0.38" argparse "~1.0.9" From e097d8834ad995c04e4050f2f8631878403e08e3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 06:27:55 -0700 Subject: [PATCH 13/23] chore(deps): update babel to v7.22.10 (#7452) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 171 +++++++++++++++++++++++++++--------------------------- 1 file changed, 86 insertions(+), 85 deletions(-) diff --git a/yarn.lock b/yarn.lock index dd3659387958..b54a59976cc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -184,12 +184,13 @@ dependencies: axe-core "^4.7.0" -"@babel/code-frame@*", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.22.5", "@babel/code-frame@^7.8.3": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.5.tgz#234d98e1551960604f1246e6475891a570ad5658" - integrity sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ== +"@babel/code-frame@*", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.0", "@babel/code-frame@^7.22.10", "@babel/code-frame@^7.22.5", "@babel/code-frame@^7.8.3": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.10.tgz#1c20e612b768fefa75f6e90d6ecb86329247f0a3" + integrity sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA== dependencies: - "@babel/highlight" "^7.22.5" + "@babel/highlight" "^7.22.10" + chalk "^2.4.2" "@babel/compat-data@^7.17.7", "@babel/compat-data@^7.20.5", "@babel/compat-data@^7.21.5", "@babel/compat-data@^7.22.9": version "7.22.9" @@ -197,20 +198,20 @@ integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== "@babel/core@*", "@babel/core@^7.11.1", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.15.0", "@babel/core@^7.15.5", "@babel/core@^7.18.6", "@babel/core@^7.22.8": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.9.tgz#bd96492c68822198f33e8a256061da3cf391f58f" - integrity sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w== + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.22.10.tgz#aad442c7bcd1582252cb4576747ace35bc122f35" + integrity sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.22.5" - "@babel/generator" "^7.22.9" - "@babel/helper-compilation-targets" "^7.22.9" + "@babel/code-frame" "^7.22.10" + "@babel/generator" "^7.22.10" + "@babel/helper-compilation-targets" "^7.22.10" "@babel/helper-module-transforms" "^7.22.9" - "@babel/helpers" "^7.22.6" - "@babel/parser" "^7.22.7" + "@babel/helpers" "^7.22.10" + "@babel/parser" "^7.22.10" "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.8" - "@babel/types" "^7.22.5" + "@babel/traverse" "^7.22.10" + "@babel/types" "^7.22.10" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" @@ -240,20 +241,20 @@ source-map "^0.5.0" "@babel/eslint-parser@*", "@babel/eslint-parser@^7.22.7": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.22.9.tgz#75f8aa978d1e76c87cc6f26c1ea16ae58804d390" - integrity sha512-xdMkt39/nviO/4vpVdrEYPwXCsYIXSSAr6mC7WQsNIlGnuxKyKE7GZjalcnbSWiC4OXGNNN3UQPeHfjSC6sTDA== + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.22.10.tgz#bfdf3d1b32ad573fe7c1c3447e0b485e3a41fd09" + integrity sha512-0J8DNPRXQRLeR9rPaUMM3fA+RbixjnVLe/MRMYCkp3hzgsSuxCHQ8NN8xQG1wIHKJ4a1DTROTvFJdW+B5/eOsg== dependencies: "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" eslint-visitor-keys "^2.1.0" semver "^6.3.1" -"@babel/generator@^7.12.5", "@babel/generator@^7.18.7", "@babel/generator@^7.22.7", "@babel/generator@^7.22.9", "@babel/generator@^7.7.2": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.9.tgz#572ecfa7a31002fa1de2a9d91621fd895da8493d" - integrity sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw== +"@babel/generator@^7.12.5", "@babel/generator@^7.18.7", "@babel/generator@^7.22.10", "@babel/generator@^7.7.2": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.22.10.tgz#c92254361f398e160645ac58831069707382b722" + integrity sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.22.10" "@jridgewell/gen-mapping" "^0.3.2" "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" @@ -273,10 +274,10 @@ "@babel/helper-explode-assignable-expression" "^7.18.6" "@babel/types" "^7.18.9" -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.21.5", "@babel/helper-compilation-targets@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz#f9d0a7aaaa7cd32a3f31c9316a69f5a9bcacb892" - integrity sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw== +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.21.5", "@babel/helper-compilation-targets@^7.22.10": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz#01d648bbc25dd88f513d862ee0df27b7d4e67024" + integrity sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q== dependencies: "@babel/compat-data" "^7.22.9" "@babel/helper-validator-option" "^7.22.5" @@ -457,35 +458,35 @@ "@babel/traverse" "^7.18.9" "@babel/types" "^7.18.9" -"@babel/helpers@^7.12.5", "@babel/helpers@^7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.6.tgz#8e61d3395a4f0c5a8060f309fb008200969b5ecd" - integrity sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA== +"@babel/helpers@^7.12.5", "@babel/helpers@^7.22.10": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.22.10.tgz#ae6005c539dfbcb5cd71fb51bfc8a52ba63bc37a" + integrity sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw== dependencies: "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.6" - "@babel/types" "^7.22.5" + "@babel/traverse" "^7.22.10" + "@babel/types" "^7.22.10" -"@babel/highlight@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.5.tgz#aa6c05c5407a67ebce408162b7ede789b4d22031" - integrity sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw== +"@babel/highlight@^7.22.10": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.10.tgz#02a3f6d8c1cb4521b2fd0ab0da8f4739936137d7" + integrity sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ== dependencies: "@babel/helper-validator-identifier" "^7.22.5" - chalk "^2.0.0" + chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.8", "@babel/parser@^7.20.7", "@babel/parser@^7.22.5", "@babel/parser@^7.22.7": - version "7.22.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.7.tgz#df8cf085ce92ddbdbf668a7f186ce848c9036cae" - integrity sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q== +"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.8", "@babel/parser@^7.20.7", "@babel/parser@^7.22.10", "@babel/parser@^7.22.5", "@babel/parser@^7.22.7": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.10.tgz#e37634f9a12a1716136c44624ef54283cabd3f55" + integrity sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz#da5b8f9a580acdfbe53494dba45ea389fb09a4d2" - integrity sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ== + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.5.tgz#87245a21cd69a73b0b81bcda98d443d6df08f05e" + integrity sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ== dependencies: - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-plugin-utils" "^7.22.5" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.20.7": version "7.20.7" @@ -1232,11 +1233,11 @@ regenerator-runtime "^0.13.4" "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.10.3", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.12.13", "@babel/runtime@^7.12.5", "@babel/runtime@^7.14.8", "@babel/runtime@^7.18.6", "@babel/runtime@^7.20.7", "@babel/runtime@^7.22.6", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.6.tgz#57d64b9ae3cff1d67eb067ae117dac087f5bd438" - integrity sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ== + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.22.10.tgz#ae3e9631fd947cb7e3610d3e9d8fef5f76696682" + integrity sha512-21t/fkKLMZI4pqP2wlmsQAWnYW1PDyKyyUV4vCi+B25ydmdaYTKXPwCj0BzSUnZf4seIiYvSA3jcZ3gdsMFkLQ== dependencies: - regenerator-runtime "^0.13.11" + regenerator-runtime "^0.14.0" "@babel/template@^7.12.7", "@babel/template@^7.18.6", "@babel/template@^7.20.7", "@babel/template@^7.22.5", "@babel/template@^7.3.3": version "7.22.5" @@ -1247,26 +1248,26 @@ "@babel/parser" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/traverse@^7.12.9", "@babel/traverse@^7.16.0", "@babel/traverse@^7.18.8", "@babel/traverse@^7.18.9", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.6", "@babel/traverse@^7.22.8": - version "7.22.8" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.8.tgz#4d4451d31bc34efeae01eac222b514a77aa4000e" - integrity sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw== +"@babel/traverse@^7.12.9", "@babel/traverse@^7.16.0", "@babel/traverse@^7.18.8", "@babel/traverse@^7.18.9", "@babel/traverse@^7.21.5", "@babel/traverse@^7.22.10": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.22.10.tgz#20252acb240e746d27c2e82b4484f199cf8141aa" + integrity sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig== dependencies: - "@babel/code-frame" "^7.22.5" - "@babel/generator" "^7.22.7" + "@babel/code-frame" "^7.22.10" + "@babel/generator" "^7.22.10" "@babel/helper-environment-visitor" "^7.22.5" "@babel/helper-function-name" "^7.22.5" "@babel/helper-hoist-variables" "^7.22.5" "@babel/helper-split-export-declaration" "^7.22.6" - "@babel/parser" "^7.22.7" - "@babel/types" "^7.22.5" + "@babel/parser" "^7.22.10" + "@babel/types" "^7.22.10" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.12.7", "@babel/types@^7.15.6", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.7", "@babel/types@^7.21.5", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.5.tgz#cd93eeaab025880a3a47ec881f4b096a5b786fbe" - integrity sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA== +"@babel/types@^7.0.0", "@babel/types@^7.12.7", "@babel/types@^7.15.6", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.20.0", "@babel/types@^7.20.7", "@babel/types@^7.21.5", "@babel/types@^7.22.10", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.22.10" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.22.10.tgz#4a9e76446048f2c66982d1a989dd12b8a2d2dc03" + integrity sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg== dependencies: "@babel/helper-string-parser" "^7.22.5" "@babel/helper-validator-identifier" "^7.22.5" @@ -2649,10 +2650,10 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/resolve-uri@3.1.0", "@jridgewell/resolve-uri@^3.0.3": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" - integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz#c08679063f279615a3326583ba3a90d1d82cc721" + integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== "@jridgewell/set-array@^1.0.1": version "1.1.2" @@ -2667,12 +2668,7 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@jridgewell/sourcemap-codec@1.4.14": - version "1.4.14" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" - integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== - -"@jridgewell/sourcemap-codec@^1.4.10": +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== @@ -2686,12 +2682,12 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": - version "0.3.18" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" - integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== + version "0.3.19" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz#f8a3249862f91be48d3127c3cfe992f79b4b8811" + integrity sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw== dependencies: - "@jridgewell/resolve-uri" "3.1.0" - "@jridgewell/sourcemap-codec" "1.4.14" + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" "@leichtgewicht/ip-codec@^2.0.1": version "2.0.4" @@ -5334,9 +5330,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001335, caniuse-lite@^1.0.30001517: - version "1.0.30001517" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz#90fabae294215c3495807eb24fc809e11dc2f0a8" - integrity sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA== + version "1.0.30001519" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz#3e7b8b8a7077e78b0eb054d69e6edf5c7df35601" + integrity sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg== ccount@^1.0.0: version "1.1.0" @@ -5369,7 +5365,7 @@ chalk@5.2.0: resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.2.0.tgz#249623b7d66869c673699fb66d65723e54dfcfb3" integrity sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA== -chalk@^2.0.0, chalk@^2.3.0: +chalk@^2.3.0, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -6755,9 +6751,9 @@ ejs@^3.1.6, ejs@^3.1.7: jake "^10.8.5" electron-to-chromium@^1.4.477: - version "1.4.477" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.477.tgz#05669aa6f161ee9076a6805457e9bd9fe6d0dfd1" - integrity sha512-shUVy6Eawp33dFBFIoYbIwLHrX0IZ857AlH9ug2o4rvbWmpaCUdBpQ5Zw39HRrfzAFm4APJE9V+E2A/WB0YqJw== + version "1.4.490" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.490.tgz#d99286f6e915667fa18ea4554def1aa60eb4d5f1" + integrity sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A== emittery@^0.13.1: version "0.13.1" @@ -12840,11 +12836,16 @@ regenerate@^1.4.2: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.4: +regenerator-runtime@^0.13.4: version "0.13.11" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== +regenerator-runtime@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz#5e19d68eb12d486f797e15a3c6a918f7cec5eb45" + integrity sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA== + regenerator-transform@^0.15.1: version "0.15.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.1.tgz#f6c4e99fc1b4591f780db2586328e4d9a9d8dc56" From 918125221a759fedbd9f9ffc0c495868c14bdd88 Mon Sep 17 00:00:00 2001 From: matwiem <57752566+matwiem@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:39:33 +0200 Subject: [PATCH 14/23] docs: add note on common misconceptions about type narrowing (#7391) * docs: add note on common misconceptions about type narrowing * docs: add a new line between expressions * Update packages/eslint-plugin/docs/rules/no-unnecessary-condition.md Co-authored-by: Joshua Chen * docs: add link to 'trade-offs in control flow analysis' * docs: move info to ## When Not To Use It * docs: recommend to assert instead of disabling eslint * Update packages/eslint-plugin/docs/rules/no-unnecessary-condition.md Co-authored-by: Joshua Chen * chore: add 'upcasting' to .cspell.json --------- Co-authored-by: Michal Matwiejczuk Co-authored-by: Joshua Chen --- .cspell.json | 1 + .../docs/rules/no-unnecessary-condition.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.cspell.json b/.cspell.json index 6f036d77516b..dd7ed6a481c7 100644 --- a/.cspell.json +++ b/.cspell.json @@ -133,6 +133,7 @@ "unfixable", "unoptimized", "unprefixed", + "upcasting", "upsert", "warnonunsupportedtypescriptversion", "Zacher" diff --git a/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md b/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md index 8e052f2379fc..f4e429751ffa 100644 --- a/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md +++ b/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md @@ -97,6 +97,22 @@ If for some reason you cannot turn on `strictNullChecks`, but still want to use The main downside to using this rule is the need for type information. +This rule has a known edge case of triggering on conditions that were modified within function calls (as side effects). +It is due to limitations of TypeScript's type narrowing. +See [#9998](https://github.com/microsoft/TypeScript/issues/9998) for details. + +We recommend upcasting the variable with a [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions). + +```ts +let condition = false as boolean; + +const f = () => (condition = true); +f(); + +if (condition) { +} +``` + ## Related To - ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information. From d94b7cbc07fb1f5f8bdebad7e4fd9c48d79ddc2b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:26:23 +0930 Subject: [PATCH 15/23] chore(deps): update dependency @types/node to v20.4.9 (#7459) 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 b54a59976cc0..2a67fd0e851f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4036,9 +4036,9 @@ "@types/node" "*" "@types/node@*", "@types/node@^17.0.5", "@types/node@^20.0.0": - version "20.4.8" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.8.tgz#b5dda19adaa473a9bf0ab5cbd8f30ec7d43f5c85" - integrity sha512-0mHckf6D2DiIAzh8fM8f3HQCvMKDpK94YQ0DSVkfWTG9BZleYIWudw9cJxX8oCk9bM+vAkDyujDV6dmKHbvQpg== + version "20.4.10" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.10.tgz#73c9480791e3ddeb4887a660fc93a7f59353ad45" + integrity sha512-vwzFiiy8Rn6E0MtA13/Cxxgpan/N6UeNYR9oUu6kuJWxu6zCk98trcDp8CBhbtaeuq9SykCmXkFr2lWLoPcvLg== "@types/normalize-package-data@^2.4.0": version "2.4.1" From 4e13eb001fde4bbdd20d7d7dcc1aec5c68b33a3d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:26:35 +0930 Subject: [PATCH 16/23] chore(deps): update dependency esbuild to ~0.19.0 (#7458) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/website-eslint/package.json | 2 +- yarn.lock | 228 +++++++++++++-------------- 2 files changed, 115 insertions(+), 115 deletions(-) diff --git a/packages/website-eslint/package.json b/packages/website-eslint/package.json index daaa3684abf5..384a0b0f81f1 100644 --- a/packages/website-eslint/package.json +++ b/packages/website-eslint/package.json @@ -35,7 +35,7 @@ "@typescript-eslint/typescript-estree": "6.3.0", "@typescript-eslint/utils": "6.0.0", "@typescript-eslint/visitor-keys": "6.3.0", - "esbuild": "~0.18.0", + "esbuild": "~0.19.0", "eslint": "*", "esquery": "*", "semver": "^7.5.4" diff --git a/yarn.lock b/yarn.lock index 2a67fd0e851f..fa287e49de92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2126,220 +2126,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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz#984b4f9c8d0377443cc2dfcef266d02244593622" - integrity sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ== +"@esbuild/android-arm64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.1.tgz#3803e259bb50a82a820a5e339832d42ffba02ffa" + integrity sha512-CqhrKvDSt76I0so/5afqgKrMv41FjbfUKFrcZddMnrZKqJU70I1MWLVJrImJuYMaY4Yb9rn4UKfF7oZ0BOleVw== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz#fedb265bc3a589c84cc11f810804f234947c3682" - integrity sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw== +"@esbuild/android-arm@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.1.tgz#131a3bf5681fb50e1e873b79fce8eae98043606b" + integrity sha512-yjTucwcOua52z14RL30JMwmCdylsQ5WrErGkAb6VL0MWPbnwJyLejydaRcUqkPO6g0MowlzavdxrR7AcfCW+yA== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.18.20.tgz#35cf419c4cfc8babe8893d296cd990e9e9f756f2" - integrity sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg== +"@esbuild/android-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.1.tgz#d8b5aa54142c04d2fa8dfdd7781929cf50f0246a" + integrity sha512-VA29h01MrPkymIL1bFtvL2L4WPogiMGW2N/M+vXZHHOv6LgA9vjzVskTt0v5LjeCjx1PFDcR0ASKy8Y7Gm+iIA== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz#08172cbeccf95fbc383399a7f39cfbddaeb0d7c1" - integrity sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA== +"@esbuild/darwin-arm64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.1.tgz#ce472269315da5342811b7bad901f6be0d456642" + integrity sha512-Be4Cf6WDH7QkLHEpfzQOlBOFdqmqYTSqw2yG3SVmzB3++wy3K7wiNGedezL+q6Jb4weqT9tchO5kkLDC08Jnzg== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz#d70d5790d8bf475556b67d0f8b7c5bdff053d85d" - integrity sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ== +"@esbuild/darwin-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.1.tgz#445017aec28152dd340464565a6796276adbd234" + integrity sha512-SewtenJi6zCEfZRSUchb+LgJ/IQw8QvnKECPu/qHII1fLQKnVPUVR+VH2IuS03DD9WWnAi3yfOvBNwtrp3WXtg== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz#98755cd12707f93f210e2494d6a4b51b96977f54" - integrity sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw== +"@esbuild/freebsd-arm64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.1.tgz#61f70529c0aa2432e0a652b63f99ef1e1f83f7d6" + integrity sha512-TadKO0AaTDAPV2RyGZQ0AaiDTVYg7RsgNaA6OJjXXmoLbTs++NwHtzAmVFBq8Q/P9A11wgkv36HeyAYhWHbW1w== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz#c1eb2bff03915f87c29cece4c1a7fa1f423b066e" - integrity sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ== +"@esbuild/freebsd-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.1.tgz#f7658f988c88d6b63777678b89fb8137a07a9df6" + integrity sha512-DrFMGLF0/aAcZgwhtZr1cby7aHlalpFjLCe5CiI8mm0Kqhhc8gyNZKreaZzvir8CQe0H17p9xx6M9ben5R3r0g== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz#bad4238bd8f4fc25b5a021280c770ab5fc3a02a0" - integrity sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA== +"@esbuild/linux-arm64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.1.tgz#4245701cda66bfaeaf886d3c065729c98499d7de" + integrity sha512-6ku/R2EzsdjyBaqQn+xGOPbv+BBYBXQYzlA04/46YQLmXkdApi0GYyUwiCXYBxm578iyywzGmM0rep1/q8tuFQ== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz#3e617c61f33508a27150ee417543c8ab5acc73b0" - integrity sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg== +"@esbuild/linux-arm@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.1.tgz#16ab51f1928c5631cbd40b86997198691201fe4c" + integrity sha512-lCWDVPpQO/Dt5MEqctKujgtUVmwQx7J2Q83EqX/9BejN7BIX4fGJ0QKMiIyy21PFh+/64ArN+Ovh1tzYkTt2wg== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz#699391cccba9aee6019b7f9892eb99219f1570a7" - integrity sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA== +"@esbuild/linux-ia32@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.1.tgz#860b8c9e15259117c2adc3c510eac1fcf4b96e9a" + integrity sha512-8AKFBk9v/zBDsADvK/0BWZUxkjEc0QDwO8rvbHJKqAZx6DF/VSeBxTRmqWeecrJmx+n3kemEwML9z0eD9IHweQ== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz#e6fccb7aac178dd2ffb9860465ac89d7f23b977d" - integrity sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg== +"@esbuild/linux-loong64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.1.tgz#09b4dc90479af7aa62babbdf451cbd1bdc0c76ad" + integrity sha512-6mOS5CxTGD8qOymp2y4KoM4ir+/REgjdJQFYpwP+WqjrWBo+PUevDGeHHjzCdw/R19PkFqS1bRzv8cTCmB/5kA== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz#eeff3a937de9c2310de30622a957ad1bd9183231" - integrity sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ== +"@esbuild/linux-mips64el@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.1.tgz#92b242fde2d7d9875d3aa249d57f3508f9058934" + integrity sha512-Bzmv6rRMzR4ErG2k/jwfj5jKNzVMVEI1tThuirFdAoE+duUv+jlDnlwxsN3s1eqMzADTOV2sSIcUUOfgv++Dgg== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz#2f7156bde20b01527993e6881435ad79ba9599fb" - integrity sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA== +"@esbuild/linux-ppc64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.1.tgz#43d07d27dde2819ab6e0dd200174b9a7dd25cb1f" + integrity sha512-mPOxA7bd3nmx8TkuO/9M/tE0fnvmuX0wlpwnTL6DPLgkb/Z/KkupexSIw4cLfznn/fPzD89y17VWBjlVNyrpCQ== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz#6628389f210123d8b4743045af8caa7d4ddfc7a6" - integrity sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A== +"@esbuild/linux-riscv64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.1.tgz#293e3027e996446d9d303d61605b5b0c14c238f9" + integrity sha512-znYb2Mhe9xKIDeIYuTD6vCcUltvYzRT5Yq6sVcdhPrGu8DRdsNZS04B2tSeM+j7T03jL4yY+7/G/jxSJJ9LX2A== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz#255e81fb289b101026131858ab99fba63dcf0071" - integrity sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ== +"@esbuild/linux-s390x@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.1.tgz#ac6876f7b0221237792001fd644ca6523a82d5a7" + integrity sha512-BBIE32cyqAYhMOQ42/jnecoF5P/S5lMob2vXSUiFpD3xCFbXOFkjP1OjfFKnalSO9+B5emvPTQFfNQXuLeVGEw== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz#c7690b3417af318a9b6f96df3031a8865176d338" - integrity sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w== +"@esbuild/linux-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.1.tgz#f2761e507bfb5a975ae89cb0b95b7c10fa283d8b" + integrity sha512-PoCvKdHTIbnHmVJ5OEdewGMSw40HDFRTrC/imwh8vrp695RbSUpOqBqNBT45neK0FQleGFbSE/A9X6HlXPDhqA== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz#30e8cd8a3dded63975e2df2438ca109601ebe0d1" - integrity sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A== +"@esbuild/netbsd-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.1.tgz#c1f948931b14b96cf958c783c7dbec0409782a0c" + integrity sha512-4OrGMPorHCq9h52VLtyyyAmPjC2ZlANx54VDYyCrqXUOi+k0qxnPKXKKprVES67w2mE7TZJx9qZmT+jHeiZbHQ== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz#7812af31b205055874c8082ea9cf9ab0da6217ae" - integrity sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg== +"@esbuild/openbsd-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.1.tgz#1d863e5c54a6a8a03e585ab3e3240863fc3a5e58" + integrity sha512-3a7ZYMjBC4P3FKdTmUZHJw7Mhzp71m+iSFFhX1PnLZ03qmyaB2K+vJZCk4PjRjAvm5lSupJQQtM/AFMyLgKlxQ== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz#d5c275c3b4e73c9b0ecd38d1ca62c020f887ab9d" - integrity sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ== +"@esbuild/sunos-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.1.tgz#ee66c195f07527eb098d72e3a298398513128f67" + integrity sha512-29yWBN5XfEjXT8yoeVb8cXfN1jAQLB+uskog1vBMhFR+YWOYvsrwPnh4hspETC/JnF95J+iETrvxgOUlICTWIw== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz#73bc7f5a9f8a77805f357fab97f290d0e4820ac9" - integrity sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg== +"@esbuild/win32-arm64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.1.tgz#810ac7fcc15e4c0b606acdb39cd5cf342ba16dd7" + integrity sha512-9Hb/WUXgyXlL55w3iNVyLkN9gq9x+agv3kk80foWbfpOwe7Qw4Vx6JGB+XQdsIfvvP1kShVQPIvBgVj0TxLlVw== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz#ec93cbf0ef1085cc12e71e0d661d20569ff42102" - integrity sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g== +"@esbuild/win32-ia32@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.1.tgz#c8ae19f2f87d9a6dd4b6c1a490d2c2c010ed315b" + integrity sha512-VGdtEcXX/f01NgoM8emDnpdOyrZCQ7VTwLv89MOl3mvJ5fbCOBMNCa8t7RZS4lf12RS87qOuJFX7Bh9aLTbSxg== "@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.20": - version "0.18.20" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz#786c5f41f043b07afb1af37683d7c33668858f6d" - integrity sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ== +"@esbuild/win32-x64@0.19.1": + version "0.19.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.1.tgz#8689ddff5792349df358d38d239a73ce58f274ab" + integrity sha512-H6u8OHmJkKJubLbukVOyi9yA5lzK8VE4TFEkZj2vgusTUPvFeMQ8YnWviVc9F6PuKS6ZIpOvi2/sfiW8tQZQ2g== "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" @@ -6974,33 +6974,33 @@ esbuild@~0.17.6: "@esbuild/win32-ia32" "0.17.19" "@esbuild/win32-x64" "0.17.19" -esbuild@~0.18.0: - version "0.18.20" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.18.20.tgz#4709f5a34801b43b799ab7d6d82f7284a9b7a7a6" - integrity sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA== +esbuild@~0.19.0: + version "0.19.1" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.1.tgz#eda3e5d2d0c2e89059464ac895bdf20bea2c26b4" + integrity sha512-IknHHwV4B/H4imOAu+416fuCvPfRjdncoyGi7eunhSvHuHkdNs50sLWan2LEG2Mym07TuW6gJUIyRS9G1miHEg== optionalDependencies: - "@esbuild/android-arm" "0.18.20" - "@esbuild/android-arm64" "0.18.20" - "@esbuild/android-x64" "0.18.20" - "@esbuild/darwin-arm64" "0.18.20" - "@esbuild/darwin-x64" "0.18.20" - "@esbuild/freebsd-arm64" "0.18.20" - "@esbuild/freebsd-x64" "0.18.20" - "@esbuild/linux-arm" "0.18.20" - "@esbuild/linux-arm64" "0.18.20" - "@esbuild/linux-ia32" "0.18.20" - "@esbuild/linux-loong64" "0.18.20" - "@esbuild/linux-mips64el" "0.18.20" - "@esbuild/linux-ppc64" "0.18.20" - "@esbuild/linux-riscv64" "0.18.20" - "@esbuild/linux-s390x" "0.18.20" - "@esbuild/linux-x64" "0.18.20" - "@esbuild/netbsd-x64" "0.18.20" - "@esbuild/openbsd-x64" "0.18.20" - "@esbuild/sunos-x64" "0.18.20" - "@esbuild/win32-arm64" "0.18.20" - "@esbuild/win32-ia32" "0.18.20" - "@esbuild/win32-x64" "0.18.20" + "@esbuild/android-arm" "0.19.1" + "@esbuild/android-arm64" "0.19.1" + "@esbuild/android-x64" "0.19.1" + "@esbuild/darwin-arm64" "0.19.1" + "@esbuild/darwin-x64" "0.19.1" + "@esbuild/freebsd-arm64" "0.19.1" + "@esbuild/freebsd-x64" "0.19.1" + "@esbuild/linux-arm" "0.19.1" + "@esbuild/linux-arm64" "0.19.1" + "@esbuild/linux-ia32" "0.19.1" + "@esbuild/linux-loong64" "0.19.1" + "@esbuild/linux-mips64el" "0.19.1" + "@esbuild/linux-ppc64" "0.19.1" + "@esbuild/linux-riscv64" "0.19.1" + "@esbuild/linux-s390x" "0.19.1" + "@esbuild/linux-x64" "0.19.1" + "@esbuild/netbsd-x64" "0.19.1" + "@esbuild/openbsd-x64" "0.19.1" + "@esbuild/sunos-x64" "0.19.1" + "@esbuild/win32-arm64" "0.19.1" + "@esbuild/win32-ia32" "0.19.1" + "@esbuild/win32-x64" "0.19.1" escalade@^3.1.1: version "3.1.1" From f5eb28bd09353439672dc10edc758ba31ba8e790 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:26:47 +0930 Subject: [PATCH 17/23] chore(deps): update dependency cspell to v6.31.3 (#7457) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 242 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 125 insertions(+), 117 deletions(-) diff --git a/yarn.lock b/yarn.lock index fa287e49de92..639ff71dce3b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1283,10 +1283,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.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== +"@cspell/cspell-bundled-dicts@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-6.31.3.tgz#b9d7fc363b6ce3e0e49e945a563d9d012346ceb6" + integrity sha512-KXy3qKWYzXOGYwqOGMCXHem3fV39iEmoKLiNhoWWry/SFdvAafmeY+LIDcQTXAcOQLkMDCwP2/rY/NadcWnrjg== dependencies: "@cspell/dict-ada" "^4.0.1" "@cspell/dict-aws" "^3.0.0" @@ -1335,25 +1335,32 @@ "@cspell/dict-typescript" "^3.1.1" "@cspell/dict-vue" "^3.0.0" -"@cspell/cspell-pipe@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/cspell-pipe/-/cspell-pipe-6.31.1.tgz#6c8edc92039125695a894186a899290d56d0f2c7" - integrity sha512-zk1olZi4dr6GLm5PAjvsiZ01HURNSruUYFl1qSicGnTwYN8GaN4RhAwannAytcJ7zJPIcyXlid0YsB58nJf3wQ== +"@cspell/cspell-json-reporter@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/cspell-json-reporter/-/cspell-json-reporter-6.31.3.tgz#1911b6ef70d97821fa9d71ee9540efd67fc4a679" + integrity sha512-ZJwj2vT4lxncYxduXcxy0dCvjjMvXIfphbLSCN5CXvufrtupB4KlcjZUnOofCi4pfpp8qocCSn1lf2DU9xgUXA== + dependencies: + "@cspell/cspell-types" "6.31.3" + +"@cspell/cspell-pipe@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/cspell-pipe/-/cspell-pipe-6.31.3.tgz#76e852728fb1b939c8fac045067b8259baa7d46e" + integrity sha512-Lv/y4Ya/TJyU1pf66yl1te7LneFZd3lZg1bN5oe1cPrKSmfWdiX48v7plTRecWd/OWyLGd0yN807v79A+/0W7A== -"@cspell/cspell-service-bus@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/cspell-service-bus/-/cspell-service-bus-6.31.1.tgz#ede5859e180f8d9be760df500e02164dae0084fe" - integrity sha512-YyBicmJyZ1uwKVxujXw7sgs9x+Eps43OkWmCtDZmZlnq489HdTSuhF1kTbVi2yeFSeaXIS87+uHo12z97KkQpg== +"@cspell/cspell-service-bus@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/cspell-service-bus/-/cspell-service-bus-6.31.3.tgz#2bf2465a60bb6df8f9d301b33f45d37322f9dcab" + integrity sha512-x5j8j3n39KN8EXOAlv75CpircdpF5WEMCC5pcO916o6GBmJBy8SrdzdsBGJhVcYGGilqy6pf8R9RCZ3yAmG8gQ== -"@cspell/cspell-types@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/cspell-types/-/cspell-types-6.31.1.tgz#b3737ef7743c0e5803d57e667f816418ac8da1cf" - integrity sha512-1KeTQFiHMssW1eRoF2NZIEg4gPVIfXLsL2+VSD/AV6YN7lBcuf6gRRgV5KWYarhxtEfjxhDdDTmu26l/iJEUtw== +"@cspell/cspell-types@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/cspell-types/-/cspell-types-6.31.3.tgz#ff7493c435778fc76f5f6c6d786c86d12dc76790" + integrity sha512-wZ+t+lUsQJB65M31btZM4fH3K1CkRgE8pSeTiCwxYcnCL19pi4TMcEEMKdO8yFZMdocW4B7VRwzxNoQMw2ewBg== "@cspell/dict-ada@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@cspell/dict-ada/-/dict-ada-4.0.1.tgz#214c91445eab16bd3fe10da5517f95bf2c90fe5f" - integrity sha512-/E9o3nHrXOhYmQE43deKbxZcR3MIJAsa+66IzP9TXGHheKEx8b9dVMVVqydDDH8oom1H0U20NRPtu6KRVbT9xw== + version "4.0.2" + resolved "https://registry.yarnpkg.com/@cspell/dict-ada/-/dict-ada-4.0.2.tgz#8da2216660aeb831a0d9055399a364a01db5805a" + integrity sha512-0kENOWQeHjUlfyId/aCM/mKXtkEgV0Zu2RhUXCBr4hHo9F9vph+Uu8Ww2b0i5a4ZixoIkudGA+eJvyxrG1jUpA== "@cspell/dict-aws@^3.0.0": version "3.0.0" @@ -1366,14 +1373,14 @@ integrity sha512-8czAa/Mh96wu2xr0RXQEGMTBUGkTvYn/Pb0o+gqOO1YW+poXGQc3gx0YPqILDryP/KCERrNvkWUJz3iGbvwC2A== "@cspell/dict-companies@^3.0.9": - version "3.0.17" - resolved "https://registry.yarnpkg.com/@cspell/dict-companies/-/dict-companies-3.0.17.tgz#98c8bed74892a415f9471f77d11d2aa8f727b103" - integrity sha512-vo1jbozgZWSzz2evIL26kLd35tVb+5kW/UTvTzAwaWutSWRloRyKx38nj2CaLJ2IFxBdiATteCFGTzKCvJJl6A== + version "3.0.19" + resolved "https://registry.yarnpkg.com/@cspell/dict-companies/-/dict-companies-3.0.19.tgz#ac7ecaf7fe6568a93ca983a4f72bb64328864b2e" + integrity sha512-hO7rS4DhFA333qyvf89wIVoclCtXe/2sftY6aS0oMIH1bMZLjLx2B2sQJj6dCiu6gG/By1S9YZ0fXabiPk2Tkg== "@cspell/dict-cpp@^5.0.2": - 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== + version "5.0.4" + resolved "https://registry.yarnpkg.com/@cspell/dict-cpp/-/dict-cpp-5.0.4.tgz#2c237dd5d690ee7464c612fd0ef8f2244359d97f" + integrity sha512-Vmz/CCb2d91ES5juaO8+CFWeTa2AFsbpR8bkCPJq+P8cRP16+37tY0zNXEBSK/1ur4MakaRf76jeQBijpZxw0Q== "@cspell/dict-cryptocurrencies@^3.0.1": version "3.0.1" @@ -1391,14 +1398,14 @@ 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== + version "2.0.3" + resolved "https://registry.yarnpkg.com/@cspell/dict-dart/-/dict-dart-2.0.3.tgz#75e7ffe47d5889c2c831af35acdd92ebdbd4cf12" + integrity sha512-cLkwo1KT5CJY5N5RJVHks2genFkNCl/WLfj+0fFjqNR+tk3tBI1LY7ldr9piCtSFSm4x9pO1x6IV3kRUY1lLiw== "@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== + version "1.0.10" + resolved "https://registry.yarnpkg.com/@cspell/dict-data-science/-/dict-data-science-1.0.10.tgz#88beefd1937fd8c7d94bb3d60f0e9c1b3c428ad8" + integrity sha512-7ZsRCnW0f4Bdo6Cqq8V4gHr8K58h+MP8majcDeMNhpMFUPiiSnvKsDuG9V5jciI/0t+lptPrZwGGIVEDF4Kqtg== "@cspell/dict-django@^4.0.2": version "4.1.0" @@ -1406,9 +1413,9 @@ integrity sha512-bKJ4gPyrf+1c78Z0Oc4trEB9MuhcB+Yg+uTTWsvhY6O2ncFYbB/LbEZfqhfmmuK/XJJixXfI1laF2zicyf+l0w== "@cspell/dict-docker@^1.1.6": - version "1.1.6" - resolved "https://registry.yarnpkg.com/@cspell/dict-docker/-/dict-docker-1.1.6.tgz#f84faed121e2093e3b212d19542fd27eda751c80" - integrity sha512-zCCiRTZ6EOQpBnSOm0/3rnKW1kCcAUDUA7SxJG3SuH6iZvKi3I8FEg8+O83WQUeXg0SyPNerD9F40JLnnJjJig== + version "1.1.7" + resolved "https://registry.yarnpkg.com/@cspell/dict-docker/-/dict-docker-1.1.7.tgz#bcf933283fbdfef19c71a642e7e8c38baf9014f2" + integrity sha512-XlXHAr822euV36GGsl2J1CkBIVg3fZ6879ZOg5dxTIssuhUOCiV2BuzKZmt6aIFmcdPmR14+9i9Xq+3zuxeX0A== "@cspell/dict-dotnet@^5.0.0": version "5.0.0" @@ -1431,9 +1438,9 @@ integrity sha512-tKSSUf9BJEV+GJQAYGw5e+ouhEe2ZXE620S7BLKe3ZmpnjlNG9JqlnaBhkIMxKnNFkLY2BP/EARzw31AZnOv4g== "@cspell/dict-en_us@^4.3.2": - 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== + version "4.3.6" + resolved "https://registry.yarnpkg.com/@cspell/dict-en_us/-/dict-en_us-4.3.6.tgz#1f554cf4e235af4e8d115c5924c87537b16a08d0" + integrity sha512-odhgsjNZI9BtEOJdvqfAuv/3yz5aB1ngfBNaph7WSnYVt//9e3fhrElZ6/pIIkoyuGgeQPwz1fXt+tMgcnLSEQ== "@cspell/dict-filetypes@^3.0.0": version "3.0.1" @@ -1511,9 +1518,9 @@ integrity sha512-FEQJ4TnMcXEFslqBQkXa5HposMoCGsiBv2ux4IZuIXgadXeHKHUHk60iarWpjhzNzQLyN2GD7NoRMd12bK3Llw== "@cspell/dict-npm@^5.0.5": - version "5.0.7" - resolved "https://registry.yarnpkg.com/@cspell/dict-npm/-/dict-npm-5.0.7.tgz#f2977579413a09d53fb385ed48f93184aad55aea" - integrity sha512-6SegF0HsVaBTl6PlHjeErG8Av+tRYkUG1yaXUQIGWXU0A8oxhI0o4PuL65UWH5lkCKhJyGai69Cd0iytL0oVFg== + version "5.0.8" + resolved "https://registry.yarnpkg.com/@cspell/dict-npm/-/dict-npm-5.0.8.tgz#51b2e6dd54f915a2e8725ff7fd75769cb645ff6e" + integrity sha512-KuqH8tEsFD6DPKqKwIfWr9E+admE3yghaC0AKXG8jPaf77N0lkctKaS3dm0oxWUXkYKA/eXj6LCtz3VcTyxFPg== "@cspell/dict-php@^4.0.1": version "4.0.1" @@ -1526,14 +1533,14 @@ integrity sha512-IHfWLme3FXE7vnOmMncSBxOsMTdNWd1Vcyhag03WS8oANSgX8IZ+4lMI00mF0ptlgchf16/OU8WsV4pZfikEFw== "@cspell/dict-public-licenses@^2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@cspell/dict-public-licenses/-/dict-public-licenses-2.0.2.tgz#81f0fde2e78bf8160ce988ae6961003a3cde3d56" - integrity sha512-baKkbs/WGEV2lCWZoL0KBPh3uiPcul5GSDwmXEBAsR5McEW52LF94/b7xWM0EmSAc/y8ODc5LnPYC7RDRLi6LQ== + version "2.0.3" + resolved "https://registry.yarnpkg.com/@cspell/dict-public-licenses/-/dict-public-licenses-2.0.3.tgz#fa03649a5d6b8284e0c1da17eb449707df1a2a1c" + integrity sha512-JSLEdpEYufQ1H+93UHi+axlqQm1fhgK6kpdLHp6uPHu//CsvETcqNVawjB+qOdI/g38JTMw5fBqSd0aGNxa6Dw== "@cspell/dict-python@^4.0.2": - 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== + version "4.1.5" + resolved "https://registry.yarnpkg.com/@cspell/dict-python/-/dict-python-4.1.5.tgz#0c5eab3f12a166c9339dec508d8b07b4dddab1d4" + integrity sha512-wWUWyHdyJtx5iG6Fz9rBQ17BtdpEsB17vmutao+gixQD28Jzb6XoLgDQ6606M0RnFjBSFhs5iT4CJBzlD2Kq6g== dependencies: "@cspell/dict-data-science" "^1.0.0" @@ -1558,14 +1565,14 @@ integrity sha512-ph0twaRoV+ylui022clEO1dZ35QbeEQaKTaV2sPOsdwIokABPIiK09oWwGK9qg7jRGQwVaRPEq0Vp+IG1GpqSQ== "@cspell/dict-software-terms@^3.1.6": - 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== + version "3.2.1" + resolved "https://registry.yarnpkg.com/@cspell/dict-software-terms/-/dict-software-terms-3.2.1.tgz#655b52768d05d002d9fc18a0efa63eee66766b8b" + integrity sha512-+QXmyoONVc/3aNgKW+0F0u3XUCRTfNRkWKLZQA78i+9fOfde8ZT4JmROmZgRveH/MxD4n6pNFceIRcYI6C8WuQ== "@cspell/dict-sql@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@cspell/dict-sql/-/dict-sql-2.1.0.tgz#4210e83b9fc05ef91f577ae44fd264825ccfbf71" - integrity sha512-Bb+TNWUrTNNABO0bmfcYXiTlSt0RD6sB2MIY+rNlaMyIwug43jUjeYmkLz2tPkn3+2uvySeFEOMVYhMVfcuDKg== + version "2.1.1" + resolved "https://registry.yarnpkg.com/@cspell/dict-sql/-/dict-sql-2.1.1.tgz#eb16c8bece4ff3154a193fe854a600ed0f75c64c" + integrity sha512-v1mswi9NF40+UDUMuI148YQPEQvWjac72P6ZsjlRdLjEiQEEMEsTQ+zlkIdnzC9QCNyJaqD5Liq9Mn78/8Zxtw== "@cspell/dict-svelte@^1.0.2": version "1.0.2" @@ -1587,17 +1594,17 @@ resolved "https://registry.yarnpkg.com/@cspell/dict-vue/-/dict-vue-3.0.0.tgz#68ccb432ad93fcb0fd665352d075ae9a64ea9250" integrity sha512-niiEMPWPV9IeRBRzZ0TBZmNnkK3olkOPYxC1Ny2AX4TGlYRajcW0WUtoSHmvvjZNfWLSg2L6ruiBeuPSbjnG6A== -"@cspell/dynamic-import@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/dynamic-import/-/dynamic-import-6.31.1.tgz#26e218362e98158be5c88f970ce774458e53dd60" - integrity sha512-uliIUv9uZlnyYmjUlcw/Dm3p0xJOEnWJNczHAfqAl4Ytg6QZktw0GtUA9b1umbRXLv0KRTPtSC6nMq3cR7rRmQ== +"@cspell/dynamic-import@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/dynamic-import/-/dynamic-import-6.31.3.tgz#f98ee7a8210e457b6f885be9a918b9608571b677" + integrity sha512-A6sT00+6UNGFksQ5SxW2ohNl6vUutai8F4jwJMHTjZL/9vivQpU7y5V4PpsfoPZtx3WZcbrzuTvJ+tLfdbWc4A== dependencies: import-meta-resolve "^2.2.2" -"@cspell/strong-weak-map@6.31.1": - version "6.31.1" - resolved "https://registry.yarnpkg.com/@cspell/strong-weak-map/-/strong-weak-map-6.31.1.tgz#370faeae5ecb0c9a55344a34cd70f1690c62de01" - integrity sha512-z8AuWvUuSnugFKJOA9Ke0aiFuehcqLFqia9bk8XaQNEWr44ahPVn3sEWnAncTxPbpWuUw5UajoJa0egRAE1CCg== +"@cspell/strong-weak-map@6.31.3": + version "6.31.3" + resolved "https://registry.yarnpkg.com/@cspell/strong-weak-map/-/strong-weak-map-6.31.3.tgz#dd7470ce86c2372ec2cd889439c0f9808122b9c7" + integrity sha512-znwc9IlgGUPioHGshP/zyM8HsuYg1OY5S7HSiVXARh5H8RqcyBsnyn8abc0PPhqPrfDy9Fh5xHsAEPZ55dl1vQ== "@cspotcode/source-map-consumer@0.8.0": version "0.8.0" @@ -6069,66 +6076,66 @@ crypto-random-string@^2.0.0: resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== -cspell-dictionary@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-dictionary/-/cspell-dictionary-6.31.1.tgz#a5c52da365aa03d7b6454f017d97b0d4b3da8859" - integrity sha512-7+K7aQGarqbpucky26wled7QSCJeg6VkLUWS+hLjyf0Cqc9Zew5xsLa4QjReExWUJx+a97jbiflITZNuWxgMrg== +cspell-dictionary@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-dictionary/-/cspell-dictionary-6.31.3.tgz#5ab069e11e9c2231b01f66ecf250fff23215648c" + integrity sha512-3w5P3Md/tbHLVGPKVL0ePl1ObmNwhdDiEuZ2TXfm2oAIwg4aqeIrw42A2qmhaKLcuAIywpqGZsrGg8TviNNhig== dependencies: - "@cspell/cspell-pipe" "6.31.1" - "@cspell/cspell-types" "6.31.1" - cspell-trie-lib "6.31.1" + "@cspell/cspell-pipe" "6.31.3" + "@cspell/cspell-types" "6.31.3" + cspell-trie-lib "6.31.3" fast-equals "^4.0.3" gensequence "^5.0.2" -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== +cspell-gitignore@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-gitignore/-/cspell-gitignore-6.31.3.tgz#324ff7c8f2e35b103eeec81a185d578bf37c42f0" + integrity sha512-vCfVG4ZrdwJnsZHl/cdp8AY+YNPL3Ga+0KR9XJsaz69EkQpgI6porEqehuwle7hiXw5e3L7xFwNEbpCBlxgLRA== dependencies: - cspell-glob "6.31.2" + cspell-glob "6.31.3" find-up "^5.0.0" -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== +cspell-glob@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-glob/-/cspell-glob-6.31.3.tgz#99ed7e39f83735fbda9a77f13636a18fd54bef39" + integrity sha512-+koUJPSCOittQwhR0T1mj4xXT3N+ZnY2qQ53W6Gz9HY3hVfEEy0NpbwE/Uy7sIvFMbc426fK0tGXjXyIj72uhQ== dependencies: micromatch "^4.0.5" -cspell-grammar@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-grammar/-/cspell-grammar-6.31.1.tgz#f766df3d5f1ec95a1e472fc339716757d2acfa56" - integrity sha512-AsRVP0idcNFVSb9+p9XjMumFj3BUV67WIPWApaAzJl/dYyiIygQObRE+si0/QtFWGNw873b7hNhWZiKjqIdoaQ== +cspell-grammar@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-grammar/-/cspell-grammar-6.31.3.tgz#1c8ebb9f623ec866d307c78ace9fa4ba73c94822" + integrity sha512-TZYaOLIGAumyHlm4w7HYKKKcR1ZgEMKt7WNjCFqq7yGVW7U+qyjQqR8jqnLiUTZl7c2Tque4mca7n0CFsjVv5A== dependencies: - "@cspell/cspell-pipe" "6.31.1" - "@cspell/cspell-types" "6.31.1" + "@cspell/cspell-pipe" "6.31.3" + "@cspell/cspell-types" "6.31.3" -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== +cspell-io@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-io/-/cspell-io-6.31.3.tgz#a62e95196027ab9c7c8a35d9ec347ded8d054658" + integrity sha512-yCnnQ5bTbngUuIAaT5yNSdI1P0Kc38uvC8aynNi7tfrCYOQbDu1F9/DcTpbdhrsCv+xUn2TB1YjuCmm0STfJlA== dependencies: - "@cspell/cspell-service-bus" "6.31.1" + "@cspell/cspell-service-bus" "6.31.3" node-fetch "^2.6.9" -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== +cspell-lib@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-lib/-/cspell-lib-6.31.3.tgz#4b5034adb3af3e3d6acb49bbf251b9c18b280f50" + integrity sha512-Dv55aecaMvT/5VbNryKo0Zos8dtHon7e1K0z8DR4/kGZdQVT0bOFWeotSLhuaIqoNFdEt8ypfKbrIHIdbgt1Hg== dependencies: - "@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" + "@cspell/cspell-bundled-dicts" "6.31.3" + "@cspell/cspell-pipe" "6.31.3" + "@cspell/cspell-types" "6.31.3" + "@cspell/strong-weak-map" "6.31.3" clear-module "^4.1.2" comment-json "^4.2.3" configstore "^5.0.1" cosmiconfig "8.0.0" - cspell-dictionary "6.31.1" - cspell-glob "6.31.2" - cspell-grammar "6.31.1" - cspell-io "6.31.2" - cspell-trie-lib "6.31.1" + cspell-dictionary "6.31.3" + cspell-glob "6.31.3" + cspell-grammar "6.31.3" + cspell-io "6.31.3" + cspell-trie-lib "6.31.3" fast-equals "^4.0.3" find-up "^5.0.0" gensequence "^5.0.2" @@ -6138,29 +6145,30 @@ cspell-lib@6.31.2: vscode-languageserver-textdocument "^1.0.8" vscode-uri "^3.0.7" -cspell-trie-lib@6.31.1: - version "6.31.1" - resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-6.31.1.tgz#72b272e16d53c15de5a1ef3178dd2519670daca7" - integrity sha512-MtYh7s4Sbr1rKT31P2BK6KY+YfOy3dWsuusq9HnqCXmq6aZ1HyFgjH/9p9uvqGi/TboMqn1KOV8nifhXK3l3jg== +cspell-trie-lib@6.31.3: + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell-trie-lib/-/cspell-trie-lib-6.31.3.tgz#73060aa1e9926faeffe509f9f8b8fd74aa55d1a4" + integrity sha512-HNUcLWOZAvtM3E34U+7/mSSpO0F6nLd/kFlRIcvSvPb9taqKe8bnSa0Yyb3dsdMq9rMxUmuDQtF+J6arZK343g== dependencies: - "@cspell/cspell-pipe" "6.31.1" - "@cspell/cspell-types" "6.31.1" + "@cspell/cspell-pipe" "6.31.3" + "@cspell/cspell-types" "6.31.3" gensequence "^5.0.2" cspell@^6.31.1: - 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" + version "6.31.3" + resolved "https://registry.yarnpkg.com/cspell/-/cspell-6.31.3.tgz#d06176e7fe7ac80c4dd5c4a927139446e433385a" + integrity sha512-VeeShDLWVM6YPiU/imeGy0lmg6ki63tbLEa6hz20BExhzzpmINOP5nSTYtpY0H9zX9TrF/dLbI38TuuYnyG3Uw== + dependencies: + "@cspell/cspell-json-reporter" "6.31.3" + "@cspell/cspell-pipe" "6.31.3" + "@cspell/cspell-types" "6.31.3" + "@cspell/dynamic-import" "6.31.3" chalk "^4.1.2" commander "^10.0.0" - cspell-gitignore "6.31.2" - cspell-glob "6.31.2" - cspell-io "6.31.2" - cspell-lib "6.31.2" + cspell-gitignore "6.31.3" + cspell-glob "6.31.3" + cspell-io "6.31.3" + cspell-lib "6.31.3" fast-glob "^3.2.12" fast-json-stable-stringify "^2.1.0" file-entry-cache "^6.0.1" From 8ca2084278d6b279f3316ea05a100d306974f542 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:26:58 +0930 Subject: [PATCH 18/23] chore(deps): update dependency @types/react to v18.2.19 (#7456) 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 639ff71dce3b..5a860b9a2cbb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4116,9 +4116,9 @@ "@types/react" "*" "@types/react@*", "@types/react@^18.2.14": - version "18.2.18" - resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.18.tgz#c8b233919eef1bdc294f6f34b37f9727ad677516" - integrity sha512-da4NTSeBv/P34xoZPhtcLkmZuJ+oYaCxHmyHzwaDQo9RQPBeXV+06gEk2FpqEcsX9XrnNLvRpVh6bdavDSjtiQ== + version "18.2.20" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.20.tgz#1605557a83df5c8a2cc4eeb743b3dfc0eb6aaeb2" + integrity sha512-WKNtmsLWJM/3D5mG4U84cysVY31ivmyw85dE84fOCk5Hx78wezB/XEjVPWl2JTZ5FkEeaTJf+VgUAUn3PE7Isw== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" From 5d75fadf861f3291ee26fc9a6f9d52d3123144ac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 09:39:05 +0930 Subject: [PATCH 19/23] chore(deps): update dependency lerna to v7.1.5 (#7462) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 81 ++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 67 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index fac4d9ad4c9d..8a9392900268 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.2", - "lerna": "7.1.4", + "lerna": "7.1.5", "lint-staged": "^13.2.3", "make-dir": "^4.0.0", "markdownlint-cli": "^0.35.0", diff --git a/yarn.lock b/yarn.lock index 5a860b9a2cbb..06401f92c8ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2701,32 +2701,83 @@ 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.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== +"@lerna/child-process@7.1.5": + version "7.1.5" + resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-7.1.5.tgz#a01e8821fb7b17a68d1c1527127543af6cf27f1b" + integrity sha512-YXmxzxXTP3u9HQpSXvK8qqoAm7VWQIFria3FVMQKkOSkWkph1TNnvt3Q1JvKT7/Jgd1HfTc3QrK09a2FND9+8A== dependencies: chalk "^4.1.0" execa "^5.0.0" strong-log-transformer "^2.1.0" -"@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== +"@lerna/create@7.1.5": + version "7.1.5" + resolved "https://registry.yarnpkg.com/@lerna/create/-/create-7.1.5.tgz#180b26f028be25b541a327429168da6c10bdb265" + integrity sha512-/CDI/cvXJbycgSDzWXzP7DBuJ10qL/uYEouFt3/mxi9+hSfM885fu6lbVPV7QOf8A0otXcTs7PN2dVyMrnWQeg== dependencies: - "@lerna/child-process" "7.1.4" + "@lerna/child-process" "7.1.5" + "@npmcli/run-script" "6.0.2" + "@nx/devkit" ">=16.5.1 < 17" + "@octokit/plugin-enterprise-rest" "6.0.1" + "@octokit/rest" "19.0.11" + byte-size "8.1.1" + chalk "4.1.0" + clone-deep "4.0.1" + cmd-shim "6.0.1" + columnify "1.6.0" + conventional-changelog-core "5.0.1" + conventional-recommended-bump "7.0.1" + cosmiconfig "^8.2.0" dedent "0.7.0" + execa "5.0.0" fs-extra "^11.1.1" + get-stream "6.0.0" + git-url-parse "13.1.0" + glob-parent "5.1.2" + globby "11.1.0" + graceful-fs "4.2.11" + has-unicode "2.0.1" + ini "^1.3.8" init-package-json "5.0.0" + inquirer "^8.2.4" + is-stream "2.0.0" + js-yaml "4.1.0" + 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" + node-fetch "2.6.7" npm-package-arg "8.1.1" + npm-packlist "5.1.1" + npm-registry-fetch "^14.0.5" + npmlog "^6.0.2" + nx ">=16.5.1 < 17" + p-map "4.0.0" + p-map-series "2.1.0" + p-queue "6.6.2" p-reduce "^2.1.0" pacote "^15.2.0" pify "5.0.0" + read-cmd-shim "4.0.0" + read-package-json "6.0.4" + resolve-from "5.0.0" + rimraf "^4.4.1" semver "^7.3.4" + signal-exit "3.0.7" slash "^3.0.0" + ssri "^9.0.1" + strong-log-transformer "2.1.0" + tar "6.1.11" + temp-dir "1.0.0" + upath "2.0.1" + uuid "^9.0.0" validate-npm-package-license "^3.0.4" validate-npm-package-name "5.0.0" + write-file-atomic "5.0.1" + write-pkg "4.0.0" + yargs "16.2.0" yargs-parser "20.2.4" "@mdx-js/mdx@^1.6.22": @@ -9951,13 +10002,13 @@ latest-version@^5.1.0: dependencies: package-json "^6.3.0" -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== +lerna@7.1.5: + version "7.1.5" + resolved "https://registry.yarnpkg.com/lerna/-/lerna-7.1.5.tgz#f65bde23d477382a221f9373f82d027825fa8622" + integrity sha512-5bvfmoIH4Czk5mdoLaRPYkM3M63Ei6+TOuXs3MgXmvqD8vs+vQpHuBVmiYFp5Mwsck3FkidJ+eTxfucltA2Lmw== dependencies: - "@lerna/child-process" "7.1.4" - "@lerna/create" "7.1.4" + "@lerna/child-process" "7.1.5" + "@lerna/create" "7.1.5" "@npmcli/run-script" "6.0.2" "@nx/devkit" ">=16.5.1 < 17" "@octokit/plugin-enterprise-rest" "6.0.1" From 660aff7253e2930311eac54a49f31b0367bf1485 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 13 Aug 2023 09:11:31 +0800 Subject: [PATCH 20/23] fix(utils): add new properties since eslint 8.40.0 (#7460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: add new properties * Update packages/utils/src/ts-eslint/Rule.ts Co-authored-by: Josh Goldberg ✨ * chore: apply suggestions --------- Co-authored-by: Josh Goldberg ✨ --- packages/utils/src/ts-eslint/Rule.ts | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/packages/utils/src/ts-eslint/Rule.ts b/packages/utils/src/ts-eslint/Rule.ts index a4b49f074a98..741365600993 100644 --- a/packages/utils/src/ts-eslint/Rule.ts +++ b/packages/utils/src/ts-eslint/Rule.ts @@ -220,20 +220,42 @@ interface RuleContext< * Returns the current working directory passed to Linter. * It is a path to a directory that should be considered as the current working directory. * @since 6.6.0 + * @deprecated Use {@link `cwd`} instead. */ getCwd(): string; + /** + * The current working directory passed to Linter. + * It is a path to a directory that should be considered as the current working directory. + * @since 8.40.0 + */ + cwd: string; + /** * Returns the filename associated with the source. + * @deprecated Use {@link `filename`} instead. */ getFilename(): string; + /** + * The filename associated with the source. + * @since 8.40.0 + */ + filename: string; + /** * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). * @since 7.28.0 + * @deprecated Use {@link `physicalFilename`} instead. */ getPhysicalFilename?(): string; + /** + * The full path of the file on disk without any code block information (unlike `filename`). + * @since 8.40.0 + */ + physicalFilename?: string; + /** * Returns the scope of the currently-traversed node. * This information can be used track references to variables. @@ -243,9 +265,17 @@ interface RuleContext< /** * Returns a SourceCode object that you can use to work with the source that * was passed to ESLint. + * @deprecated Use {@link `sourceCode`} instead. */ getSourceCode(): Readonly; + /** + * A SourceCode object that you can use to work with the source that + * was passed to ESLint. + * @since 8.40.0 + */ + sourceCode: Readonly; + /** * Marks a variable with the given name in the current scope as used. * This affects the no-unused-vars rule. From c225b1215177b6de4c5131b950361b9ab4ba200e Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 13 Aug 2023 12:24:15 +0800 Subject: [PATCH 21/23] fix(utils): remove deprecate tag added in #7460 (#7463) chore: remove deprecate tag --- packages/utils/src/ts-eslint/Rule.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/utils/src/ts-eslint/Rule.ts b/packages/utils/src/ts-eslint/Rule.ts index 741365600993..172ee4b2dfcc 100644 --- a/packages/utils/src/ts-eslint/Rule.ts +++ b/packages/utils/src/ts-eslint/Rule.ts @@ -220,7 +220,6 @@ interface RuleContext< * Returns the current working directory passed to Linter. * It is a path to a directory that should be considered as the current working directory. * @since 6.6.0 - * @deprecated Use {@link `cwd`} instead. */ getCwd(): string; @@ -233,7 +232,6 @@ interface RuleContext< /** * Returns the filename associated with the source. - * @deprecated Use {@link `filename`} instead. */ getFilename(): string; @@ -246,7 +244,6 @@ interface RuleContext< /** * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). * @since 7.28.0 - * @deprecated Use {@link `physicalFilename`} instead. */ getPhysicalFilename?(): string; @@ -265,7 +262,6 @@ interface RuleContext< /** * Returns a SourceCode object that you can use to work with the source that * was passed to ESLint. - * @deprecated Use {@link `sourceCode`} instead. */ getSourceCode(): Readonly; From 479f9f6c053874bd584220edf594ec56d6b0b71a Mon Sep 17 00:00:00 2001 From: SUZUKI Sosuke Date: Sun, 13 Aug 2023 17:53:09 +0900 Subject: [PATCH 22/23] feat: update to lib types for TS 5.2 RC (#7451) --- package.json | 4 +- packages/scope-manager/src/lib/decorators.ts | 2 + .../scope-manager/src/lib/dom.iterable.ts | 4 + packages/scope-manager/src/lib/dom.ts | 121 +++++++++++++++++- packages/scope-manager/src/lib/es2017.date.ts | 11 ++ packages/scope-manager/src/lib/es2017.ts | 2 + .../src/lib/es2023.collection.ts | 11 ++ packages/scope-manager/src/lib/es2023.ts | 2 + packages/scope-manager/src/lib/es5.ts | 2 + .../src/lib/esnext.collection.ts | 11 ++ .../src/lib/esnext.decorators.ts | 16 +++ .../src/lib/esnext.disposable.ts | 21 +++ packages/scope-manager/src/lib/esnext.ts | 4 + packages/scope-manager/src/lib/index.ts | 10 ++ .../src/lib/webworker.iterable.ts | 4 + packages/scope-manager/src/lib/webworker.ts | 94 ++++++++++++++ packages/scope-manager/tsconfig.spec.json | 2 +- packages/types/src/lib.ts | 83 ++++++------ .../src/parseSettings/warnAboutTSVersion.ts | 2 +- .../typescript-estree/src/version-check.ts | 2 + ...+5.1.6.patch => typescript+5.2.1-rc.patch} | 30 ++--- yarn.lock | 65 ++++++---- 22 files changed, 421 insertions(+), 82 deletions(-) create mode 100644 packages/scope-manager/src/lib/es2017.date.ts create mode 100644 packages/scope-manager/src/lib/es2023.collection.ts create mode 100644 packages/scope-manager/src/lib/esnext.collection.ts create mode 100644 packages/scope-manager/src/lib/esnext.decorators.ts create mode 100644 packages/scope-manager/src/lib/esnext.disposable.ts rename patches/{typescript+5.1.6.patch => typescript+5.2.1-rc.patch} (88%) diff --git a/package.json b/package.json index 8a9392900268..a15cc183f7fa 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "ts-node": "10.7.0", "tslint": "^6.1.3", "tsx": "^3.12.7", - "typescript": ">=4.3.5 <5.2.0" + "typescript": ">=4.3.5 <5.2.0 || 5.2.1-rc" }, "resolutions": { "@jest/create-cache-key-function": "^29", @@ -143,7 +143,7 @@ "jest-util": "^29", "pretty-format": "^29", "tsx": "^3.12.7", - "typescript": "5.1.6" + "typescript": "5.2.1-rc" }, "packageManager": "yarn@1.22.19" } diff --git a/packages/scope-manager/src/lib/decorators.ts b/packages/scope-manager/src/lib/decorators.ts index cbeb41eba291..958281bea4c2 100644 --- a/packages/scope-manager/src/lib/decorators.ts +++ b/packages/scope-manager/src/lib/decorators.ts @@ -9,6 +9,8 @@ import { TYPE } from './base-config'; export const decorators = { ClassMemberDecoratorContext: TYPE, DecoratorContext: TYPE, + DecoratorMetadataObject: TYPE, + DecoratorMetadata: TYPE, ClassDecoratorContext: TYPE, ClassMethodDecoratorContext: TYPE, ClassGetterDecoratorContext: TYPE, diff --git a/packages/scope-manager/src/lib/dom.iterable.ts b/packages/scope-manager/src/lib/dom.iterable.ts index 10c5d0eada18..594de3c38f14 100644 --- a/packages/scope-manager/src/lib/dom.iterable.ts +++ b/packages/scope-manager/src/lib/dom.iterable.ts @@ -11,8 +11,11 @@ export const dom_iterable = { AudioParamMap: TYPE, BaseAudioContext: TYPE, CSSKeyframesRule: TYPE, + CSSNumericArray: TYPE, CSSRuleList: TYPE, CSSStyleDeclaration: TYPE, + CSSTransformValue: TYPE, + CSSUnparsedValue: TYPE, Cache: TYPE, CanvasPath: TYPE, CanvasPathDrawingStyles: TYPE, @@ -55,6 +58,7 @@ export const dom_iterable = { SourceBufferList: TYPE, SpeechRecognitionResult: TYPE, SpeechRecognitionResultList: TYPE, + StylePropertyMapReadOnly: TYPE, StyleSheetList: TYPE, SubtleCrypto: TYPE, TextTrackCueList: TYPE, diff --git a/packages/scope-manager/src/lib/dom.ts b/packages/scope-manager/src/lib/dom.ts index 5976f8794927..462c92498668 100644 --- a/packages/scope-manager/src/lib/dom.ts +++ b/packages/scope-manager/src/lib/dom.ts @@ -30,9 +30,12 @@ export const dom = { AuthenticationExtensionsClientInputs: TYPE, AuthenticationExtensionsClientOutputs: TYPE, AuthenticatorSelectionCriteria: TYPE, + AvcEncoderConfig: TYPE, BiquadFilterOptions: TYPE, BlobEventInit: TYPE, BlobPropertyBag: TYPE, + CSSMatrixComponentOptions: TYPE, + CSSNumericType: TYPE, CSSStyleSheetInit: TYPE, CacheQueryOptions: TYPE, CanvasRenderingContext2DSettings: TYPE, @@ -80,12 +83,15 @@ export const dom = { EffectTiming: TYPE, ElementCreationOptions: TYPE, ElementDefinitionOptions: TYPE, + EncodedVideoChunkInit: TYPE, + EncodedVideoChunkMetadata: TYPE, ErrorEventInit: TYPE, EventInit: TYPE, EventListenerOptions: TYPE, EventModifierInit: TYPE, EventSourceInit: TYPE, FilePropertyBag: TYPE, + FileSystemCreateWritableOptions: TYPE, FileSystemFlags: TYPE, FileSystemGetDirectoryOptions: TYPE, FileSystemGetFileOptions: TYPE, @@ -97,6 +103,7 @@ export const dom = { FormDataEventInit: TYPE, FullscreenOptions: TYPE, GainOptions: TYPE, + GamepadEffectParameters: TYPE, GamepadEventInit: TYPE, GetAnimationsOptions: TYPE, GetNotificationOptions: TYPE, @@ -189,11 +196,13 @@ export const dom = { PeriodicWaveOptions: TYPE, PermissionDescriptor: TYPE, PictureInPictureEventInit: TYPE, + PlaneLayout: TYPE, PointerEventInit: TYPE, PopStateEventInit: TYPE, PositionOptions: TYPE, ProgressEventInit: TYPE, PromiseRejectionEventInit: TYPE, + PropertyDefinition: TYPE, PropertyIndexedKeyframes: TYPE, PublicKeyCredentialCreationOptions: TYPE, PublicKeyCredentialDescriptor: TYPE, @@ -218,6 +227,7 @@ export const dom = { RTCErrorEventInit: TYPE, RTCErrorInit: TYPE, RTCIceCandidateInit: TYPE, + RTCIceCandidatePair: TYPE, RTCIceCandidatePairStats: TYPE, RTCIceServer: TYPE, RTCInboundRtpStreamStats: TYPE, @@ -230,6 +240,7 @@ export const dom = { RTCReceivedRtpStreamStats: TYPE, RTCRtcpParameters: TYPE, RTCRtpCapabilities: TYPE, + RTCRtpCodec: TYPE, RTCRtpCodecCapability: TYPE, RTCRtpCodecParameters: TYPE, RTCRtpCodingParameters: TYPE, @@ -253,6 +264,7 @@ export const dom = { ReadableStreamReadValueResult: TYPE, ReadableWritablePair: TYPE, RegistrationOptions: TYPE, + ReportingObserverOptions: TYPE, RequestInit: TYPE, ResizeObserverOptions: TYPE, ResponseInit: TYPE, @@ -283,6 +295,7 @@ export const dom = { TextDecodeOptions: TYPE, TextDecoderOptions: TYPE, TextEncoderEncodeIntoResult: TYPE, + ToggleEventInit: TYPE, TouchEventInit: TYPE, TouchInit: TYPE, TrackEventInit: TYPE, @@ -297,14 +310,30 @@ export const dom = { ValidityStateFlags: TYPE, VideoColorSpaceInit: TYPE, VideoConfiguration: TYPE, + VideoDecoderConfig: TYPE, + VideoDecoderInit: TYPE, + VideoDecoderSupport: TYPE, + VideoEncoderConfig: TYPE, + VideoEncoderEncodeOptions: TYPE, + VideoEncoderInit: TYPE, + VideoEncoderSupport: TYPE, + VideoFrameBufferInit: TYPE, VideoFrameCallbackMetadata: TYPE, + VideoFrameCopyToOptions: TYPE, + VideoFrameInit: TYPE, WaveShaperOptions: TYPE, WebGLContextAttributes: TYPE, WebGLContextEventInit: TYPE, + WebTransportCloseInfo: TYPE, + WebTransportErrorOptions: TYPE, + WebTransportHash: TYPE, + WebTransportOptions: TYPE, + WebTransportSendStreamOptions: TYPE, WheelEventInit: TYPE, WindowPostMessageOptions: TYPE, WorkerOptions: TYPE, WorkletOptions: TYPE, + WriteParams: TYPE, NodeFilter: TYPE_VALUE, XPathNSResolver: TYPE, ANGLE_instanced_arrays: TYPE, @@ -362,21 +391,48 @@ export const dom = { CSSFontFeatureValuesRule: TYPE_VALUE, CSSFontPaletteValuesRule: TYPE_VALUE, CSSGroupingRule: TYPE_VALUE, + CSSImageValue: TYPE_VALUE, CSSImportRule: TYPE_VALUE, CSSKeyframeRule: TYPE_VALUE, CSSKeyframesRule: TYPE_VALUE, + CSSKeywordValue: TYPE_VALUE, CSSLayerBlockRule: TYPE_VALUE, CSSLayerStatementRule: TYPE_VALUE, + CSSMathClamp: TYPE_VALUE, + CSSMathInvert: TYPE_VALUE, + CSSMathMax: TYPE_VALUE, + CSSMathMin: TYPE_VALUE, + CSSMathNegate: TYPE_VALUE, + CSSMathProduct: TYPE_VALUE, + CSSMathSum: TYPE_VALUE, + CSSMathValue: TYPE_VALUE, + CSSMatrixComponent: TYPE_VALUE, CSSMediaRule: TYPE_VALUE, CSSNamespaceRule: TYPE_VALUE, + CSSNumericArray: TYPE_VALUE, + CSSNumericValue: TYPE_VALUE, CSSPageRule: TYPE_VALUE, + CSSPerspective: TYPE_VALUE, + CSSPropertyRule: TYPE_VALUE, + CSSRotate: TYPE_VALUE, CSSRule: TYPE_VALUE, CSSRuleList: TYPE_VALUE, + CSSScale: TYPE_VALUE, + CSSSkew: TYPE_VALUE, + CSSSkewX: TYPE_VALUE, + CSSSkewY: TYPE_VALUE, CSSStyleDeclaration: TYPE_VALUE, CSSStyleRule: TYPE_VALUE, CSSStyleSheet: TYPE_VALUE, + CSSStyleValue: TYPE_VALUE, CSSSupportsRule: TYPE_VALUE, + CSSTransformComponent: TYPE_VALUE, + CSSTransformValue: TYPE_VALUE, CSSTransition: TYPE_VALUE, + CSSTranslate: TYPE_VALUE, + CSSUnitValue: TYPE_VALUE, + CSSUnparsedValue: TYPE_VALUE, + CSSVariableReferenceValue: TYPE_VALUE, Cache: TYPE_VALUE, CacheStorage: TYPE_VALUE, CanvasCaptureMediaStreamTrack: TYPE_VALUE, @@ -410,6 +466,7 @@ export const dom = { CloseEvent: TYPE_VALUE, Comment: TYPE_VALUE, CompositionEvent: TYPE_VALUE, + CompressionStream: TYPE_VALUE, ConstantSourceNode: TYPE_VALUE, ConvolverNode: TYPE_VALUE, CountQueuingStrategy: TYPE_VALUE, @@ -440,6 +497,7 @@ export const dom = { DataTransfer: TYPE_VALUE, DataTransferItem: TYPE_VALUE, DataTransferItemList: TYPE_VALUE, + DecompressionStream: TYPE_VALUE, DelayNode: TYPE_VALUE, DeviceMotionEvent: TYPE_VALUE, DeviceMotionEventAcceleration: TYPE, @@ -469,6 +527,7 @@ export const dom = { ElementCSSInlineStyle: TYPE, ElementContentEditable: TYPE, ElementInternals: TYPE_VALUE, + EncodedVideoChunk: TYPE_VALUE, ErrorEvent: TYPE_VALUE, Event: TYPE_VALUE, EventCounts: TYPE_VALUE, @@ -490,6 +549,7 @@ export const dom = { FileSystemFileEntry: TYPE_VALUE, FileSystemFileHandle: TYPE_VALUE, FileSystemHandle: TYPE_VALUE, + FileSystemWritableFileStream: TYPE_VALUE, FocusEvent: TYPE_VALUE, FontFace: TYPE_VALUE, FontFaceSetEventMap: TYPE, @@ -689,6 +749,7 @@ export const dom = { NavigationPreloadManager: TYPE_VALUE, Navigator: TYPE_VALUE, NavigatorAutomationInformation: TYPE, + NavigatorBadge: TYPE, NavigatorConcurrentHardware: TYPE, NavigatorContentUtils: TYPE, NavigatorCookies: TYPE, @@ -758,6 +819,7 @@ export const dom = { PluginArray: TYPE_VALUE, PointerEvent: TYPE_VALUE, PopStateEvent: TYPE_VALUE, + PopoverInvokerElement: TYPE, ProcessingInstruction: TYPE_VALUE, ProgressEvent: TYPE_VALUE, PromiseRejectionEvent: TYPE_VALUE, @@ -804,6 +866,9 @@ export const dom = { ReadableStreamGenericReader: TYPE, RemotePlaybackEventMap: TYPE, RemotePlayback: TYPE_VALUE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, Request: TYPE_VALUE, ResizeObserver: TYPE_VALUE, ResizeObserverEntry: TYPE_VALUE, @@ -947,6 +1012,8 @@ export const dom = { StorageEvent: TYPE_VALUE, StorageManager: TYPE_VALUE, StyleMedia: TYPE, + StylePropertyMap: TYPE_VALUE, + StylePropertyMapReadOnly: TYPE_VALUE, StyleSheet: TYPE_VALUE, StyleSheetList: TYPE_VALUE, SubmitEvent: TYPE_VALUE, @@ -967,6 +1034,7 @@ export const dom = { TextTrackListEventMap: TYPE, TextTrackList: TYPE_VALUE, TimeRanges: TYPE_VALUE, + ToggleEvent: TYPE_VALUE, Touch: TYPE_VALUE, TouchEvent: TYPE_VALUE, TouchList: TYPE_VALUE, @@ -979,10 +1047,16 @@ export const dom = { URL: TYPE_VALUE, webkitURL: TYPE_VALUE, URLSearchParams: TYPE_VALUE, + UserActivation: TYPE_VALUE, VTTCue: TYPE_VALUE, VTTRegion: TYPE_VALUE, ValidityState: TYPE_VALUE, VideoColorSpace: TYPE_VALUE, + VideoDecoderEventMap: TYPE, + VideoDecoder: TYPE_VALUE, + VideoEncoderEventMap: TYPE, + VideoEncoder: TYPE_VALUE, + VideoFrame: TYPE_VALUE, VideoPlaybackQuality: TYPE_VALUE, VisualViewportEventMap: TYPE, VisualViewport: TYPE_VALUE, @@ -990,6 +1064,7 @@ export const dom = { WEBGL_compressed_texture_astc: TYPE, WEBGL_compressed_texture_etc: TYPE, WEBGL_compressed_texture_etc1: TYPE, + WEBGL_compressed_texture_pvrtc: TYPE, WEBGL_compressed_texture_s3tc: TYPE, WEBGL_compressed_texture_s3tc_srgb: TYPE, WEBGL_debug_renderer_info: TYPE, @@ -998,6 +1073,9 @@ export const dom = { WEBGL_draw_buffers: TYPE, WEBGL_lose_context: TYPE, WEBGL_multi_draw: TYPE, + WakeLock: TYPE_VALUE, + WakeLockSentinelEventMap: TYPE, + WakeLockSentinel: TYPE_VALUE, WaveShaperNode: TYPE_VALUE, WebGL2RenderingContext: TYPE_VALUE, WebGL2RenderingContextBase: TYPE, @@ -1023,6 +1101,10 @@ export const dom = { WebGLVertexArrayObjectOES: TYPE, WebSocketEventMap: TYPE, WebSocket: TYPE_VALUE, + WebTransport: TYPE_VALUE, + WebTransportBidirectionalStream: TYPE_VALUE, + WebTransportDatagramDuplexStream: TYPE_VALUE, + WebTransportError: TYPE_VALUE, WheelEvent: TYPE_VALUE, WindowEventMap: TYPE, Window: TYPE_VALUE, @@ -1056,6 +1138,7 @@ export const dom = { CustomElementConstructor: TYPE, DecodeErrorCallback: TYPE, DecodeSuccessCallback: TYPE, + EncodedVideoChunkOutputCallback: TYPE, ErrorCallback: TYPE, FileCallback: TYPE, FileSystemEntriesCallback: TYPE, @@ -1077,6 +1160,7 @@ export const dom = { RTCPeerConnectionErrorCallback: TYPE, RTCSessionDescriptionCallback: TYPE, RemotePlaybackAvailabilityCallback: TYPE, + ReportingObserverCallback: TYPE, ResizeObserverCallback: TYPE, TransformerFlushCallback: TYPE, TransformerStartCallback: TYPE, @@ -1088,21 +1172,30 @@ export const dom = { UnderlyingSourceCancelCallback: TYPE, UnderlyingSourcePullCallback: TYPE, UnderlyingSourceStartCallback: TYPE, + VideoFrameOutputCallback: TYPE, VideoFrameRequestCallback: TYPE, VoidFunction: TYPE, + WebCodecsErrorCallback: TYPE, HTMLElementTagNameMap: TYPE, HTMLElementDeprecatedTagNameMap: TYPE, SVGElementTagNameMap: TYPE, MathMLElementTagNameMap: TYPE, ElementTagNameMap: TYPE, AlgorithmIdentifier: TYPE, + AllowSharedBufferSource: TYPE, + AutoFill: TYPE, + AutoFillField: TYPE, + AutoFillSection: TYPE, BigInteger: TYPE, BinaryData: TYPE, BlobPart: TYPE, BodyInit: TYPE, BufferSource: TYPE, COSEAlgorithmIdentifier: TYPE, + CSSKeywordish: TYPE, CSSNumberish: TYPE, + CSSPerspectiveValue: TYPE, + CSSUnparsedSegment: TYPE, CanvasImageSource: TYPE, ClipboardItemData: TYPE, ClipboardItems: TYPE, @@ -1113,6 +1206,7 @@ export const dom = { DOMHighResTimeStamp: TYPE, EpochTimeStamp: TYPE, EventListenerOrEventListenerObject: TYPE, + FileSystemWriteChunkType: TYPE, Float32List: TYPE, FormDataEntryValue: TYPE, GLbitfield: TYPE, @@ -1142,11 +1236,14 @@ export const dom = { OffscreenRenderingContext: TYPE, OnBeforeUnloadEventHandler: TYPE, OnErrorEventHandler: TYPE, + OptionalPostfixToken: TYPE, + OptionalPrefixToken: TYPE, PerformanceEntryList: TYPE, ReadableStreamController: TYPE, ReadableStreamReadResult: TYPE, ReadableStreamReader: TYPE, RenderingContext: TYPE, + ReportList: TYPE, RequestInfo: TYPE, TexImageSource: TYPE, TimerHandler: TYPE, @@ -1156,6 +1253,7 @@ export const dom = { WindowProxy: TYPE, XMLHttpRequestBodyInit: TYPE, AlignSetting: TYPE, + AlphaOption: TYPE, AnimationPlayState: TYPE, AnimationReplaceState: TYPE, AppendMode: TYPE, @@ -1164,10 +1262,19 @@ export const dom = { AudioContextState: TYPE, AuthenticatorAttachment: TYPE, AuthenticatorTransport: TYPE, + AutoFillAddressKind: TYPE, + AutoFillBase: TYPE, + AutoFillContactField: TYPE, + AutoFillContactKind: TYPE, + AutoFillCredentialField: TYPE, + AutoFillNormalField: TYPE, AutoKeyword: TYPE, AutomationRate: TYPE, + AvcBitstreamFormat: TYPE, BinaryType: TYPE, BiquadFilterType: TYPE, + CSSMathOperator: TYPE, + CSSNumericBaseType: TYPE, CanPlayTypeResult: TYPE, CanvasDirection: TYPE, CanvasFillRule: TYPE, @@ -1182,10 +1289,12 @@ export const dom = { ChannelCountMode: TYPE, ChannelInterpretation: TYPE, ClientTypes: TYPE, + CodecState: TYPE, ColorGamut: TYPE, ColorSpaceConversion: TYPE, CompositeOperation: TYPE, CompositeOperationOrAuto: TYPE, + CompressionFormat: TYPE, CredentialMediationRequirement: TYPE, DOMParserSupportedType: TYPE, DirectionSetting: TYPE, @@ -1193,6 +1302,7 @@ export const dom = { DistanceModelType: TYPE, DocumentReadyState: TYPE, DocumentVisibilityState: TYPE, + EncodedVideoChunkType: TYPE, EndOfStreamError: TYPE, EndingType: TYPE, FileSystemHandleKind: TYPE, @@ -1202,8 +1312,11 @@ export const dom = { FontFaceSetLoadStatus: TYPE, FullscreenNavigationUI: TYPE, GamepadHapticActuatorType: TYPE, + GamepadHapticEffectType: TYPE, + GamepadHapticsResult: TYPE, GamepadMappingType: TYPE, GlobalCompositeOperation: TYPE, + HardwareAcceleration: TYPE, HdrMetadataType: TYPE, IDBCursorDirection: TYPE, IDBRequestReadyState: TYPE, @@ -1216,6 +1329,7 @@ export const dom = { KeyFormat: TYPE, KeyType: TYPE, KeyUsage: TYPE, + LatencyMode: TYPE, LineAlignSetting: TYPE, LockMode: TYPE, MIDIPortConnectionState: TYPE, @@ -1236,7 +1350,6 @@ export const dom = { NotificationDirection: TYPE, NotificationPermission: TYPE, OffscreenRenderingContextId: TYPE, - OrientationLockType: TYPE, OrientationType: TYPE, OscillatorType: TYPE, OverSampleType: TYPE, @@ -1307,10 +1420,16 @@ export const dom = { TransferFunction: TYPE, UserVerificationRequirement: TYPE, VideoColorPrimaries: TYPE, + VideoEncoderBitrateMode: TYPE, VideoFacingModeEnum: TYPE, VideoMatrixCoefficients: TYPE, + VideoPixelFormat: TYPE, VideoTransferCharacteristics: TYPE, + WakeLockType: TYPE, WebGLPowerPreference: TYPE, + WebTransportCongestionControl: TYPE, + WebTransportErrorSource: TYPE, WorkerType: TYPE, + WriteCommandType: TYPE, XMLHttpRequestResponseType: TYPE, } as Record; diff --git a/packages/scope-manager/src/lib/es2017.date.ts b/packages/scope-manager/src/lib/es2017.date.ts new file mode 100644 index 000000000000..031a79e51fcb --- /dev/null +++ b/packages/scope-manager/src/lib/es2017.date.ts @@ -0,0 +1,11 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const es2017_date = { + DateConstructor: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/es2017.ts b/packages/scope-manager/src/lib/es2017.ts index 3cbafd35b161..ec07b52c5a44 100644 --- a/packages/scope-manager/src/lib/es2017.ts +++ b/packages/scope-manager/src/lib/es2017.ts @@ -5,6 +5,7 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { es2016 } from './es2016'; +import { es2017_date } from './es2017.date'; import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; import { es2017_sharedmemory } from './es2017.sharedmemory'; @@ -18,4 +19,5 @@ export const es2017 = { ...es2017_string, ...es2017_intl, ...es2017_typedarrays, + ...es2017_date, } as Record; diff --git a/packages/scope-manager/src/lib/es2023.collection.ts b/packages/scope-manager/src/lib/es2023.collection.ts new file mode 100644 index 000000000000..12ef36c331b9 --- /dev/null +++ b/packages/scope-manager/src/lib/es2023.collection.ts @@ -0,0 +1,11 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const es2023_collection = { + WeakKeyTypes: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/es2023.ts b/packages/scope-manager/src/lib/es2023.ts index 9e98d3766115..a3da668dd598 100644 --- a/packages/scope-manager/src/lib/es2023.ts +++ b/packages/scope-manager/src/lib/es2023.ts @@ -6,8 +6,10 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { es2022 } from './es2022'; import { es2023_array } from './es2023.array'; +import { es2023_collection } from './es2023.collection'; export const es2023 = { ...es2022, ...es2023_array, + ...es2023_collection, } as Record; diff --git a/packages/scope-manager/src/lib/es5.ts b/packages/scope-manager/src/lib/es5.ts index 94c6eff46d0b..9be707e1ff03 100644 --- a/packages/scope-manager/src/lib/es5.ts +++ b/packages/scope-manager/src/lib/es5.ts @@ -84,6 +84,8 @@ export const es5 = { Capitalize: TYPE, Uncapitalize: TYPE, ThisType: TYPE, + WeakKeyTypes: TYPE, + WeakKey: TYPE, ArrayBuffer: TYPE_VALUE, ArrayBufferTypes: TYPE, ArrayBufferLike: TYPE, diff --git a/packages/scope-manager/src/lib/esnext.collection.ts b/packages/scope-manager/src/lib/esnext.collection.ts new file mode 100644 index 000000000000..2b5c49b7aebb --- /dev/null +++ b/packages/scope-manager/src/lib/esnext.collection.ts @@ -0,0 +1,11 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; + +export const esnext_collection = { + WeakKeyTypes: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/esnext.decorators.ts b/packages/scope-manager/src/lib/esnext.decorators.ts new file mode 100644 index 000000000000..5a5a5f93bc22 --- /dev/null +++ b/packages/scope-manager/src/lib/esnext.decorators.ts @@ -0,0 +1,16 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE } from './base-config'; +import { decorators } from './decorators'; +import { es2015_symbol } from './es2015.symbol'; + +export const esnext_decorators = { + ...es2015_symbol, + ...decorators, + SymbolConstructor: TYPE, + Function: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/esnext.disposable.ts b/packages/scope-manager/src/lib/esnext.disposable.ts new file mode 100644 index 000000000000..9bcaa62ec525 --- /dev/null +++ b/packages/scope-manager/src/lib/esnext.disposable.ts @@ -0,0 +1,21 @@ +// THIS CODE WAS AUTOMATICALLY GENERATED +// DO NOT EDIT THIS CODE BY HAND +// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: +// npx nx generate-lib @typescript-eslint/scope-manager + +import type { ImplicitLibVariableOptions } from '../variable'; +import { TYPE, TYPE_VALUE } from './base-config'; +import { es2015_symbol } from './es2015.symbol'; + +export const esnext_disposable = { + ...es2015_symbol, + SymbolConstructor: TYPE, + Disposable: TYPE, + AsyncDisposable: TYPE, + SuppressedError: TYPE_VALUE, + SuppressedErrorConstructor: TYPE, + DisposableStack: TYPE_VALUE, + DisposableStackConstructor: TYPE, + AsyncDisposableStack: TYPE_VALUE, + AsyncDisposableStackConstructor: TYPE, +} as Record; diff --git a/packages/scope-manager/src/lib/esnext.ts b/packages/scope-manager/src/lib/esnext.ts index 72089f282dcc..a2498b34c5a6 100644 --- a/packages/scope-manager/src/lib/esnext.ts +++ b/packages/scope-manager/src/lib/esnext.ts @@ -5,9 +5,13 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { es2023 } from './es2023'; +import { esnext_decorators } from './esnext.decorators'; +import { esnext_disposable } from './esnext.disposable'; import { esnext_intl } from './esnext.intl'; export const esnext = { ...es2023, ...esnext_intl, + ...esnext_decorators, + ...esnext_disposable, } as Record; diff --git a/packages/scope-manager/src/lib/index.ts b/packages/scope-manager/src/lib/index.ts index a91568b6be6e..b3d4ab1a78f3 100644 --- a/packages/scope-manager/src/lib/index.ts +++ b/packages/scope-manager/src/lib/index.ts @@ -24,6 +24,7 @@ import { es2016 } from './es2016'; import { es2016_array_include } from './es2016.array.include'; import { es2016_full } from './es2016.full'; import { es2017 } from './es2017'; +import { es2017_date } from './es2017.date'; import { es2017_full } from './es2017.full'; import { es2017_intl } from './es2017.intl'; import { es2017_object } from './es2017.object'; @@ -71,11 +72,15 @@ import { es2022_sharedmemory } from './es2022.sharedmemory'; import { es2022_string } from './es2022.string'; import { es2023 } from './es2023'; import { es2023_array } from './es2023.array'; +import { es2023_collection } from './es2023.collection'; import { es2023_full } from './es2023.full'; import { esnext } from './esnext'; import { esnext_array } from './esnext.array'; import { esnext_asynciterable } from './esnext.asynciterable'; import { esnext_bigint } from './esnext.bigint'; +import { esnext_collection } from './esnext.collection'; +import { esnext_decorators } from './esnext.decorators'; +import { esnext_disposable } from './esnext.disposable'; import { esnext_full } from './esnext.full'; import { esnext_intl } from './esnext.intl'; import { esnext_promise } from './esnext.promise'; @@ -118,6 +123,7 @@ const lib = { 'es2015.symbol': es2015_symbol, 'es2015.symbol.wellknown': es2015_symbol_wellknown, 'es2016.array.include': es2016_array_include, + 'es2017.date': es2017_date, 'es2017.object': es2017_object, 'es2017.sharedmemory': es2017_sharedmemory, 'es2017.string': es2017_string, @@ -153,14 +159,18 @@ const lib = { 'es2022.string': es2022_string, 'es2022.regexp': es2022_regexp, 'es2023.array': es2023_array, + 'es2023.collection': es2023_collection, 'esnext.array': esnext_array, + 'esnext.collection': esnext_collection, 'esnext.symbol': esnext_symbol, 'esnext.asynciterable': esnext_asynciterable, 'esnext.intl': esnext_intl, + 'esnext.disposable': esnext_disposable, 'esnext.bigint': esnext_bigint, 'esnext.string': esnext_string, 'esnext.promise': esnext_promise, 'esnext.weakref': esnext_weakref, + 'esnext.decorators': esnext_decorators, decorators, 'decorators.legacy': decorators_legacy, 'es2016.full': es2016_full, diff --git a/packages/scope-manager/src/lib/webworker.iterable.ts b/packages/scope-manager/src/lib/webworker.iterable.ts index 5ff03255ece6..7bdb8cf82a20 100644 --- a/packages/scope-manager/src/lib/webworker.iterable.ts +++ b/packages/scope-manager/src/lib/webworker.iterable.ts @@ -7,6 +7,9 @@ import type { ImplicitLibVariableOptions } from '../variable'; import { TYPE } from './base-config'; export const webworker_iterable = { + CSSNumericArray: TYPE, + CSSTransformValue: TYPE, + CSSUnparsedValue: TYPE, Cache: TYPE, CanvasPath: TYPE, CanvasPathDrawingStyles: TYPE, @@ -18,6 +21,7 @@ export const webworker_iterable = { IDBDatabase: TYPE, IDBObjectStore: TYPE, MessageEvent: TYPE, + StylePropertyMapReadOnly: TYPE, SubtleCrypto: TYPE, URLSearchParams: TYPE, WEBGL_draw_buffers: TYPE, diff --git a/packages/scope-manager/src/lib/webworker.ts b/packages/scope-manager/src/lib/webworker.ts index 5e2aaad12f41..bec9a0f3f3bc 100644 --- a/packages/scope-manager/src/lib/webworker.ts +++ b/packages/scope-manager/src/lib/webworker.ts @@ -16,7 +16,10 @@ export const webworker = { AesKeyGenParams: TYPE, Algorithm: TYPE, AudioConfiguration: TYPE, + AvcEncoderConfig: TYPE, BlobPropertyBag: TYPE, + CSSMatrixComponentOptions: TYPE, + CSSNumericType: TYPE, CacheQueryOptions: TYPE, ClientQueryOptions: TYPE, CloseEventInit: TYPE, @@ -31,6 +34,8 @@ export const webworker = { EcKeyImportParams: TYPE, EcdhKeyDeriveParams: TYPE, EcdsaParams: TYPE, + EncodedVideoChunkInit: TYPE, + EncodedVideoChunkMetadata: TYPE, ErrorEventInit: TYPE, EventInit: TYPE, EventListenerOptions: TYPE, @@ -39,6 +44,7 @@ export const webworker = { ExtendableMessageEventInit: TYPE, FetchEventInit: TYPE, FilePropertyBag: TYPE, + FileSystemCreateWritableOptions: TYPE, FileSystemGetDirectoryOptions: TYPE, FileSystemGetFileOptions: TYPE, FileSystemReadWriteOptions: TYPE, @@ -81,6 +87,7 @@ export const webworker = { PerformanceMeasureOptions: TYPE, PerformanceObserverInit: TYPE, PermissionDescriptor: TYPE, + PlaneLayout: TYPE, ProgressEventInit: TYPE, PromiseRejectionEventInit: TYPE, PushEventInit: TYPE, @@ -95,6 +102,7 @@ export const webworker = { ReadableStreamReadValueResult: TYPE, ReadableWritablePair: TYPE, RegistrationOptions: TYPE, + ReportingObserverOptions: TYPE, RequestInit: TYPE, ResponseInit: TYPE, RsaHashedImportParams: TYPE, @@ -117,9 +125,25 @@ export const webworker = { UnderlyingSource: TYPE, VideoColorSpaceInit: TYPE, VideoConfiguration: TYPE, + VideoDecoderConfig: TYPE, + VideoDecoderInit: TYPE, + VideoDecoderSupport: TYPE, + VideoEncoderConfig: TYPE, + VideoEncoderEncodeOptions: TYPE, + VideoEncoderInit: TYPE, + VideoEncoderSupport: TYPE, + VideoFrameBufferInit: TYPE, + VideoFrameCopyToOptions: TYPE, + VideoFrameInit: TYPE, WebGLContextAttributes: TYPE, WebGLContextEventInit: TYPE, + WebTransportCloseInfo: TYPE, + WebTransportErrorOptions: TYPE, + WebTransportHash: TYPE, + WebTransportOptions: TYPE, + WebTransportSendStreamOptions: TYPE, WorkerOptions: TYPE, + WriteParams: TYPE, ANGLE_instanced_arrays: TYPE, AbortController: TYPE_VALUE, AbortSignalEventMap: TYPE, @@ -132,6 +156,32 @@ export const webworker = { BroadcastChannelEventMap: TYPE, BroadcastChannel: TYPE_VALUE, ByteLengthQueuingStrategy: TYPE_VALUE, + CSSImageValue: TYPE_VALUE, + CSSKeywordValue: TYPE_VALUE, + CSSMathClamp: TYPE_VALUE, + CSSMathInvert: TYPE_VALUE, + CSSMathMax: TYPE_VALUE, + CSSMathMin: TYPE_VALUE, + CSSMathNegate: TYPE_VALUE, + CSSMathProduct: TYPE_VALUE, + CSSMathSum: TYPE_VALUE, + CSSMathValue: TYPE_VALUE, + CSSMatrixComponent: TYPE_VALUE, + CSSNumericArray: TYPE_VALUE, + CSSNumericValue: TYPE_VALUE, + CSSPerspective: TYPE_VALUE, + CSSRotate: TYPE_VALUE, + CSSScale: TYPE_VALUE, + CSSSkew: TYPE_VALUE, + CSSSkewX: TYPE_VALUE, + CSSSkewY: TYPE_VALUE, + CSSStyleValue: TYPE_VALUE, + CSSTransformComponent: TYPE_VALUE, + CSSTransformValue: TYPE_VALUE, + CSSTranslate: TYPE_VALUE, + CSSUnitValue: TYPE_VALUE, + CSSUnparsedValue: TYPE_VALUE, + CSSVariableReferenceValue: TYPE_VALUE, Cache: TYPE_VALUE, CacheStorage: TYPE_VALUE, CanvasCompositing: TYPE, @@ -154,6 +204,7 @@ export const webworker = { Client: TYPE_VALUE, Clients: TYPE_VALUE, CloseEvent: TYPE_VALUE, + CompressionStream: TYPE_VALUE, CountQueuingStrategy: TYPE_VALUE, Crypto: TYPE_VALUE, CryptoKey: TYPE_VALUE, @@ -167,6 +218,7 @@ export const webworker = { DOMRect: TYPE_VALUE, DOMRectReadOnly: TYPE_VALUE, DOMStringList: TYPE_VALUE, + DecompressionStream: TYPE_VALUE, DedicatedWorkerGlobalScopeEventMap: TYPE, DedicatedWorkerGlobalScope: TYPE_VALUE, EXT_blend_minmax: TYPE, @@ -180,6 +232,7 @@ export const webworker = { EXT_texture_compression_rgtc: TYPE, EXT_texture_filter_anisotropic: TYPE, EXT_texture_norm16: TYPE, + EncodedVideoChunk: TYPE_VALUE, ErrorEvent: TYPE_VALUE, Event: TYPE_VALUE, EventListener: TYPE, @@ -199,6 +252,7 @@ export const webworker = { FileSystemFileHandle: TYPE_VALUE, FileSystemHandle: TYPE_VALUE, FileSystemSyncAccessHandle: TYPE_VALUE, + FileSystemWritableFileStream: TYPE_VALUE, FontFace: TYPE_VALUE, FontFaceSetEventMap: TYPE, FontFaceSet: TYPE_VALUE, @@ -234,6 +288,7 @@ export const webworker = { MessagePortEventMap: TYPE, MessagePort: TYPE_VALUE, NavigationPreloadManager: TYPE_VALUE, + NavigatorBadge: TYPE, NavigatorConcurrentHardware: TYPE, NavigatorID: TYPE, NavigatorLanguage: TYPE, @@ -285,6 +340,9 @@ export const webworker = { ReadableStreamDefaultController: TYPE_VALUE, ReadableStreamDefaultReader: TYPE_VALUE, ReadableStreamGenericReader: TYPE, + Report: TYPE_VALUE, + ReportBody: TYPE_VALUE, + ReportingObserver: TYPE_VALUE, Request: TYPE_VALUE, Response: TYPE_VALUE, SecurityPolicyViolationEvent: TYPE_VALUE, @@ -299,6 +357,7 @@ export const webworker = { SharedWorkerGlobalScopeEventMap: TYPE, SharedWorkerGlobalScope: TYPE_VALUE, StorageManager: TYPE_VALUE, + StylePropertyMapReadOnly: TYPE_VALUE, SubtleCrypto: TYPE_VALUE, TextDecoder: TYPE_VALUE, TextDecoderCommon: TYPE, @@ -312,10 +371,16 @@ export const webworker = { URL: TYPE_VALUE, URLSearchParams: TYPE_VALUE, VideoColorSpace: TYPE_VALUE, + VideoDecoderEventMap: TYPE, + VideoDecoder: TYPE_VALUE, + VideoEncoderEventMap: TYPE, + VideoEncoder: TYPE_VALUE, + VideoFrame: TYPE_VALUE, WEBGL_color_buffer_float: TYPE, WEBGL_compressed_texture_astc: TYPE, WEBGL_compressed_texture_etc: TYPE, WEBGL_compressed_texture_etc1: TYPE, + WEBGL_compressed_texture_pvrtc: TYPE, WEBGL_compressed_texture_s3tc: TYPE, WEBGL_compressed_texture_s3tc_srgb: TYPE, WEBGL_debug_renderer_info: TYPE, @@ -348,6 +413,10 @@ export const webworker = { WebGLVertexArrayObjectOES: TYPE, WebSocketEventMap: TYPE, WebSocket: TYPE_VALUE, + WebTransport: TYPE_VALUE, + WebTransportBidirectionalStream: TYPE_VALUE, + WebTransportDatagramDuplexStream: TYPE_VALUE, + WebTransportError: TYPE_VALUE, WindowClient: TYPE_VALUE, WindowOrWorkerGlobalScope: TYPE, WorkerEventMap: TYPE, @@ -366,11 +435,13 @@ export const webworker = { XMLHttpRequestUpload: TYPE_VALUE, Console: TYPE, WebAssembly: TYPE_VALUE, + EncodedVideoChunkOutputCallback: TYPE, FrameRequestCallback: TYPE, LockGrantedCallback: TYPE, OnErrorEventHandlerNonNull: TYPE, PerformanceObserverCallback: TYPE, QueuingStrategySize: TYPE, + ReportingObserverCallback: TYPE, TransformerFlushCallback: TYPE, TransformerStartCallback: TYPE, TransformerTransformCallback: TYPE, @@ -381,17 +452,25 @@ export const webworker = { UnderlyingSourceCancelCallback: TYPE, UnderlyingSourcePullCallback: TYPE, UnderlyingSourceStartCallback: TYPE, + VideoFrameOutputCallback: TYPE, VoidFunction: TYPE, + WebCodecsErrorCallback: TYPE, AlgorithmIdentifier: TYPE, + AllowSharedBufferSource: TYPE, BigInteger: TYPE, BinaryData: TYPE, BlobPart: TYPE, BodyInit: TYPE, BufferSource: TYPE, + CSSKeywordish: TYPE, + CSSNumberish: TYPE, + CSSPerspectiveValue: TYPE, + CSSUnparsedSegment: TYPE, CanvasImageSource: TYPE, DOMHighResTimeStamp: TYPE, EpochTimeStamp: TYPE, EventListenerOrEventListenerObject: TYPE, + FileSystemWriteChunkType: TYPE, Float32List: TYPE, FormDataEntryValue: TYPE, GLbitfield: TYPE, @@ -420,6 +499,7 @@ export const webworker = { ReadableStreamController: TYPE, ReadableStreamReadResult: TYPE, ReadableStreamReader: TYPE, + ReportList: TYPE, RequestInfo: TYPE, TexImageSource: TYPE, TimerHandler: TYPE, @@ -427,7 +507,11 @@ export const webworker = { Uint32List: TYPE, VibratePattern: TYPE, XMLHttpRequestBodyInit: TYPE, + AlphaOption: TYPE, + AvcBitstreamFormat: TYPE, BinaryType: TYPE, + CSSMathOperator: TYPE, + CSSNumericBaseType: TYPE, CanvasDirection: TYPE, CanvasFillRule: TYPE, CanvasFontKerning: TYPE, @@ -439,9 +523,12 @@ export const webworker = { CanvasTextBaseline: TYPE, CanvasTextRendering: TYPE, ClientTypes: TYPE, + CodecState: TYPE, ColorGamut: TYPE, ColorSpaceConversion: TYPE, + CompressionFormat: TYPE, DocumentVisibilityState: TYPE, + EncodedVideoChunkType: TYPE, EndingType: TYPE, FileSystemHandleKind: TYPE, FontDisplay: TYPE, @@ -449,6 +536,7 @@ export const webworker = { FontFaceSetLoadStatus: TYPE, FrameType: TYPE, GlobalCompositeOperation: TYPE, + HardwareAcceleration: TYPE, HdrMetadataType: TYPE, IDBCursorDirection: TYPE, IDBRequestReadyState: TYPE, @@ -459,6 +547,7 @@ export const webworker = { KeyFormat: TYPE, KeyType: TYPE, KeyUsage: TYPE, + LatencyMode: TYPE, LockMode: TYPE, MediaDecodingType: TYPE, MediaEncodingType: TYPE, @@ -486,9 +575,14 @@ export const webworker = { ServiceWorkerUpdateViaCache: TYPE, TransferFunction: TYPE, VideoColorPrimaries: TYPE, + VideoEncoderBitrateMode: TYPE, VideoMatrixCoefficients: TYPE, + VideoPixelFormat: TYPE, VideoTransferCharacteristics: TYPE, WebGLPowerPreference: TYPE, + WebTransportCongestionControl: TYPE, + WebTransportErrorSource: TYPE, WorkerType: TYPE, + WriteCommandType: TYPE, XMLHttpRequestResponseType: TYPE, } as Record; diff --git a/packages/scope-manager/tsconfig.spec.json b/packages/scope-manager/tsconfig.spec.json index 6e3794651482..46896b9eaf3a 100644 --- a/packages/scope-manager/tsconfig.spec.json +++ b/packages/scope-manager/tsconfig.spec.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../../dist/out-tsc", - "module": "commonjs", + "module": "Node16", "types": ["jest", "node"] }, "exclude": ["tests/fixtures"], diff --git a/packages/types/src/lib.ts b/packages/types/src/lib.ts index bdd8348d24e2..6589a6b1a6e9 100644 --- a/packages/types/src/lib.ts +++ b/packages/types/src/lib.ts @@ -4,89 +4,94 @@ // npx nx generate-lib @typescript-eslint/scope-manager type Lib = - | 'decorators.legacy' - | 'decorators' - | 'dom.iterable' - | 'dom' | 'es5' | 'es6' + | 'es2015' | 'es7' - | 'es2015.collection' + | 'es2016' + | 'es2017' + | 'es2018' + | 'es2019' + | 'es2020' + | 'es2021' + | 'es2022' + | 'es2023' + | 'esnext' + | 'dom' + | 'dom.iterable' + | 'webworker' + | 'webworker.importscripts' + | 'webworker.iterable' + | 'scripthost' | 'es2015.core' + | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' - | 'es2015.symbol.wellknown' | 'es2015.symbol' - | 'es2015' + | 'es2015.symbol.wellknown' | 'es2016.array.include' - | 'es2016.full' - | 'es2016' - | 'es2017.full' - | 'es2017.intl' + | 'es2017.date' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' + | 'es2017.intl' | 'es2017.typedarrays' - | 'es2017' | 'es2018.asyncgenerator' | 'es2018.asynciterable' - | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' - | 'es2018' | 'es2019.array' - | 'es2019.full' - | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' - | 'es2019' + | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' - | 'es2020.full' - | 'es2020.intl' - | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' - | 'es2020' - | 'es2021.full' - | 'es2021.intl' + | 'es2020.intl' + | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' - | 'es2021' + | 'es2021.intl' | 'es2022.array' | 'es2022.error' - | 'es2022.full' | 'es2022.intl' | 'es2022.object' - | 'es2022.regexp' | 'es2022.sharedmemory' | 'es2022.string' - | 'es2022' + | 'es2022.regexp' | 'es2023.array' - | 'es2023.full' - | 'es2023' + | 'es2023.collection' | 'esnext.array' + | 'esnext.collection' + | 'esnext.symbol' | 'esnext.asynciterable' - | 'esnext.bigint' - | 'esnext.full' | 'esnext.intl' - | 'esnext.promise' + | 'esnext.disposable' + | 'esnext.bigint' | 'esnext.string' - | 'esnext.symbol' + | 'esnext.promise' | 'esnext.weakref' - | 'esnext' - | 'lib' - | 'scripthost' - | 'webworker.importscripts' - | 'webworker.iterable' - | 'webworker'; + | 'esnext.decorators' + | 'decorators' + | 'decorators.legacy' + | 'es2016.full' + | 'es2017.full' + | 'es2018.full' + | 'es2019.full' + | 'es2020.full' + | 'es2021.full' + | 'es2022.full' + | 'es2023.full' + | 'esnext.full' + | 'lib'; export { Lib }; diff --git a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts index 57009bd01982..1bc33c89542f 100644 --- a/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts +++ b/packages/typescript-estree/src/parseSettings/warnAboutTSVersion.ts @@ -12,7 +12,7 @@ const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.2.0'; * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one * List them all separately here, so we can automatically create the full string */ -const SUPPORTED_PRERELEASE_RANGES: string[] = []; +const SUPPORTED_PRERELEASE_RANGES: string[] = ['5.2.1-rc']; const ACTIVE_TYPESCRIPT_VERSION = ts.version; const isRunningSupportedTypeScriptVersion = semver.satisfies( ACTIVE_TYPESCRIPT_VERSION, diff --git a/packages/typescript-estree/src/version-check.ts b/packages/typescript-estree/src/version-check.ts index b4bc633753f3..03b664401a92 100644 --- a/packages/typescript-estree/src/version-check.ts +++ b/packages/typescript-estree/src/version-check.ts @@ -20,6 +20,8 @@ const versions = [ '4.8', '4.9', '5.0', + '5.1', + '5.2', ] as const; type Versions = typeof versions extends ArrayLike ? U : never; diff --git a/patches/typescript+5.1.6.patch b/patches/typescript+5.2.1-rc.patch similarity index 88% rename from patches/typescript+5.1.6.patch rename to patches/typescript+5.2.1-rc.patch index e5b64b9a6252..765339eee26d 100644 --- a/patches/typescript+5.1.6.patch +++ b/patches/typescript+5.2.1-rc.patch @@ -1,18 +1,18 @@ diff --git a/node_modules/typescript/lib/typescript.d.ts b/node_modules/typescript/lib/typescript.d.ts -index ff7896e..1b85a0b 100644 +index ead6d07..75b1757 100644 --- a/node_modules/typescript/lib/typescript.d.ts +++ b/node_modules/typescript/lib/typescript.d.ts -@@ -370,8 +370,8 @@ declare namespace ts { - JSDocFunctionType = 323, - JSDocVariadicType = 324, - JSDocNamepathType = 325, +@@ -371,8 +371,8 @@ declare namespace ts { + JSDocFunctionType = 324, + JSDocVariadicType = 325, + JSDocNamepathType = 326, + /** @deprecated This was only added in 4.7 */ - JSDoc = 326, + JSDoc = 327, - /** @deprecated Use SyntaxKind.JSDoc */ - JSDocComment = 326, - JSDocText = 327, - JSDocTypeLiteral = 328, -@@ -734,6 +734,8 @@ declare namespace ts { + JSDocComment = 327, + JSDocText = 328, + JSDocTypeLiteral = 329, +@@ -738,6 +738,8 @@ declare namespace ts { readonly name: PropertyName; readonly questionToken?: QuestionToken; readonly type?: TypeNode; @@ -21,7 +21,7 @@ index ff7896e..1b85a0b 100644 } interface PropertyDeclaration extends ClassElement, JSDocContainer { readonly kind: SyntaxKind.PropertyDeclaration; -@@ -759,6 +761,10 @@ declare namespace ts { +@@ -763,6 +765,10 @@ declare namespace ts { readonly parent: ObjectLiteralExpression; readonly name: PropertyName; readonly initializer: Expression; @@ -32,7 +32,7 @@ index ff7896e..1b85a0b 100644 } interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { readonly kind: SyntaxKind.ShorthandPropertyAssignment; -@@ -766,6 +772,12 @@ declare namespace ts { +@@ -770,6 +776,12 @@ declare namespace ts { readonly name: Identifier; readonly equalsToken?: EqualsToken; readonly objectAssignmentInitializer?: Expression; @@ -45,7 +45,7 @@ index ff7896e..1b85a0b 100644 } interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { readonly kind: SyntaxKind.SpreadAssignment; -@@ -888,6 +900,8 @@ declare namespace ts { +@@ -892,6 +904,8 @@ declare namespace ts { } interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { readonly kind: SyntaxKind.FunctionType; @@ -54,7 +54,7 @@ index ff7896e..1b85a0b 100644 } interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { readonly kind: SyntaxKind.ConstructorType; -@@ -4570,7 +4584,13 @@ declare namespace ts { +@@ -4584,7 +4598,13 @@ declare namespace ts { function symbolName(symbol: Symbol): string; function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined; function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined; @@ -68,7 +68,7 @@ index ff7896e..1b85a0b 100644 function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; /** * Gets the JSDoc parameter tags for the node if present. -@@ -5096,7 +5116,13 @@ declare namespace ts { +@@ -5110,7 +5130,13 @@ declare namespace ts { function isModuleName(node: Node): node is ModuleName; function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken; function setTextRange(range: T, location: TextRange | undefined): T; diff --git a/yarn.lock b/yarn.lock index 06401f92c8ce..24b427f5febf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3683,10 +3683,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.76": version "1.3.76" @@ -3699,25 +3701,32 @@ integrity sha512-tcySTDqs0SHCebtW35sCdcLWsmTEo7bEwx0gNL/spetqVT9fpFi6qU8qcnt7i2KaZHbeNl9g1aadu+Yrni+GzA== "@swc/core-freebsd-x64@link:./tools/dummypkg": - version "1.0.0" + version "0.0.0" + uid "" "@swc/core-linux-arm-gnueabihf@1.3.76": - 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.76": - 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.76": - 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.76": version "1.3.76" @@ -3730,16 +3739,20 @@ integrity sha512-a671g4tW8kyFeuICsgq4uB9ukQfiIyXJT4V6YSnmqhCTz5mazWuDxZ5wKnx/1g5nXTl+U5cWH2TZaCJatp4GKA== "@swc/core-win32-arm64-msvc@1.3.76": - 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.76": - 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.76": version "1.3.76" @@ -3901,10 +3914,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" @@ -3914,16 +3929,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" @@ -14667,10 +14686,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@*, typescript@5.1.6, "typescript@>=3 < 6", "typescript@>=4.3.5 <5.2.0", typescript@next, typescript@~5.0.4: - version "5.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" - integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== +typescript@*, typescript@5.2.1-rc, "typescript@>=3 < 6", "typescript@>=4.3.5 <5.2.0 || 5.2.1-rc", typescript@next, typescript@~5.0.4: + version "5.2.1-rc" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.1-rc.tgz#9cf33ff6bc39ba9e1fa59761124f596ecf5e0c07" + integrity sha512-gsOdmedQZEWLrYhNqHuzPmcV+4wX7UujzYqszDC5mVMjcN6Nm7lN2eAtndmjWl24aGdAwJqL2ooywkxpaTx8QQ== ua-parser-js@^0.7.30: version "0.7.31" From 14bea42e4864c72d28f502e0d15e675fe8bd729a Mon Sep 17 00:00:00 2001 From: "typescript-eslint[bot]" Date: Mon, 14 Aug 2023 17:14:51 +0000 Subject: [PATCH 23/23] chore: publish v6.4.0 --- CHANGELOG.md | 23 +++++++++++++++++++ lerna.json | 2 +- packages/ast-spec/CHANGELOG.md | 13 +++++++++++ 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 | 14 +++++++++++ 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 | 13 +++++++++++ packages/scope-manager/package.json | 8 +++---- packages/type-utils/CHANGELOG.md | 10 ++++++++ packages/type-utils/package.json | 8 +++---- packages/types/CHANGELOG.md | 13 +++++++++++ packages/types/package.json | 2 +- packages/typescript-estree/CHANGELOG.md | 18 +++++++++++++++ packages/typescript-estree/package.json | 6 ++--- packages/utils/CHANGELOG.md | 15 ++++++++++++ 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, 283 insertions(+), 64 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 264c6c7ffda1..fd0393f44f7c 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Bug Fixes + +* **eslint-plugin:** [non-nullable-type-assertion-style] consider operator precedence when fixing ([#7289](https://github.com/typescript-eslint/typescript-eslint/issues/7289)) ([bad37a2](https://github.com/typescript-eslint/typescript-eslint/commit/bad37a22025b718a10e70cc84b9847eb41f723d0)) +* **eslint-plugin:** [strict-boolean-expressions] replace dangerous fixer with suggestions ([#7394](https://github.com/typescript-eslint/typescript-eslint/issues/7394)) ([ad8401a](https://github.com/typescript-eslint/typescript-eslint/commit/ad8401a5970441258cc4440a01a3acf35d861171)) +* **typescript-estree:** support `declare` and `export` modifiers for nested namespace declaration ([#7410](https://github.com/typescript-eslint/typescript-eslint/issues/7410)) ([49a53f0](https://github.com/typescript-eslint/typescript-eslint/commit/49a53f0ba985941a431269d3761030dc414916b1)) +* **utils:** add new properties since eslint 8.40.0 ([#7460](https://github.com/typescript-eslint/typescript-eslint/issues/7460)) ([660aff7](https://github.com/typescript-eslint/typescript-eslint/commit/660aff7253e2930311eac54a49f31b0367bf1485)) +* **utils:** add to JSONSchema4Type missing Array and Object ([#7406](https://github.com/typescript-eslint/typescript-eslint/issues/7406)) ([60df0bb](https://github.com/typescript-eslint/typescript-eslint/commit/60df0bbafb6247341784dfbdf932585eac88b637)), closes [/github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/json-schema/index.d.ts#L30](https://github.com//github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/json-schema/index.d.ts/issues/L30) +* **utils:** remove deprecate tag added in [#7460](https://github.com/typescript-eslint/typescript-eslint/issues/7460) ([#7463](https://github.com/typescript-eslint/typescript-eslint/issues/7463)) ([c225b12](https://github.com/typescript-eslint/typescript-eslint/commit/c225b1215177b6de4c5131b950361b9ab4ba200e)) + + +### Features + +* update to lib types for TS 5.2 RC ([#7451](https://github.com/typescript-eslint/typescript-eslint/issues/7451)) ([479f9f6](https://github.com/typescript-eslint/typescript-eslint/commit/479f9f6c053874bd584220edf594ec56d6b0b71a)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) diff --git a/lerna.json b/lerna.json index ca63dc1514ce..174561083281 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "6.3.0", + "version": "6.4.0", "npmClient": "yarn", "stream": true, "command": { diff --git a/packages/ast-spec/CHANGELOG.md b/packages/ast-spec/CHANGELOG.md index 247aa37ab2a9..1b58fe348413 100644 --- a/packages/ast-spec/CHANGELOG.md +++ b/packages/ast-spec/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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Bug Fixes + +* **typescript-estree:** support `declare` and `export` modifiers for nested namespace declaration ([#7410](https://github.com/typescript-eslint/typescript-eslint/issues/7410)) ([49a53f0](https://github.com/typescript-eslint/typescript-eslint/commit/49a53f0ba985941a431269d3761030dc414916b1)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 df79be75798e..70022cee46e3 100644 --- a/packages/ast-spec/package.json +++ b/packages/ast-spec/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/ast-spec", - "version": "6.3.0", + "version": "6.4.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 b1bd897b6902..5c7e324f9724 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 8dd026f25f50..bdd5b9c90bf3 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.3.0", + "version": "6.4.0", "private": true, "main": "dist/index.js", "scripts": { @@ -14,10 +14,10 @@ }, "dependencies": { "@types/prettier": "*", - "@typescript-eslint/rule-tester": "6.3.0", - "@typescript-eslint/scope-manager": "6.3.0", - "@typescript-eslint/type-utils": "6.3.0", - "@typescript-eslint/utils": "6.3.0", + "@typescript-eslint/rule-tester": "6.4.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/type-utils": "6.4.0", + "@typescript-eslint/utils": "6.4.0", "prettier": "*" } } diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md index ead11f683960..91ae05b2dc49 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json index fd3ecbdbbc58..85cea747ee4d 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.3.0", + "version": "6.4.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.3.0" + "@typescript-eslint/utils": "6.4.0" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0", @@ -54,7 +54,7 @@ "typescript": "*" }, "devDependencies": { - "@typescript-eslint/parser": "6.3.0" + "@typescript-eslint/parser": "6.4.0" }, "funding": { "type": "opencollective", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index aefd7fbc9235..29c15340bc55 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Bug Fixes + +* **eslint-plugin:** [non-nullable-type-assertion-style] consider operator precedence when fixing ([#7289](https://github.com/typescript-eslint/typescript-eslint/issues/7289)) ([bad37a2](https://github.com/typescript-eslint/typescript-eslint/commit/bad37a22025b718a10e70cc84b9847eb41f723d0)) +* **eslint-plugin:** [strict-boolean-expressions] replace dangerous fixer with suggestions ([#7394](https://github.com/typescript-eslint/typescript-eslint/issues/7394)) ([ad8401a](https://github.com/typescript-eslint/typescript-eslint/commit/ad8401a5970441258cc4440a01a3acf35d861171)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index cb9eee73ff10..8489e1203f52 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/eslint-plugin", - "version": "6.3.0", + "version": "6.4.0", "description": "TypeScript plugin for ESLint", "files": [ "dist", @@ -57,10 +57,10 @@ }, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.3.0", - "@typescript-eslint/type-utils": "6.3.0", - "@typescript-eslint/utils": "6.3.0", - "@typescript-eslint/visitor-keys": "6.3.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/type-utils": "6.4.0", + "@typescript-eslint/utils": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -73,8 +73,8 @@ "@types/marked": "*", "@types/natural-compare": "*", "@types/prettier": "*", - "@typescript-eslint/rule-schema-to-typescript-types": "6.3.0", - "@typescript-eslint/rule-tester": "6.3.0", + "@typescript-eslint/rule-schema-to-typescript-types": "6.4.0", + "@typescript-eslint/rule-tester": "6.4.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 e9f78a7fce08..2e342d0f05bc 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/integration-tests diff --git a/packages/integration-tests/package.json b/packages/integration-tests/package.json index 639b95b706f6..68c4dd98d0ce 100644 --- a/packages/integration-tests/package.json +++ b/packages/integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/integration-tests", - "version": "6.3.0", + "version": "6.4.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 07855153a208..c7bc87b24286 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/parser diff --git a/packages/parser/package.json b/packages/parser/package.json index 4ed91c8a7f1e..d9b672b122a0 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/parser", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/types": "6.3.0", - "@typescript-eslint/typescript-estree": "6.3.0", - "@typescript-eslint/visitor-keys": "6.3.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0", "debug": "^4.3.4" }, "devDependencies": { diff --git a/packages/repo-tools/CHANGELOG.md b/packages/repo-tools/CHANGELOG.md index dac8349b47f4..6aec7094f82c 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 fbf98418986e..4652adab588d 100644 --- a/packages/repo-tools/package.json +++ b/packages/repo-tools/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/repo-tools", - "version": "6.3.0", + "version": "6.4.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 76ec59af5001..0ce33ce399c8 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/rule-schema-to-typescript-types diff --git a/packages/rule-schema-to-typescript-types/package.json b/packages/rule-schema-to-typescript-types/package.json index 154a097d0900..4232f01190a9 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.3.0", + "version": "6.4.0", "private": true, "type": "commonjs", "exports": { @@ -33,8 +33,8 @@ "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { - "@typescript-eslint/type-utils": "6.3.0", - "@typescript-eslint/utils": "6.3.0", + "@typescript-eslint/type-utils": "6.4.0", + "@typescript-eslint/utils": "6.4.0", "natural-compare": "^1.4.0", "prettier": "*" }, diff --git a/packages/rule-tester/CHANGELOG.md b/packages/rule-tester/CHANGELOG.md index df67a1d835b7..cb6dee49be86 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/rule-tester diff --git a/packages/rule-tester/package.json b/packages/rule-tester/package.json index 0eb0bf5326f6..d51c96d27514 100644 --- a/packages/rule-tester/package.json +++ b/packages/rule-tester/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/rule-tester", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/utils": "6.3.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/utils": "6.4.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.3.0", + "@typescript-eslint/parser": "6.4.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 1fd4035529e4..863de237ac15 100644 --- a/packages/scope-manager/CHANGELOG.md +++ b/packages/scope-manager/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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Features + +* update to lib types for TS 5.2 RC ([#7451](https://github.com/typescript-eslint/typescript-eslint/issues/7451)) ([479f9f6](https://github.com/typescript-eslint/typescript-eslint/commit/479f9f6c053874bd584220edf594ec56d6b0b71a)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 176a79637b58..affdc0f9801e 100644 --- a/packages/scope-manager/package.json +++ b/packages/scope-manager/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/scope-manager", - "version": "6.3.0", + "version": "6.4.0", "description": "TypeScript scope analyser for ESLint", "files": [ "dist", @@ -44,12 +44,12 @@ "typecheck": "nx typecheck" }, "dependencies": { - "@typescript-eslint/types": "6.3.0", - "@typescript-eslint/visitor-keys": "6.3.0" + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.0" }, "devDependencies": { "@types/glob": "*", - "@typescript-eslint/typescript-estree": "6.3.0", + "@typescript-eslint/typescript-estree": "6.4.0", "glob": "*", "jest-specific-snapshot": "*", "make-dir": "*", diff --git a/packages/type-utils/CHANGELOG.md b/packages/type-utils/CHANGELOG.md index b8ce7226646f..7eefc95d80e1 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/type-utils diff --git a/packages/type-utils/package.json b/packages/type-utils/package.json index a357a419f74a..04cc9fa65bef 100644 --- a/packages/type-utils/package.json +++ b/packages/type-utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/type-utils", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/utils": "6.3.0", + "@typescript-eslint/typescript-estree": "6.4.0", + "@typescript-eslint/utils": "6.4.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, "devDependencies": { - "@typescript-eslint/parser": "6.3.0", + "@typescript-eslint/parser": "6.4.0", "ajv": "^8.12.0", "typescript": "*" }, diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 0d17e5a12c94..10893a7cbe9e 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Features + +* update to lib types for TS 5.2 RC ([#7451](https://github.com/typescript-eslint/typescript-eslint/issues/7451)) ([479f9f6](https://github.com/typescript-eslint/typescript-eslint/commit/479f9f6c053874bd584220edf594ec56d6b0b71a)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/types diff --git a/packages/types/package.json b/packages/types/package.json index 9035938c560e..201a4ac5a3e8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/types", - "version": "6.3.0", + "version": "6.4.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 7c83897cc4fd..e61791715ea7 100644 --- a/packages/typescript-estree/CHANGELOG.md +++ b/packages/typescript-estree/CHANGELOG.md @@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Bug Fixes + +* **typescript-estree:** support `declare` and `export` modifiers for nested namespace declaration ([#7410](https://github.com/typescript-eslint/typescript-eslint/issues/7410)) ([49a53f0](https://github.com/typescript-eslint/typescript-eslint/commit/49a53f0ba985941a431269d3761030dc414916b1)) + + +### Features + +* update to lib types for TS 5.2 RC ([#7451](https://github.com/typescript-eslint/typescript-eslint/issues/7451)) ([479f9f6](https://github.com/typescript-eslint/typescript-eslint/commit/479f9f6c053874bd584220edf594ec56d6b0b71a)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/typescript-estree diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json index 49c36a30d441..1169aaf09ff9 100644 --- a/packages/typescript-estree/package.json +++ b/packages/typescript-estree/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/typescript-estree", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/visitor-keys": "6.3.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/visitor-keys": "6.4.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 f30636b783e0..e8a1a219ef0c 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -3,6 +3,21 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [6.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + + +### Bug Fixes + +* **utils:** add new properties since eslint 8.40.0 ([#7460](https://github.com/typescript-eslint/typescript-eslint/issues/7460)) ([660aff7](https://github.com/typescript-eslint/typescript-eslint/commit/660aff7253e2930311eac54a49f31b0367bf1485)) +* **utils:** add to JSONSchema4Type missing Array and Object ([#7406](https://github.com/typescript-eslint/typescript-eslint/issues/7406)) ([60df0bb](https://github.com/typescript-eslint/typescript-eslint/commit/60df0bbafb6247341784dfbdf932585eac88b637)), closes [/github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/json-schema/index.d.ts#L30](https://github.com//github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/json-schema/index.d.ts/issues/L30) +* **utils:** remove deprecate tag added in [#7460](https://github.com/typescript-eslint/typescript-eslint/issues/7460) ([#7463](https://github.com/typescript-eslint/typescript-eslint/issues/7463)) ([c225b12](https://github.com/typescript-eslint/typescript-eslint/commit/c225b1215177b6de4c5131b950361b9ab4ba200e)) + +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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package @typescript-eslint/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 288fbd4a1d82..fa65dbd500c5 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/utils", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/types": "6.3.0", - "@typescript-eslint/typescript-estree": "6.3.0", + "@typescript-eslint/scope-manager": "6.4.0", + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/typescript-estree": "6.4.0", "semver": "^7.5.4" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0" }, "devDependencies": { - "@typescript-eslint/parser": "6.3.0", + "@typescript-eslint/parser": "6.4.0", "typescript": "*" }, "funding": { diff --git a/packages/visitor-keys/CHANGELOG.md b/packages/visitor-keys/CHANGELOG.md index 18e71ac2e580..825e8fd09884 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 a0c199b0c4be..d561d1cc8626 100644 --- a/packages/visitor-keys/package.json +++ b/packages/visitor-keys/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/visitor-keys", - "version": "6.3.0", + "version": "6.4.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.3.0", + "@typescript-eslint/types": "6.4.0", "eslint-visitor-keys": "^3.4.1" }, "devDependencies": { diff --git a/packages/website-eslint/CHANGELOG.md b/packages/website-eslint/CHANGELOG.md index d72dc6087ccb..5acd49445bcc 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **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 384a0b0f81f1..2e5233b105ef 100644 --- a/packages/website-eslint/package.json +++ b/packages/website-eslint/package.json @@ -1,6 +1,6 @@ { "name": "@typescript-eslint/website-eslint", - "version": "6.3.0", + "version": "6.4.0", "private": true, "description": "ESLint which works in browsers.", "files": [ @@ -23,18 +23,18 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@typescript-eslint/types": "6.3.0", - "@typescript-eslint/utils": "6.3.0" + "@typescript-eslint/types": "6.4.0", + "@typescript-eslint/utils": "6.4.0" }, "devDependencies": { "@eslint/js": "8.46.0", - "@typescript-eslint/eslint-plugin": "6.3.0", - "@typescript-eslint/parser": "6.3.0", - "@typescript-eslint/scope-manager": "6.3.0", + "@typescript-eslint/eslint-plugin": "6.4.0", + "@typescript-eslint/parser": "6.4.0", + "@typescript-eslint/scope-manager": "6.4.0", "@typescript-eslint/types": "6.0.0", - "@typescript-eslint/typescript-estree": "6.3.0", + "@typescript-eslint/typescript-estree": "6.4.0", "@typescript-eslint/utils": "6.0.0", - "@typescript-eslint/visitor-keys": "6.3.0", + "@typescript-eslint/visitor-keys": "6.4.0", "esbuild": "~0.19.0", "eslint": "*", "esquery": "*", diff --git a/packages/website/CHANGELOG.md b/packages/website/CHANGELOG.md index c82c0af31db8..3f94b19f4698 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.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.3.0...v6.4.0) (2023-08-14) + +**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.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v6.2.1...v6.3.0) (2023-08-07) **Note:** Version bump only for package website diff --git a/packages/website/package.json b/packages/website/package.json index 6fc9eb7d0872..16e9e7023ea3 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "6.3.0", + "version": "6.4.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.3.0", - "@typescript-eslint/website-eslint": "6.3.0", + "@typescript-eslint/parser": "6.4.0", + "@typescript-eslint/website-eslint": "6.4.0", "clsx": "^2.0.0", "eslint": "*", "json-schema": "^0.4.0", @@ -52,9 +52,9 @@ "@types/react": "*", "@types/react-helmet": "^6.1.6", "@types/react-router-dom": "^5.3.3", - "@typescript-eslint/eslint-plugin": "6.3.0", - "@typescript-eslint/rule-schema-to-typescript-types": "6.3.0", - "@typescript-eslint/types": "6.3.0", + "@typescript-eslint/eslint-plugin": "6.4.0", + "@typescript-eslint/rule-schema-to-typescript-types": "6.4.0", + "@typescript-eslint/types": "6.4.0", "copy-webpack-plugin": "^11.0.0", "cross-fetch": "*", "globby": "^11.1.0", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy