Open leo-petrucci opened 1 year ago
Any updates on fixing this?
I am also getting the following errors due to the same problem:
at-rule or selector expected
,
semi-colon expected
,
) expected
For the following snippet:
&.editField {
background-image: url(${({ theme }) =>
base_icon_URL + // ") expected" error shows here.
theme.tintedGlassHex(theme.foreground, theme.background).slice(1) +
'/pencil--v1.png'}); // "semi-colon expected" error shows here.
} // "at-rule or selector expected" error shows here.
I use Prettier to make my styled components look nice. Unfortunately sometimes Prettier wraps certain lines and that causes issue with the plugin which marks them as errors.
For example:
Gets formatted to:
Which the plugin marks as error:
I'm aware I can start typing them like this to avoid Prettier's formatting:
But I'm wondering if there's a better way to fix this?