-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: use eslint-fix-utils
for element and property removals
#750
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #750 +/- ##
==========================================
- Coverage 97.88% 97.82% -0.06%
==========================================
Files 19 19
Lines 1180 1148 -32
Branches 142 140 -2
==========================================
- Hits 1155 1123 -32
Misses 25 25 ☔ View full report in Codecov by Sentry. |
eslint-fix-utils
for element and property removals
It definitely saved a fair amount of code in the cast of As far as the api surface itself, it seems reasonable from the usage side. |
Cool thanks! I'll go ahead and push this all through then. Agreed it's a little unfortunate to lose some of the nice optimizations in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Nice to see the cleanup it allowed for.
yield fixer.remove(tokenFromCurrentLine); | ||
} | ||
}, | ||
fix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to be able also use this on the new rule too!
🎉 This is included in version v0.21.1 🎉 The release is available on: Cheers! 📦🚀 |
PR Checklist
status: accepting prs
Overview
Uses the exported APIs added in JoshuaKGoldberg/eslint-fix-utils@6bf5c33.
@michaelfaith I'd love to get your input on this: how does the API feel to you? If you think they should be changed drastically -here and/or in the other repo- I'm definitely up for iterating on them. 🙂
The build failures can be ignored, they're some problem ineslint-fix-utils
that I haven't dug into yet.Blocked on: JoshuaKGoldberg/eslint-fix-utils#7✅[email protected]
should work now.💖