Skip to content
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

polish: remove unused eslint-disable #5560

Merged
merged 3 commits into from
Sep 21, 2021

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Unused eslint-disable not only adds excess noise but also hides away future errors. Also a lot of the rules were simply disabled globally through .eslintrc.js, so the in-line disables are of no use.

We should enforce this by adding

eslint --cache "**/*.{js,jsx,ts,tsx} --report-unused-disable-directives

to the CI

Have you read the Contributing Guidelines on pull requests?

Yes

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Sep 13, 2021
@netlify
Copy link

netlify bot commented Sep 13, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 05fb823

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61498f58321b6700071c644d

😎 Browse the preview: https://deploy-preview-5560--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Sep 13, 2021

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 96
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5560--docusaurus-2.netlify.app/

@slorber slorber added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Sep 21, 2021
@slorber
Copy link
Collaborator

slorber commented Sep 21, 2021

Thanks 👍

@slorber slorber merged commit a839966 into facebook:main Sep 21, 2021
@Josh-Cena Josh-Cena deleted the remove-eslint-disable branch September 21, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants