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

fix: consider import removal to be dirty #89

Merged
merged 1 commit into from
Aug 7, 2024
Merged

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Aug 7, 2024

When using the transformArrayMethod helper, we currently only consider the change to be dirty if call expressions we mutated.

This means imports of these modules will not be removed unless there are also associated call expressions.

This fix simply considers removal of the import to be a dirty change.

Fixes #88

When using the `transformArrayMethod` helper, we currently only consider
the change to be dirty if call expressions we mutated.

This means imports of these modules will not be removed unless there are
also associated call expressions.

This fix simply considers removal of the import to be a dirty change.
@43081j 43081j marked this pull request as ready for review August 7, 2024 17:10
@thepassle thepassle merged commit 5e85a9a into main Aug 7, 2024
3 checks passed
@43081j 43081j deleted the fix-dirty-arrays branch August 7, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dirty check in array-like codemods is incorrect
2 participants