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 0b0da36 commit aa886f8
Show file tree
Hide file tree
Showing 27 changed files with 197 additions and 185 deletions.
108 changes: 54 additions & 54 deletions composer.lock

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions vendor/automattic/jetpack-assets/.eslintrc.cjs

This file was deleted.

5 changes: 5 additions & 0 deletions vendor/automattic/jetpack-assets/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).

## [4.0.2-alpha] - unreleased

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

## [4.0.1] - 2024-12-04
### Changed
- Updated package dependencies. [#40363]
Expand Down Expand Up @@ -540,6 +544,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Statically access asset tools

[4.0.2-alpha]: https://github.com/Automattic/jetpack-assets/compare/v4.0.1...v4.0.2-alpha
[4.0.1]: https://github.com/Automattic/jetpack-assets/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/Automattic/jetpack-assets/compare/v3.0.0...v4.0.0
[3.0.0]: https://github.com/Automattic/jetpack-assets/compare/v2.3.14...v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"validate": "pnpm exec validate-es build/"
},
"dependencies": {
"@automattic/jetpack-script-data": "^0.1.5",
"@automattic/jetpack-script-data": "^0.1.6-alpha",
"react": "18.3.1"
},
"devDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions vendor/automattic/jetpack-blaze/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.25.4-alpha] - unreleased

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

