Skip to content

Commit

Permalink
Update ESLint config for TypeScript files (#40584)
Browse files Browse the repository at this point in the history
* Update ESLint config for TypeScript files

* Change no-undefined-types to warning

* Remove unsed eslint-disable

* Restore 'jsdoc/require-returns'

* Turn off jsdoc/no-undefined-types

* Fix lints caused by turning off "jsdoc/no-undefined-types"

* Clean up jetpack-mu-wpcom/eslint.config.mjs

* Add changelog

* Restore plugins/jetpack/.eslintignore

* Turn back jsdoc/no-undefined-types ON with disabled reporting

* Re-enable param rules for now

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

Upstream-Ref: Automattic/jetpack@9f6b920
  • Loading branch information
manzoorwanijk authored and matticbot committed Dec 16, 2024
1 parent f890492 commit 2f6714c
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 97 deletions.
1 change: 1 addition & 0 deletions jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final.
- Updated package dependencies.

### Fixed
- Fixed lints following ESLint rule changes for TS
- My Jetpack: fix animation flick on connection screen in My Jetpack.

## [5.1.1] - 2024-12-04
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
),
'jetpack-my-jetpack' => array(
'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
'ver' => '5.1.2-alpha1734008407',
'ver' => '5.1.2-alpha1734328265',
),
'jetpack-password-checker' => array(
'path' => 'jetpack_vendor/automattic/jetpack-password-checker',
Expand Down
64 changes: 32 additions & 32 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": "cc69b865894d336f160f6de92af80f3981441b8b"
"reference": "653688300108673a85bf4446f435f949ca72b937"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -63,7 +63,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
"reference": "2014b475004625c7bba1d726e7a99b222525b86e"
"reference": "7536e185b5183c025215711971531a63ec7407ad"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -131,7 +131,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
"reference": "fbe50222d09631455033cf4e1f1e2d506d35ebfe"
"reference": "9466a522961893ada51d83c6fa2e51030ed946df"
},
"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": "8265d6df1f32dd99aa2f7a47d923126f455078b2"
"reference": "1321870720ce44edbe77ff511e669afeeb53f07a"
},
"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": "d746d540c59a812810a47b05438026d419257eb1"
"reference": "d8e05586b8a5d256d52b4d20e6a19de56015c218"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -345,7 +345,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
"reference": "7b0c5ad69abe8f3c98679733869045b6af5200c0"
"reference": "412f2621e24be9bfa897d2fd975acc831f0c436c"
},
"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": "65526bb9e0677a4b6f980a90a57ef89fbecc7ffe"
"reference": "5fc04c96a220e8f3cbc9cdfafbad2374481a8fab"
},
"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": "390868c8ad07c69664d87ec02098bebab935798f"
"reference": "500b25aeab7758cb4ef65251debe198f655e91fd"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -562,7 +562,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
"reference": "29ee4fb9566df0f072caa8bfe5e3c0f32dc0528d"
"reference": "6e95ec61bdbe795d8414acb1f8ac1c1202d3e995"
},
"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": "82df146959b854d9d9ebb406c8113cee692bbd6a"
"reference": "eee30ff4eacbb39d51db6a9b480b591676be974a"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -712,7 +712,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
"reference": "a0350f3cc6084488ca5c5d3842783a667ce17f80"
"reference": "5911cc850873b313be4960f88fa1b0e5e2f11aba"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -768,7 +768,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
"reference": "cc9d53557d18e1ea3f005fea1da1697218fdb205"
"reference": "7a64406e59077a5466a2661900eb9d17f5cc861b"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -846,7 +846,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-image-cdn",
"reference": "08060adbf135c01a9e883801cc03f13fa4c18ff7"
"reference": "626ee77ecdaaa0bea2df20bfea7a7e8088cc023b"
},
"require": {
"automattic/jetpack-assets": "^4.0.2-alpha",
Expand Down Expand Up @@ -915,7 +915,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
"reference": "1dbe34f4970ba64e28c535bbf3c31ce632f890e4"
"reference": "afd251c7c89e81fc871b64760ad3c63f39130c33"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -976,7 +976,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
"reference": "095dd6c6db36f61e6e092a5a01bb02bc80be9190"
"reference": "3a4a8cdd82e66ff8c23dbc30d8be1da5ed1a6c7f"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -1054,7 +1054,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
"reference": "6e6adf416117b3d33b70b5bf09b09704bc5da721"
"reference": "f0348b60a5a77072fd8f2c209582d32b6d27f489"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -1119,7 +1119,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
"reference": "6306196704af44e6a3222cb7ee631f396688bafb"
"reference": "297828ad492e677d48e4ad6cd0875fbf3aae556c"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1170,12 +1170,12 @@
},
{
"name": "automattic/jetpack-my-jetpack",
"version": "5.1.2-alpha.1734008407",
"version_normalized": "5.1.2.0-alpha1734008407",
"version": "5.1.2-alpha.1734328265",
"version_normalized": "5.1.2.0-alpha1734328265",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
"reference": "40199dc4bc6adb996e22a18aeebd2e6453518f2e"
"reference": "cf3212ddf1175b32fb5ea1e4f3b38df30af2dbd2"
},
"require": {
"automattic/jetpack-admin-ui": "^0.5.1",
Expand Down Expand Up @@ -1280,7 +1280,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
"reference": "2ba725e04b118b802fecd7782c84226f587189ab"
"reference": "4e1602fc01068a3e70fe3215c591f7883464840b"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1344,7 +1344,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
"reference": "6009310f06d6b3385ea5e7670f876fea9c8ba292"
"reference": "804a4050713d1a91cd049f59e657b857cf9e0ec0"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -1415,7 +1415,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugin-deactivation",
"reference": "89b7799969e46766d07588191d12d55a23ce60f4"
"reference": "585e3714bea13d27398ccfea03ad758b3110cd46"
},
"require": {
"automattic/jetpack-assets": "^4.0.2-alpha",
Expand Down Expand Up @@ -1486,7 +1486,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
"reference": "950dd6dabd67947b989189f9d410edc3d4c16563"
"reference": "a7e82f38fe25550ba59f1c6ab3314893e35320b6"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
Expand Down Expand Up @@ -1545,7 +1545,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
"reference": "b2c586bb5de3a9e717f2da4ba28a93bfd29856aa"
"reference": "3a6b6b7c1345cdcbaa13f92d21204bef845eafc2"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1618,7 +1618,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
"reference": "3dc197f18b5bd692d6d9eac74d7dc49b3f21adb9"
"reference": "f44803a76c40342ed7497385b078dc2f3ea73a79"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -1696,7 +1696,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
"reference": "505908d2e6386a37ade3f3795d542831da8cb4d8"
"reference": "9493d255d46ba17afda2852e302ec6c6d6b57212"
},
"require": {
"automattic/jetpack-status": "^5.0.1",
Expand Down Expand Up @@ -1754,7 +1754,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
"reference": "0f110a768a2f5d805cdcf6178e38009de070c6df"
"reference": "2ad6e10041121e18263191c403819874429fa7b5"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1811,7 +1811,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-schema",
"reference": "e03ba6888e8d788449385538de46d08a8ef70eaa"
"reference": "b12e5b3c4e5b204a8639440ade5ffafc33c43e87"
},
"require": {
"php": ">=7.2"
Expand Down Expand Up @@ -1884,7 +1884,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
"reference": "15e8d24fbf8d3a696db4fbefac0fb5b22863bbc8"
"reference": "cf4942868a83542980e0f801668e48ca6d0a44a3"
},
"require": {
"automattic/jetpack-constants": "^3.0.1",
Expand Down Expand Up @@ -1951,7 +1951,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
"reference": "d3c55abb7775002eb3b9b3be803b7d4144d4e323"
"reference": "f69b511f207ac179285a478942ae7c34693d0fd8"
},
"require": {
"automattic/jetpack-connection": "^6.2.1-alpha",
Expand Down Expand Up @@ -2032,7 +2032,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-wp-js-data-sync",
"reference": "35bf16a4f51874cbfdb05924a6e2efa063407964"
"reference": "d044fd037fda0fd68a776eeabb05432d930f82c5"
},
"require": {
"automattic/jetpack-schema": "^0.2.0",
Expand Down
Loading

0 comments on commit 2f6714c

Please sign in to comment.