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

# Files to exclude from the mirror repo
/changelog/** production-exclude
/.eslintrc.cjs production-exclude
/.gitignore production-exclude
/jest.config.cjs production-exclude
/jest.setup.js production-exclude
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Connection Component releases.

## [0.36.2-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

## [0.36.1] - 2024-12-09
### Changed
- Internal updates.
Expand Down Expand Up @@ -910,6 +914,7 @@
- `Main` and `ConnectUser` components added.
- `JetpackRestApiClient` API client added.

[0.36.2-alpha]: https://github.com/Automattic/jetpack-connection-js/compare/v0.36.1...v0.36.2-alpha
[0.36.1]: https://github.com/Automattic/jetpack-connection-js/compare/v0.36.0...v0.36.1
[0.36.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.20...v0.36.0
[0.35.20]: https://github.com/Automattic/jetpack-connection-js/compare/v0.35.19...v0.35.20
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"extra": {
"mirror-repo": "Automattic/jetpack-connection-js",
"textdomain": "jetpack-connection-js",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-connection-js/compare/v${old}...v${new}"
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-connection",
"version": "0.36.1",
"version": "0.36.2-alpha",
"description": "Jetpack Connection Component",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
"bugs": {
Expand All @@ -15,10 +15,10 @@
"license": "GPL-2.0-or-later",
"dependencies": {
"@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",
"@automattic/jetpack-config": "^0.1.27",
"@automattic/jetpack-script-data": "^0.1.5",
"@automattic/jetpack-script-data": "^0.1.6-alpha",
"@wordpress/base-styles": "5.13.0",
"@wordpress/browserslist-config": "6.13.0",
"@wordpress/components": "28.13.0",
Expand All @@ -31,7 +31,7 @@
"prop-types": "^15.7.2"
},
"devDependencies": {
"@automattic/jetpack-base-styles": "^0.6.38",
"@automattic/jetpack-base-styles": "^0.6.39-alpha",
"@babel/core": "7.26.0",
"@babel/preset-react": "7.25.9",
"@storybook/addon-actions": "8.3.5",
Expand Down

0 comments on commit cc08c87

Please sign in to comment.