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

feat(eslint-config): add eslint-plugin-unused-imports #159

Merged
merged 3 commits into from
Jun 9, 2023

Conversation

fuxingloh
Copy link
Contributor

What this PR does / why we need it:

Added https://www.npmjs.com/package/eslint-plugin-unused-imports which separates out the no-unused-vars rule depending on it being an import statement in the AST and providing an auto-fix rule to remove the nodes if they are imports. With this, we can now target test files with 'unused-imports/no-unused-vars': 'off' for testing DX.

Breaking changes, to replace:

- // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ // eslint-disable-next-line unused-imports/no-unused-vars

@netlify
Copy link

netlify bot commented Jun 9, 2023

Deploy Preview for sticky-birthday ready!

Name Link
🔨 Latest commit 03a689f
🔍 Latest deploy log https://app.netlify.com/sites/sticky-birthday/deploys/6482bed4e09c090008b69fda
😎 Deploy Preview https://deploy-preview-159--sticky-birthday.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@fuxingloh fuxingloh changed the title feat(eslint-config): add unused-imports feat(eslint-config): add eslint-plugin-unused-imports Jun 9, 2023
@fuxingloh fuxingloh merged commit 87653e8 into main Jun 9, 2023
9 checks passed
@fuxingloh fuxingloh deleted the fuxingloh/eslint-update branch June 9, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant