Fix autofix for switch statements within literals #5051
Labels
status: ready to implement
is ready to be worked on by someone
syntax: css-in-js
relates to JS objects & template literals
type: bug
a problem with a feature or rule
upstream
relates to an upstream package
When I try to write a nested switch case inside a react component with styled-components while using the literal
css
, it duplicates a lot of lines that shouldn't be appended.I'm not sure if it's related to
"stylelint-config-recommended"
orstylelint-config-styled-components
.Given the code above, on a fix, it will be saved as:
npm script
"lint:css:fix": "stylelint src --fix"
Yes, it's related to styled-components
Not to duplicate the code mentioned above
It has duplicated almost all of my switch case code and what came below.
The text was updated successfully, but these errors were encountered: