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 linter correctly identifies that border-bottom should come before background-color in the Wrapper component. But when I run the lint command with --fix flag, the result is this:
Reordering won't happen if styled component has interpolation. It's unsafe, because it might change the logic of a component. This is why you don't see properties reordered. It is safe just check the order, so this is why you see warning.
I have a custom order config on a project using Styled Components. A simple file example looks like this:
The linter correctly identifies that
border-bottom
should come beforebackground-color
in theWrapper
component. But when I run the lint command with--fix
flag, the result is this:So basically, it hasn't fixed the actual problem in
Wrapper
but has brokenButtonStyled
, overall making the code invalid.The text was updated successfully, but these errors were encountered: