Skip to content

Commit

Permalink
Add remaining i18n rules to recommended ESLint ruleset (WordPress#64710)
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored and bph committed Aug 31, 2024
1 parent f45ecf5 commit 98074c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Breaking Changes

- Add [`@wordpress/i18n-no-flanking-whitespace`](https://github.com/WordPress/gutenberg/blob/HEAD/packages/eslint-plugin/docs/rules/i18n-no-flanking-whitespace.md) to the recommended i18n ruleset ([#64710](https://github.com/WordPress/gutenberg/pull/64710).
- Add [`@wordpress/i18n-hyphenated-range`](https://github.com/WordPress/gutenberg/blob/HEAD/packages/eslint-plugin/docs/rules/i18n-hyphenated-range.md) to the recommended i18n ruleset ([#64710](https://github.com/WordPress/gutenberg/pull/64710).

## 20.3.0 (2024-08-21)

## 20.2.0 (2024-08-07)
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-plugin/configs/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ module.exports = {
'@wordpress/i18n-no-placeholders-only': 'error',
'@wordpress/i18n-no-variables': 'error',
'@wordpress/i18n-ellipsis': 'error',
'@wordpress/i18n-no-flanking-whitespace': 'error',
'@wordpress/i18n-hyphenated-range': 'error',
},
};

0 comments on commit 98074c7

Please sign in to comment.