Skip to content

Commit

Permalink
Update various eslint plugins (#40437)
Browse files Browse the repository at this point in the history
Notable changes include:

* `@typescript-eslint/ban-types` is split into some other rules,
  particularly `@typescript-eslint/no-unsafe-function-type`.
* `@typescript-eslint/no-unused-vars` now detects when a variable is
  only used by `typeof`, which can often be replaced.
* `@typescript-eslint/no-unused-vars` now flags `} catch ( e ) {` where
  the `e` isn't used in the catch block, as `} catch {` is allowed since
  ES2019.
* `@typescript-eslint/no-empty-object-type` by default now flags
  `interface Foo extends Bar {}`. Update the config to turn that back
  off.
* New rule `@typescript-eslint/no-require-imports` needs to be disabled
  for `.cjs` files.
* New rule `@typescript-eslint/no-unused-expressions` can replace
  `no-unused-expressions` even for JS files, so let's do that to avoid
  having to separately configure both with `allowShortCircuit` and
  `allowTernary`.

Also, added a pnpmfile hack so `@wordpress/eslint-plugin` won't bring in
an older version of `@typescript-eslint/parser`.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12148571247

Upstream-Ref: Automattic/jetpack@8e1d185
  • Loading branch information
anomiex authored and matticbot committed Dec 3, 2024
1 parent be0960e commit 4854658
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 98 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '040b28cf781b276c67f2');
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '813da8f0fc4843fc96a5');
4 changes: 2 additions & 2 deletions jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
),
'jetpack-my-jetpack' => array(
'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
'ver' => '5.1.1-alpha1733172894',
'ver' => '5.1.1-alpha1733261868',
),
'jetpack-password-checker' => array(
'path' => 'jetpack_vendor/automattic/jetpack-password-checker',
Expand Down
62 changes: 31 additions & 31 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
"reference": "939df6276e200e4f3eb6143babd644ca7d0d323b"
"reference": "08242e7e93f0865fb8d0d2a949e1ee599ed78fa8"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -63,7 +63,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
"reference": "4122361d5acf5067ddd6d6ba34e0e135803f68db"
"reference": "c3b99884f1e3c6cefe2de04d79fd7db7d9a3114a"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -131,7 +131,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
"reference": "afdacebb25b53246da4d19f126cd4de05f98809c"
"reference": "cfdfcd36356e1e96746d623af37c6c8fc20ef767"
},
"require": {
"automattic/jetpack-constants": "^3.0.1",
Expand Down Expand Up @@ -203,7 +203,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
"reference": "e793f4023cf60313b69ec2f16f53c6d4e7d69585"
"reference": "bc766c15dddecab720f70c141782a7cb5a7daa20"
},
"require": {
"composer-plugin-api": "^2.2",
Expand Down Expand Up @@ -274,7 +274,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-backup-helper-script-manager",
"reference": "4855860c11c6d156a783e88daa7cd002734270ab"
"reference": "2806bb612b329ee32e1f29ea38d8ee8f0f37a0b7"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -337,7 +337,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
"reference": "9dd88b458d055e1b8077f47440f090d3eb669727"
"reference": "d54f9f7a5771efbe18d58975e1242f48ea40398b"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -408,7 +408,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
"reference": "7b5f2a788bcd0b9de5795a95e14da02636e6f9e7"
"reference": "fef6df4ade96424411ac4433055b763351e4f347"
},
"require": {
"automattic/jetpack-boost-core": "^0.3.2",
Expand Down Expand Up @@ -487,7 +487,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
"reference": "c38b6c89bec317117e26af1c4f09b18257eed312"
"reference": "7706228da3f64b4cd85557d0c14bffbebf78cf2a"
},
"require": {
"composer-plugin-api": "^2.2",
Expand Down Expand Up @@ -550,7 +550,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
"reference": "f39e23f9b70b27ea3f033dd6fc512579adeace9b"
"reference": "3e95243c19b0e0a25fde434fb53dcf6a2c4a1625"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -625,7 +625,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
"reference": "6e0e548d75baa7bc9dcd2b9456a3806ad9f04d58"
"reference": "a4259ff07ce9c7fabef12b3e594f1769300371fe"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -718,7 +718,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
"reference": "d0d983c52afe1f2070f2a9ac4294a01fa55245ca"
"reference": "ddec853846d8fb161a4428df2c49d2a992f49111"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -775,7 +775,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
"reference": "d75bb195fedb502cb660ebf24c732f859c1ca501"
"reference": "356a0f95d571789506eb0a684668a10d3895dfa9"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -831,7 +831,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
"reference": "125b297a7f6c529a310916906dfa67a498594300"
"reference": "39607ffbee8efe9e3bffb9979045331b06df1269"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -909,7 +909,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
"reference": "02d4b6bbb990f7e93492b23b8e328d28a85d08ce"
"reference": "f5d27f15fce94c50f3c32c7bb28d1777d549d595"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -970,7 +970,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
"reference": "02441c9f206d8313fa4170a08f21940f5ad9f254"
"reference": "a31454017cc2dea2505918c131ba48b7a49c4640"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -1048,7 +1048,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
"reference": "65a5e45d7e6749a27f6265d54055323ffa60306a"
"reference": "b1d8c90e96cd1f5cf4f119606091c74ca34d1700"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1113,7 +1113,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
"reference": "2118195fdb4ce16d43507e10ced26b3ffe8d576d"
"reference": "6d1d1a9bb75427eef580d88c38b8f3feb5621430"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1164,12 +1164,12 @@
},
{
"name": "automattic/jetpack-my-jetpack",
"version": "5.1.1-alpha.1733172894",
"version_normalized": "5.1.1.0-alpha1733172894",
"version": "5.1.1-alpha.1733261868",
"version_normalized": "5.1.1.0-alpha1733261868",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
"reference": "5f462a66515f4613f32a7dc18d4713175d4380e2"
"reference": "b62464f46e72563c20f795434d035b5fdbcfd76e"
},
"require": {
"automattic/jetpack-admin-ui": "^0.5.1",
Expand Down Expand Up @@ -1274,7 +1274,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
"reference": "c645d5c866afcfe3472fded0e6ecca39a74ad062"
"reference": "d6a4d0ff66acb057f14385a81cad207bce6b2ff0"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1338,7 +1338,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
"reference": "5cd3cbb80d6d8ca0bcb12c31dbf0f2c114c628a8"
"reference": "3379e63d874805a646b3ab5b9d823e2058bac452"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1409,7 +1409,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
"reference": "b7a98993660229ea807fef25fab9d8dc88323d96"
"reference": "c1dbcb1c5d2740c65d8db7eee1cf49958a010306"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -1468,7 +1468,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
"reference": "f6550bc6c17e4c8cd3a457756013105d49fbb32b"
"reference": "ef3003f5104ee8b11d080be6647e00492d53c9a3"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1541,7 +1541,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
"reference": "6d22d3f7a6549114a7920279632559c40f99321a"
"reference": "320973de8583088f47a937a3c37ce75ed039c7b3"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1619,7 +1619,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
"reference": "bef2f40b3b9df7ca171719fe89cb3cee38ed72be"
"reference": "42fbc7d68009179c93291ee80599250d5bb60f06"
},
"require": {
"automattic/jetpack-status": "^5.0.1",
Expand Down Expand Up @@ -1677,7 +1677,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
"reference": "5e74591e70b08f68d2744af007ed1c4f10571e4e"
"reference": "789c071cc4abebf4900a1e9565eb7c00e6e4989b"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1734,7 +1734,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
"reference": "5df8e272399c4acf5871fb6e08d9360545987350"
"reference": "aaa7730de1da48acca90cbe8ebc746e89de4f3d5"
},
"require": {
"automattic/jetpack-constants": "^3.0.1",
Expand Down Expand Up @@ -1801,7 +1801,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
"reference": "1bb0b7cdb87a110ca45d7436190cf8ddba1d4dd2"
"reference": "4a4e1025caea13a89e315a1ae1eabd91e9ea7756"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1882,7 +1882,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-transport-helper",
"reference": "90806ed4e7de2d35f44aa6b7484d6f6bc7faec62"
"reference": "eb185bf6aa946365f3b0a614d6693c80c27b181c"
},
"require": {
"automattic/jetpack-backup-helper-script-manager": "^0.3.1",
Expand Down Expand Up @@ -1960,7 +1960,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-waf",
"reference": "97e68d4204500a0d0b932ba5646f5792b29b5ce7"
"reference": "909cc4f551c43a82618f0c932a822a2a5a250c4f"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down
Loading

0 comments on commit 4854658

Please sign in to comment.