From b6bdf780b5cd9d1a7d5da081f62296a5a90f2d59 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 22 Aug 2024 10:33:15 +0200 Subject: [PATCH] Add remaining i18n rules to recommended ESLint ruleset (#64710) --- packages/eslint-plugin/CHANGELOG.md | 5 +++++ packages/eslint-plugin/configs/i18n.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index d66d8e9c9212cf..b61a4ecb9f3bb7 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -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) diff --git a/packages/eslint-plugin/configs/i18n.js b/packages/eslint-plugin/configs/i18n.js index c3271214e3ef5c..fb8cad233232d4 100644 --- a/packages/eslint-plugin/configs/i18n.js +++ b/packages/eslint-plugin/configs/i18n.js @@ -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', }, };