-
Notifications
You must be signed in to change notification settings - Fork 23
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
Do not move properties across spread #3
Comments
This issue being open scares me away from using this project. This could have serious implications for anyone using this. Right? |
Without this fix, the project is unusable in a codebase that uses spread. |
This is unfortunate. Anyone have a branch where this is fixed and can submit a PR? Otherwise, any pointers on how to implement a fix? I'm no expert but I've written one autofixing eslint rule before, maybe I could take a stab at it. |
Hi folks, I've personally used this project not on entire codebase, but on particular files, so didn't implement spread case properly. Seeing as this is fairly popular request, will add handling for spread in new version this week. But be aware that changing order of keys in some very rare cases may affect how your code works (I believe that's why autofix its not implemented in core eslint). |
That's true, but that's due to bad quality of code, you should not confide in objects traversal order. |
@leo-buneev This is one of the most common lint offenses my team gets on CI – you will save us so much time ❤️ Thanks so much |
Should be fixed in 1.1.0, let me know if there are any problems. |
Earlier this was disabled due to lack of support for spreads. This now has been fixed in leo-buneev/eslint-plugin-sort-keys-fix#3
@leo-buneev amazing, thank you! I just reintroduced this plugin into a medium-sized React codebase and I can confirm it now works as intended. Thanks again |
See:
eslint/eslint#10715 (comment)
The text was updated successfully, but these errors were encountered: