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 4680890 commit 4c015f0
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 96 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
60 changes: 30 additions & 30 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": "b8cf523f51d3f845a89707b064a18c433d574b1f"
"reference": "ebb35eb06dfb45b09c7fa7bd908f41f02c3e406b"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -63,7 +63,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
"reference": "07f1354a559170270b1cf5ea77fe3f8f3376850d"
"reference": "6a39fe7af106fe4a58303d1de9777c95547448a7"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -131,7 +131,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
"reference": "a5456e964cea110b54df23dd6ced38a46f3d82e1"
"reference": "747e3311531bad0d86ceaf8965221d8b39c90dc0"
},
"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": "ddd4df4a986e425ed17f694d55a6f22b068c96d3"
"reference": "8515366b55e512a720e7aa118c702d7538c69c19"
},
"require": {
"composer-plugin-api": "^2.2",
Expand Down Expand Up @@ -274,7 +274,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
"reference": "555075f39ddd23c0973633cb9743ed36fc06d6f8"
"reference": "77a4098f693088ad6080aa2f58dafe006423ff9a"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -345,7 +345,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
"reference": "f806944089877b684e21441c9217a18167ec97bc"
"reference": "c931662f3d3f4210a37a02f5ac3bb125e4ab4a2b"
},
"require": {
"automattic/jetpack-boost-core": "^0.3.2",
Expand Down Expand Up @@ -424,7 +424,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
"reference": "11640ce590a9b926dc15e3f74125783a57b0f139"
"reference": "6413086a879f9709e9bc2e622b76b04a5656e787"
},
"require": {
"composer-plugin-api": "^2.2",
Expand Down Expand Up @@ -487,7 +487,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
"reference": "245311c8c259e23e30217d126375e6411b46bb43"
"reference": "4bb64ca65328753f7a7aff786d5990893b84c591"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -562,7 +562,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
"reference": "5d6c6c4c6826069a44256456fd2f74b482d480f7"
"reference": "d1688854a6b07de641b6df23f5fbf6c4ab1cabf8"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -655,7 +655,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
"reference": "67d27b979bf7db7800063814b58907bc124d3896"
"reference": "7341f1260f1a8bd17c9fc1cb58f8caec34e29812"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -712,7 +712,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
"reference": "d2e5e6fe1dff6f74d354602980060f7a8499707e"
"reference": "afa25842c3adb378183a49184161d99d154e19f2"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -768,7 +768,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
"reference": "6047947b5be1542d4cbb45016a035827df8aaa46"
"reference": "9070e634fc77a597d23b3efe2151ae031251071c"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -846,7 +846,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
"reference": "60d2af70280cb80c1c021dbd08232eb73c6fa442"
"reference": "5a836230ad7dbbd63ca8a7020c16e66730599e98"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -907,7 +907,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
"reference": "5523c22d92434d6074c34c841728e018eba90a12"
"reference": "f47340cf05d68901b89d5de0a3e3df57790c665a"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -985,7 +985,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
"reference": "90f367855345f1c4f4202ffca3238d41ef9956c7"
"reference": "383a99cfe1991a92e55269bc9a6b3367a9ca73e2"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1050,7 +1050,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
"reference": "a9817d7ad0cecd6da98d47355fea625e900311ff"
"reference": "65630791b6e4de3c0746913f0e757eef34bf0f95"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1101,12 +1101,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": "68185e275a29ad469faa3cfb8c87d85611f321c0"
"reference": "53514c61d87d40f931495e072293371893500afc"
},
"require": {
"automattic/jetpack-admin-ui": "^0.5.1",
Expand Down Expand Up @@ -1211,7 +1211,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
"reference": "b9f09734e6b36e6625078b66d8d316e983a9443e"
"reference": "1a1076749faf8488cbeebef2119b12554eb8c5d0"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1275,7 +1275,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
"reference": "b9ab1355051d4d7b462aa08fec98958b1ea084ef"
"reference": "15d4fcb472fdd31b69240c7a8fb9871500add084"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1346,7 +1346,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
"reference": "f83d3155b89ffe61c2b108e044c10f02d4acc547"
"reference": "4e3a0330bbb141b778b24e6d62ac30d10f1fd07e"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -1405,7 +1405,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
"reference": "b6abb78f290acc058b7242806a8cd514eb5fa1b0"
"reference": "7f61e168b65b728ae0d8f1feeefde7bc6e431875"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1478,7 +1478,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
"reference": "9fcd3d194610bed9948dff20acf07d1836497cd6"
"reference": "34db329fb4fffde60358be91779f7b95d0690167"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1556,7 +1556,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
"reference": "fe63e6e483e0b9585cc9528e54214c478880441c"
"reference": "c1b55324c0e2b36568811b62dd3cb49ca8f06b0d"
},
"require": {
"automattic/jetpack-status": "^5.0.1",
Expand Down Expand Up @@ -1614,7 +1614,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
"reference": "5f6eafd660628237aa310ff704a23e0955673265"
"reference": "496f7fb69c1ff18a49ffd8addb4bdbf10b5839a3"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1671,7 +1671,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-search",
"reference": "642d09f146027f7735a26153e6e758baa807d524"
"reference": "cd5da40c2432ed570ee13adf6ac0e776cbb0676c"
},
"require": {
"automattic/jetpack-assets": "^4.0.1-alpha",
Expand Down Expand Up @@ -1762,7 +1762,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-stats",
"reference": "4359299a2dbd1ed413fb8897f4f0df35bba75829"
"reference": "4d7f153a11fc69d6982de10bf7f09c0e56be44ee"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down Expand Up @@ -1832,7 +1832,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
"reference": "11b125a9db51a1744043f0cbc1f56dd78410644d"
"reference": "558cf19ccdc2437bd6b0247d33937c4666d933a7"
},
"require": {
"automattic/jetpack-constants": "^3.0.1",
Expand Down Expand Up @@ -1899,7 +1899,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
"reference": "e0163ecd0f1fa4cd803d564ce3067067009957cd"
"reference": "b2cad56f8db8b6ad714de7181ede1965eb520993"
},
"require": {
"automattic/jetpack-connection": "^6.1.1-alpha",
Expand Down
Loading

0 comments on commit 4c015f0

Please sign in to comment.