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 28d9d92 commit ed0e6b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ node_modules export-ignore

# Files to exclude from the mirror repo
/changelog/** production-exclude
/.eslintrc.cjs production-exclude
/jest.config.cjs production-exclude
**/stories/** production-exclude
/tests/** production-exclude
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"prefer-stable": true,
"extra": {
"mirror-repo": "Automattic/jetpack-ai-client",
"textdomain": "jetpack-ai-client",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-ai-client/compare/v${old}...v${new}"
},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"main": "./build/index.js",
"types": "./build/index.d.ts",
"dependencies": {
"@automattic/jetpack-base-styles": "^0.6.38",
"@automattic/jetpack-connection": "^0.36.1",
"@automattic/jetpack-shared-extension-utils": "^0.16.1",
"@automattic/jetpack-base-styles": "^0.6.39-alpha",
"@automattic/jetpack-connection": "^0.36.2-alpha",
"@automattic/jetpack-shared-extension-utils": "^0.16.2-alpha",
"@microsoft/fetch-event-source": "2.0.1",
"@types/react": "18.3.12",
"@types/wordpress__block-editor": "11.5.15",
Expand Down

0 comments on commit ed0e6b4

Please sign in to comment.