-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: error on unused eslint disables #26510
chore: error on unused eslint disables #26510
Conversation
Test results for "tests 1"3 failed 12 flaky 25034 passed, 583 skipped ❌ [webkit] › library/trace-viewer.spec.ts:131:1 › should render network bars
Retry 1:
Retry 2:
Retry 3:
❌ [playwright-test] › playwright.trace.spec.ts:353:5 › should retain traces for interrupted tests
❌ [playwright-test] › playwright.unhandled.spec.ts:36:5 › should lead in unhandledRejection when page.route raises
Merge workflow run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not put it in the ESLint config instead?
@mxschmitt That's a possibility but there is a very weird discrepancy in ESLint, if you use
|
What?
Fail the CI/Local build if we are using eslint-disable spuriously .
More information -> here
Why?
It can be confusing seeing an
eslint-disable
in code and there is no actual violation. Like found here :This most likely was a re-factoring or debt reduction which the author forgot to remove the
eslint-disable
statement.