Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/edit-site/src/components/resizable-frame/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ function ResizableFrame( {
[ isRTL() ? 'right' : 'left' ]: canvas === 'view' && (
<>
<Tooltip text={ __( 'Drag to resize' ) }>
{ /* Disable reason: role="separator" does in fact support aria-valuenow */ }
{ /* eslint-disable-next-line jsx-a11y/role-supports-aria-props */ }
<motion.button
key="handle"
role="separator"
Expand Down
2 changes: 0 additions & 2 deletions test/performance/fixtures/perf-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,8 @@ export class PerfUtils {

async expectExpandedState( locator: Locator, state: 'true' | 'false' ) {
return await Promise.any( [
// eslint-disable-next-line playwright/missing-playwright-await
expect( locator ).toHaveAttribute( 'aria-expanded', state ),
// Legacy selector.
// eslint-disable-next-line playwright/missing-playwright-await
expect( locator ).toHaveAttribute( 'aria-pressed', state ),
] );
}
Expand Down
1 change: 0 additions & 1 deletion tools/api-docs/gen-components-docs/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ await Promise.all(
);

try {
// eslint-disable-next-line no-console
console.log( `Writing docs to ${ outputFile }` );
return fs.writeFile( outputFile, docs );
} catch ( e ) {
Expand Down
1 change: 0 additions & 1 deletion tools/api-docs/gen-theme-reference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ async function main() {
}

main().catch( ( error ) => {
// eslint-disable-next-line no-console
console.error( error );
process.exit( 1 );
} );
1 change: 0 additions & 1 deletion tools/api-docs/update-api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ glob.stream( [
cwd: ROOT_DIR,
} );
} catch ( error ) {
// eslint-disable-next-line no-console
console.error( error );
process.exit( 1 );
}
Expand Down
8 changes: 3 additions & 5 deletions tools/eslint/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -225,6 +221,9 @@ export default dedupePlugins( [

// Global settings applicable to all files.
{
linterOptions: {
reportUnusedDisableDirectives: 'error',
},
languageOptions: {
globals: {
wp: 'off',
Expand Down Expand Up @@ -267,7 +266,6 @@ export default dedupePlugins( [
},
},
],
'eslint-comments/no-unused-disable': 'error',
'import/default': 'error',
'import/named': 'error',
'no-restricted-imports': [
Expand Down
Loading