From 1976e5034d34f37e1f3a540d11bba91466a7eb89 Mon Sep 17 00:00:00 2001 From: anomiex Date: Wed, 11 Dec 2024 16:07:15 +0000 Subject: [PATCH] Update to eslint 9 (#40555) Eslint 9 brings a new config format, which means this PR also rewrites all the eslint configs. I took the opportunity to clean them up (although a good bit of that wound up in earlier PRs), and added code to fetch the textdomain from composer.json and whether the project uses React from package.json so we don't need to have so many boilerplate configs that just set a textdomain or enable React rules. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12280005125 Upstream-Ref: Automattic/jetpack@9e3ae2f2e3140f60ae88df608bc1cbc34d275109 --- composer.json | 4 ++-- package.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index ee461a9..f3e3f50 100644 --- a/composer.json +++ b/composer.json @@ -6,8 +6,8 @@ "require": { "php": ">=7.2", "automattic/jetpack-admin-ui": "^0.5.1", - "automattic/jetpack-assets": "^4.0.1", - "automattic/jetpack-connection": "^6.2.0", + "automattic/jetpack-assets": "^4.0.2-alpha", + "automattic/jetpack-connection": "^6.2.1-alpha", "automattic/jetpack-my-jetpack": "^5.1.2-alpha", "automattic/jetpack-plans": "^0.5.1" }, diff --git a/package.json b/package.json index 7afd4b1..5710e0b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ }, "devDependencies": { "@automattic/calypso-color-schemes": "3.1.3", - "@automattic/jetpack-base-styles": "^0.6.38", + "@automattic/jetpack-base-styles": "^0.6.39-alpha", "@automattic/jetpack-webpack-config": "workspace:*", "@babel/core": "7.26.0", "@babel/preset-react": "7.25.9", @@ -59,11 +59,11 @@ }, "dependencies": { "@automattic/jetpack-analytics": "^0.1.33", - "@automattic/jetpack-api": "^0.17.20", - "@automattic/jetpack-base-styles": "^0.6.38", + "@automattic/jetpack-api": "^0.17.21-alpha", + "@automattic/jetpack-base-styles": "^0.6.39-alpha", "@automattic/jetpack-components": "^0.64.2-alpha", - "@automattic/jetpack-connection": "^0.36.1", - "@automattic/jetpack-shared-extension-utils": "^0.16.1", + "@automattic/jetpack-connection": "^0.36.2-alpha", + "@automattic/jetpack-shared-extension-utils": "^0.16.2-alpha", "@wordpress/api-fetch": "7.13.0", "@wordpress/blob": "4.13.0", "@wordpress/block-editor": "14.8.0",