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 aa39437 commit 1fb4d72
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ phpunit.xml.dist production-exclude
tests/** production-exclude
tools/** production-exclude
.phpcsignore production-exclude
.eslintrc.js production-exclude
/src/dashboard/**/*.js production-exclude
/src/dashboard/**/*.scss production-exclude
/src/blocks/**/*.js production-exclude
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"require": {
"php": ">=7.2",
"automattic/jetpack-blocks": "^3.0.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-logo": "^3.0.0",
"automattic/jetpack-status": "^5.0.1",
"automattic/jetpack-sync": "^4.1.0"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^5.1.0",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/wordbless": "^0.4.2"
},
"suggest": {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@automattic/jetpack-analytics": "^0.1.33",
"@automattic/jetpack-components": "^0.64.2-alpha",
"@automattic/jetpack-shared-extension-utils": "^0.16.1",
"@automattic/jetpack-shared-extension-utils": "^0.16.2-alpha",
"@wordpress/block-editor": "14.8.0",
"@wordpress/blocks": "14.2.0",
"@wordpress/compose": "7.13.0",
Expand All @@ -60,9 +60,9 @@
},
"devDependencies": {
"@automattic/color-studio": "2.6.0",
"@automattic/jetpack-base-styles": "^0.6.38",
"@automattic/jetpack-base-styles": "^0.6.39-alpha",
"@automattic/jetpack-webpack-config": "workspace:*",
"@automattic/remove-asset-webpack-plugin": "^1.0.24",
"@automattic/remove-asset-webpack-plugin": "^1.0.25-alpha",
"@babel/core": "7.26.0",
"@babel/runtime": "7.26.0",
"@testing-library/dom": "10.4.0",
Expand Down

0 comments on commit 1fb4d72

Please sign in to comment.