From d561f530bb93aecc6c2b9d5c4fa7750e4a14887f Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 22 May 2026 23:24:30 +0900 Subject: [PATCH] ESLint: Restrict deprecated __nextHasNoMarginBottom prop --- packages/block-library/src/image/image.js | 1 - packages/block-library/src/post-featured-image/edit.js | 1 - tools/eslint/config.mjs | 4 ++++ .../quick-draft-content-field/quick-draft-content-field.tsx | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index 4a5ff75a6faba7..646c65ec439dd6 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -993,7 +993,6 @@ export default function Image( { } > setAttributes( { isLink: ! isLink } ) diff --git a/tools/eslint/config.mjs b/tools/eslint/config.mjs index 37c9fd936a364e..cab0c9b23091e5 100644 --- a/tools/eslint/config.mjs +++ b/tools/eslint/config.mjs @@ -157,6 +157,10 @@ const restrictedSyntax = [ selector: 'JSXAttribute[name.name="id"][value.type="Literal"]', message: 'Do not use string literals for IDs; use useId hook instead.', }, + { + selector: 'JSXAttribute[name.name="__nextHasNoMarginBottom"]', + message: 'The `__nextHasNoMarginBottom` prop is no longer needed.', + }, { selector: 'CallExpression[callee.name="withDispatch"] > :function > BlockStatement > :not(VariableDeclaration,ReturnStatement)', diff --git a/widgets/quick-draft/fields/quick-draft-content-field/quick-draft-content-field.tsx b/widgets/quick-draft/fields/quick-draft-content-field/quick-draft-content-field.tsx index 52a376e87568c6..1bb361f72b6d82 100644 --- a/widgets/quick-draft/fields/quick-draft-content-field/quick-draft-content-field.tsx +++ b/widgets/quick-draft/fields/quick-draft-content-field/quick-draft-content-field.tsx @@ -57,7 +57,6 @@ export default function QuickDraftContentField< Item >( { return (