## [0.25.3] - 2024-12-04
### Changed
- Updated package dependencies. [#40363]
Expand Down Expand Up @@ -497,6 +501,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated package dependencies. [#27906]

[0.25.4-alpha]: https://github.com/automattic/jetpack-blaze/compare/v0.25.3...v0.25.4-alpha
[0.25.3]: https://github.com/automattic/jetpack-blaze/compare/v0.25.2...v0.25.3
[0.25.2]: https://github.com/automattic/jetpack-blaze/compare/v0.25.1...v0.25.2
[0.25.1]: https://github.com/automattic/jetpack-blaze/compare/v0.25.0...v0.25.1
Expand Down
4 changes: 2 additions & 2 deletions vendor/automattic/jetpack-blaze/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-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-constants": "^3.0.1",
"automattic/jetpack-plans": "^0.5.1",
"automattic/jetpack-redirect": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-blaze/src/class-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Dashboard {
*
* @var string
*/
const PACKAGE_VERSION = '0.25.3';
const PACKAGE_VERSION = '0.25.4-alpha';

/**
* List of dependencies needed to render the dashboard in wp-admin.
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-calypsoify/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-assets": "^4.0.2-alpha",
"automattic/jetpack-status": "^5.0.1"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-assets": "^4.0.1"
"automattic/jetpack-assets": "^4.0.2-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global ajaxurl:true */
/* global jQuery ajaxurl:true */
jQuery( function ( $ ) {
$( '#customize-control-featured-content-tag-name input' ).suggest(
ajaxurl + '?action=ajax-tag-search&tax=post_tag',
Expand Down
3 changes: 0 additions & 3 deletions vendor/automattic/jetpack-connection/.eslintrc.cjs

This file was deleted.

5 changes: 5 additions & 0 deletions vendor/automattic/jetpack-connection/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).

## [6.2.1-alpha] - unreleased

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

## [6.2.0] - 2024-12-09
### Added
- Added a mechanism to use callbacks for package options. [#40474]
Expand Down Expand Up @@ -1267,6 +1271,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Separate the connection library into its own package.

[6.2.1-alpha]: https://github.com/Automattic/jetpack-connection/compare/v6.2.0...v6.2.1-alpha
[6.2.0]: https://github.com/Automattic/jetpack-connection/compare/v6.1.1...v6.2.0
[6.1.1]: https://github.com/Automattic/jetpack-connection/compare/v6.1.0...v6.1.1
[6.1.0]: https://github.com/Automattic/jetpack-connection/compare/v6.0.1...v6.1.0
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-connection/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
"automattic/jetpack-admin-ui": "^0.5.1",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-assets": "^4.0.2-alpha",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-roles": "^3.0.1",
"automattic/jetpack-status": "^5.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '6.2.0';
const PACKAGE_VERSION = '6.2.1-alpha';

const PACKAGE_SLUG = 'connection';

Expand Down
5 changes: 5 additions & 0 deletions vendor/automattic/jetpack-jitm/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).

## [4.0.3-alpha] - unreleased

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

## [4.0.2] - 2024-12-04
### Changed
- Updated package dependencies. [#40363]
Expand Down Expand Up @@ -807,6 +811,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Update Jetpack to use new JITM package

[4.0.3-alpha]: https://github.com/Automattic/jetpack-jitm/compare/v4.0.2...v4.0.3-alpha
[4.0.2]: https://github.com/Automattic/jetpack-jitm/compare/v4.0.1...v4.0.2
[4.0.1]: https://github.com/Automattic/jetpack-jitm/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.29...v4.0.0
Expand Down
4 changes: 2 additions & 2 deletions vendor/automattic/jetpack-jitm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"require": {
"php": ">=7.2",
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
"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-device-detection": "^3.0.0",
"automattic/jetpack-logo": "^3.0.0",
"automattic/jetpack-redirect": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-jitm/src/class-jitm.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class JITM {

const PACKAGE_VERSION = '4.0.2';
const PACKAGE_VERSION = '4.0.3-alpha';

/**
* The configuration method that is called from the jetpack-config package.
Expand Down
8 changes: 4 additions & 4 deletions vendor/automattic/jetpack-masterbar/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-blaze": "^0.25.3",
"automattic/jetpack-assets": "^4.0.2-alpha",
"automattic/jetpack-blaze": "^0.25.4-alpha",
"automattic/jetpack-compat": "^4.0.0",
"automattic/jetpack-device-detection": "^3.0.0",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-jitm": "^4.0.2",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-jitm": "^4.0.3-alpha",
"automattic/jetpack-logo": "^3.0.0",
"automattic/jetpack-plans": "^0.5.1",
"automattic/jetpack-status": "^5.0.1"
Expand Down
2 changes: 0 additions & 2 deletions vendor/automattic/jetpack-mu-wpcom/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions vendor/automattic/jetpack-mu-wpcom/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-assets": "^4.0.1",
"automattic/jetpack-assets": "^4.0.2-alpha",
"automattic/jetpack-blocks": "^3.0.1",
"automattic/jetpack-calypsoify": "^0.2.0",
"automattic/jetpack-classic-theme-helper": "^0.8.0-alpha",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-masterbar": "^0.10.3-alpha",
"automattic/jetpack-redirect": "^3.0.1",
"automattic/jetpack-stats-admin": "^0.23.1",
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-plans/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-connection": "^6.2.0"
"automattic/jetpack-connection": "^6.2.1-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions vendor/automattic/jetpack-stats-admin/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-plans": "^0.5.1",
"automattic/jetpack-stats": "^0.14.1",
"automattic/jetpack-status": "^5.0.1",
"automattic/jetpack-jitm": "^4.0.2"
"automattic/jetpack-jitm": "^4.0.3-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-stats/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-status": "^5.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/jetpack-sync/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.2",
"automattic/jetpack-connection": "^6.2.0",
"automattic/jetpack-connection": "^6.2.1-alpha",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-password-checker": "^0.4.1",
"automattic/jetpack-ip": "^0.4.1",
Expand Down
2 changes: 1 addition & 1 deletion vendor/automattic/scheduled-updates/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"automattic/jetpack-sync": "^4.1.0",
"automattic/jetpack-plans": "^0.5.1",
"automattic/jetpack-constants": "^3.0.1",
"automattic/jetpack-connection": "^6.2.0"
"automattic/jetpack-connection": "^6.2.1-alpha"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
Expand Down
Loading

0 comments on commit aa886f8

Please sign in to comment.