Skip to content

Commit

Permalink
Update @wordpress/eslint-plugin (#39305)
Browse files Browse the repository at this point in the history
This brings two new rules that needed fixing:

* `@wordpress/i18n-no-flanking-whitespace` complains about leading or
  trailing whitespace in JS i18n messages. Fix depends on context:
  * Sometimes it makes no difference, the browser (or React) strips it
	out. Removed these.
  * Sometimes it does, or it's unclear. In these cases I added it back
	outside the i18n call.
* `@wordpress/i18n-hyphenated-range` wants en-dashes (or em-dashes) for
  numeric ranges. Switched them to en-dashes.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10815610467

Upstream-Ref: Automattic/jetpack@3a06084
  • Loading branch information
anomiex authored and matticbot committed Sep 11, 2024
1 parent 2721134 commit 13d17e0
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 90 deletions.
3 changes: 3 additions & 0 deletions jetpack_vendor/automattic/jetpack-search/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Updated package dependencies.

### Fixed
- Move trailing spaces out of i18n messages.

## [0.45.3] - 2024-09-10
### Changed
- Updated package dependencies. [#39302]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'dba0b4c095142f21957a');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '8d15bb42b7ab72de8eb6');

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '4588bd195a00aad99601');
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '70a29dd29c0d57f53d6f');

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '69b2279d3ec19323cba4');
<?php return array('dependencies' => array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '20d5af7a6b6b92b6d605');

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
),
'jetpack-search-pkg' => array(
'path' => 'jetpack_vendor/automattic/jetpack-search',
'ver' => '0.45.4-alpha1725997601',
'ver' => '0.45.4-alpha1726071594',
),
'jetpack-stats' => array(
'path' => 'jetpack_vendor/automattic/jetpack-stats',
Expand Down
Loading

0 comments on commit 13d17e0

Please sign in to comment.