From eca22f64a7d55398a67d41d001dd18c025ba470f Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Sun, 5 May 2024 16:49:21 +0900 Subject: [PATCH] ESLint: Add new rules (#59) --- .eslintrc.js | 7 +++++++ src/index.js | 3 +++ 2 files changed, 10 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index e96d7f6..aa9d203 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,6 +5,13 @@ module.exports = { 'react/jsx-boolean-value': 'error', 'import/no-unresolved': 'off', 'import/no-extraneous-dependencies': 'off', + '@wordpress/dependency-group': 'error', + '@wordpress/i18n-text-domain': [ + 'error', + { + allowedTextDomain: 'richtext-extension', + }, + ], 'prettier/prettier': [ 'error', { diff --git a/src/index.js b/src/index.js index 4a2f6f4..04afa17 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,6 @@ +/** + * Internal dependencies + */ import './style.scss'; import './clear-format'; import './underline';