From 751a47555cbe976a75ad4949dc862733c0b3a011 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 14 May 2026 15:40:03 -0400 Subject: [PATCH 1/2] Automated Testing: Fix and use built-in mechanism for flagging unused disables --- .../edit-site/src/components/resizable-frame/index.js | 2 -- test/performance/fixtures/perf-utils.ts | 2 -- tools/eslint/config.mjs | 8 +++----- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/edit-site/src/components/resizable-frame/index.js b/packages/edit-site/src/components/resizable-frame/index.js index 8079488394be9f..5c65f16dac15d2 100644 --- a/packages/edit-site/src/components/resizable-frame/index.js +++ b/packages/edit-site/src/components/resizable-frame/index.js @@ -295,8 +295,6 @@ function ResizableFrame( { [ isRTL() ? 'right' : 'left' ]: canvas === 'view' && ( <> - { /* Disable reason: role="separator" does in fact support aria-valuenow */ } - { /* eslint-disable-next-line jsx-a11y/role-supports-aria-props */ } Date: Fri, 22 May 2026 08:53:07 -0400 Subject: [PATCH 2/2] Remove more unused disables --- routes/dashboard/widget-types/types.ts | 2 -- .../welcome/components/feature-highlight/feature-highlight.tsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/routes/dashboard/widget-types/types.ts b/routes/dashboard/widget-types/types.ts index c860a720126e97..e7b2501d0ac292 100644 --- a/routes/dashboard/widget-types/types.ts +++ b/routes/dashboard/widget-types/types.ts @@ -15,8 +15,6 @@ */ import type { ComponentProps } from 'react'; import type { Field } from '@wordpress/dataviews'; -// Dashboard is still experimental. -// eslint-disable-next-line @wordpress/use-recommended-components import type { Icon } from '@wordpress/ui'; type IconProps = ComponentProps< typeof Icon >; diff --git a/widgets/welcome/components/feature-highlight/feature-highlight.tsx b/widgets/welcome/components/feature-highlight/feature-highlight.tsx index 1b601eec782a6c..a96641cd8ef5b5 100644 --- a/widgets/welcome/components/feature-highlight/feature-highlight.tsx +++ b/widgets/welcome/components/feature-highlight/feature-highlight.tsx @@ -6,7 +6,7 @@ import type { ReactNode } from 'react'; /** * WordPress dependencies */ -import { Icon, Link, Stack, Text } from '@wordpress/ui'; // eslint-disable-line @wordpress/use-recommended-components +import { Icon, Link, Stack, Text } from '@wordpress/ui'; /** * Internal dependencies