From 1a0d0fccfc94498bc8f70996ed0a716885481a21 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Sun, 5 May 2024 17:22:09 +0900 Subject: [PATCH] ESLint: Add new rules (#29) --- .eslintrc.js | 7 +++++++ playwright.config.ts | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 97e7feb..270c078 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,6 +9,13 @@ module.exports = { 'import/no-extraneous-dependencies': 'off', 'import/no-unresolved': 'off', '@wordpress/no-unsafe-wp-apis': 'off', + '@wordpress/dependency-group': 'error', + '@wordpress/i18n-text-domain': [ + 'error', + { + allowedTextDomain: 'enable-responsive-image', + }, + ], 'no-nested-ternary': 'off', 'prettier/prettier': [ 'error', diff --git a/playwright.config.ts b/playwright.config.ts index 9b021b9..2092b33 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,5 +1,7 @@ +/** + * WordPress dependencies + */ const config = require( '@wordpress/scripts/config/playwright.config.js' ); -const { fileURLToPath } = require( 'url' ); export default { ...config,