Skip to content

eslint to fix unused imports #423

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

Merged
merged 1 commit into from
Jun 22, 2021
Merged

eslint to fix unused imports #423

merged 1 commit into from
Jun 22, 2021

Conversation

fstasi
Copy link
Contributor

@fstasi fstasi commented Jun 22, 2021

Why

tsc complains about unused imports, stopping the builds in the CI. We want to catch unused imports asap.
Eslint supports unused-vars rule, but this appears to be too strict for our usecase. We need to catch imports only, and possibly auto-fix those before committing.

How

eslint-plugin-unused-imports integrates with eslint, detecting unused imports and removing them from the codebase. This automaically integrates with husky/lint staged that are already in place

@fstasi fstasi requested a review from AlbyIanna June 22, 2021 14:04
Copy link
Contributor

@AlbyIanna AlbyIanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fstasi fstasi merged commit b4386b2 into main Jun 22, 2021
@fstasi fstasi deleted the fix-unused-imports branch June 22, 2021 14:40
@per1234 per1234 added topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement labels Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants