You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sort-keys rule in @stylexjs/eslint-plugin correctly detects any key in a style object that is not sorted as it should be. (This is not alphabetical, but ordered according to style specificity).
The issue is with the auto-fix offered. It only moves the particular key that is not sorted correctly, but it can often leave behind additional lint warnings in the same style object.
Expected behaviour"
When the auto-fix is applied, the entire object should be sorted as expected such that there are no lint warnings after the auto-fix.
The text was updated successfully, but these errors were encountered:
Thanks for the example. You are clicking on “fix this line”, isn't that what's supposed to do? Can ESLint itself do otherwise? Also, what about the fact that on save in Visual Studio Code with the ESLint plugin, all the warnings are being fixed at once (at least in my case)?
The
sort-keys
rule in@stylexjs/eslint-plugin
correctly detects any key in a style object that is not sorted as it should be. (This is not alphabetical, but ordered according to style specificity).The issue is with the auto-fix offered. It only moves the particular key that is not sorted correctly, but it can often leave behind additional lint warnings in the same style object.
Expected behaviour"
When the auto-fix is applied, the entire object should be sorted as expected such that there are no lint warnings after the auto-fix.
The text was updated successfully, but these errors were encountered: