diff --git a/packages/edit-site/src/components/resizable-frame/index.js b/packages/edit-site/src/components/resizable-frame/index.js index fee65fbd9dfff8..dbb8d311b22a52 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 */ } { - // eslint-disable-next-line no-console console.error( error ); process.exit( 1 ); } ); diff --git a/tools/api-docs/update-api-docs.js b/tools/api-docs/update-api-docs.js index 891cff657c4b70..d7b162f69194b2 100755 --- a/tools/api-docs/update-api-docs.js +++ b/tools/api-docs/update-api-docs.js @@ -246,7 +246,6 @@ glob.stream( [ cwd: ROOT_DIR, } ); } catch ( error ) { - // eslint-disable-next-line no-console console.error( error ); process.exit( 1 ); } diff --git a/tools/eslint/config.mjs b/tools/eslint/config.mjs index 688aba47dc0d2c..ac29c0ccd8f53a 100644 --- a/tools/eslint/config.mjs +++ b/tools/eslint/config.mjs @@ -206,13 +206,9 @@ export default dedupePlugins( [ ...wpPlugin.configs.recommended, // eslint-comments recommended (manually converted to flat config). - // Register under both names so that existing `eslint-comments/*` rule - // references (used below) continue to work alongside the canonical - // `@eslint-community/eslint-comments/*` names from the recommended config. { plugins: { '@eslint-community/eslint-comments': eslintCommentsPlugin, - 'eslint-comments': eslintCommentsPlugin, }, rules: eslintCommentsPlugin.configs.recommended.rules, }, @@ -225,6 +221,9 @@ export default dedupePlugins( [ // Global settings applicable to all files. { + linterOptions: { + reportUnusedDisableDirectives: 'error', + }, languageOptions: { globals: { wp: 'off', @@ -267,7 +266,6 @@ export default dedupePlugins( [ }, }, ], - 'eslint-comments/no-unused-disable': 'error', 'import/default': 'error', 'import/named': 'error', 'no-restricted-imports': [