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

refactor(noUnusedImports): report empty named imports #4478

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Nov 6, 2024

Summary

Fix #3574 and #4240

Test Plan

I added a test and updated the snapshots.

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages A-Changelog Area: changelog labels Nov 6, 2024
@Conaclos Conaclos requested review from a team November 6, 2024 11:16
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Neat!!

@@ -1,6 +1,7 @@
---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: invalid-import-namespace.ts
snapshot_kind: text
Copy link
Member

Choose a reason for hiding this comment

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

Is this new? Which version of cargo-insta are you using?

Copy link
Member Author

Choose a reason for hiding this comment

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

The latest one: cargo-insta 1.41.1

Copy link

codspeed-hq bot commented Nov 6, 2024

CodSpeed Performance Report

Merging #4478 will improve performances by 6.9%

Comparing conaclos/noUnusedImports-empty-imports (bb8e14f) with main (041e825)

Summary

⚡ 1 improvements
✅ 98 untouched benchmarks

Benchmarks breakdown

Benchmark main conaclos/noUnusedImports-empty-imports Change
pure_9395922602181450299.css[cached] 3.6 ms 3.4 ms +6.9%

@Conaclos Conaclos force-pushed the conaclos/noUnusedImports-empty-imports branch from 10c3031 to bb8e14f Compare November 6, 2024 12:06
@Conaclos Conaclos merged commit 3ad6da5 into main Nov 6, 2024
12 checks passed
@Conaclos Conaclos deleted the conaclos/noUnusedImports-empty-imports branch November 6, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

📎 noUnusedImports should remove empty imports
2 participants