Skip to content

Commit

Permalink
Update to eslint 9 (#40555)
Browse files Browse the repository at this point in the history
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@9e3ae2f
  • Loading branch information
anomiex authored and matticbot committed Dec 11, 2024
1 parent c8c9850 commit c10878e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-assets": "^4.0.2-alpha",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-status": "^5.0.1",
"automattic/jetpack-config": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@automattic/calypso-color-schemes": "3.1.3",
"@automattic/color-studio": "2.6.0",
"@automattic/jetpack-analytics": "^0.1.33",
"@automattic/jetpack-api": "^0.17.20",
"@automattic/jetpack-api": "^0.17.21-alpha",
"@automattic/jetpack-components": "^0.64.2-alpha",
"@wordpress/base-styles": "5.13.0",
"@wordpress/block-editor": "14.8.0",
Expand Down

0 comments on commit c10878e

Please sign in to comment.