Closed ArkadiK94 closed 1 month ago
I am closing this issue because it is not a bug it is a breaking change. I am trying to find an easier way for developers to add ampersand in the beginning of all pseudo classes with Stylelint when I will find one I will open an issue to update the docs with a solution.
In styled components v6 - A pseudo selectors that was written before without ampersand(&) now act differently without any errors or warnings so it makes the update to this version problematic because the bugs are "silent".
We need to implement new lint rule with the usage of Stylelint and other packages to check for pseudo selectors without ampersand (&). Then we will report an error, and fix it by adding it.
Is this issue for here? Did someone already do it? (I didn't see in the styled components docs) What do you think?
If it is legitimate, I would like to work on it and update the docs accordingly with a solution.