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

# Files to exclude from the mirror repo
/changelog/** production-exclude
/.eslintrc.cjs production-exclude
/jest.config.js production-exclude
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.75.1-alpha] - unreleased

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

## [0.75.0] - 2024-12-09
### Changed
- Changed text domain from 'jetpack' to 'jetpack-publicize-components'. [#40368]
Expand Down Expand Up @@ -1038,6 +1042,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#24470]

[0.75.1-alpha]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.75.0...v0.75.1-alpha
[0.75.0]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.2...v0.75.0
[0.74.2]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.1...v0.74.2
[0.74.1]: https://github.com/Automattic/jetpack-publicize-components/compare/v0.74.0...v0.74.1
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"prefer-stable": true,
"extra": {
"mirror-repo": "Automattic/jetpack-publicize-components",
"textdomain": "jetpack-publicize-components",
"changelogger": {
"link-template": "https://github.com/Automattic/jetpack-publicize-components/compare/v${old}...v${new}"
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-publicize-components",
"version": "0.75.0",
"version": "0.75.1-alpha",
"description": "A library of JS components required by the Publicize editor plugin",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme",
"bugs": {
Expand All @@ -21,9 +21,9 @@
"dependencies": {
"@automattic/jetpack-analytics": "^0.1.33",
"@automattic/jetpack-components": "^0.64.2-alpha",
"@automattic/jetpack-connection": "^0.36.1",
"@automattic/jetpack-script-data": "^0.1.5",
"@automattic/jetpack-shared-extension-utils": "^0.16.1",
"@automattic/jetpack-connection": "^0.36.2-alpha",
"@automattic/jetpack-script-data": "^0.1.6-alpha",
"@automattic/jetpack-shared-extension-utils": "^0.16.2-alpha",
"@automattic/popup-monitor": "1.0.2",
"@automattic/social-previews": "2.1.0-beta.8",
"@wordpress/annotations": "3.13.0",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"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:*",
"@babel/core": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
Expand Down

0 comments on commit 448695e

Please sign in to comment.