-
Notifications
You must be signed in to change notification settings - Fork 144
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
Support eslint fix command in fixable rules #202
Comments
Are we sure we can implement the fix code for those with ease? They seem quite complex or even ambiguous. How do you plan to fix both of them? I was thinking about adding fix code for some other rules that are more simple than those, like |
Makes sense?
Good, will add them in the current list here |
Those fix strategies sound fine! Let us know if you find any edge case when implementing any of them. |
Sorry guys .. Have been out for a long time, but will return helping the project, starting for this issue 🤘 |
Did we had some change into the scenario exposed here? cc/ @Belco90 |
I don't think so, but these rules are gonna be refactor for v4 pretty soon. I don't know if it would be better to wait for v4 then? Not a major issue, but will cause conflicts on v4 of course. |
@Belco90 Makes sense!! That's something more that I could help? Maybe the rules refactor |
I guess we have two options:
Ideally I'd prefer not stopping adding/fixing things in current v3, but all modifications necessary for this issue will slow me down in v4 since I have to update v4 branches, adapt the code, check everything works as expected etc. And there would be a lot of conflicts when updating v4 with master. So I suggest you to read this comment where you can find the analysis for necessary work on v4, and then check the current merged PRs for #198 (you can find them in "linked pull requests" section of that issue) so you get a better understanding about the new structure of the plugin. Then I guess we can organize the work if you could help with v4 (moving tasks from my notion analysis to this repo's Project). Go through that and let me know what you think! Answer in #198 if you think that's more appropriate. |
As suggested in #186 we could start to allow fix for rules that's possible to do that.
Rules that we could implement fix:
no-side-effects-wait-for
no-multiple-assertions-wait-for
await-async-query
-> feat(await-async-query): add auto-fix #917await-async-utils
-> feat(await-async-utils): add auto-fix #918await-fire-event
no-await-sync-query
-> feat(no-await-sync-queries): add auto-fix #919I'm working to map more rules that's open for that
The text was updated successfully, but these errors were encountered: