forked from microsoft/typescript-styled-plugin
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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:
padding: ${({ theme }) => theme.spacing.xxs} ${({ theme }) => theme.spacing.xs};
Gets formatted to:
padding: ${({ theme }) => theme.spacing.xxs}
${({ theme }) => theme.spacing.xs};
Which the plugin marks as error:
semi-colon expectedts-styled-plugin(9999)
I'm aware I can start typing them like this to avoid Prettier's formatting:
padding: ${({ theme }) => `${theme.spacing.xxs} ${theme.spacing.xs}`};
But I'm wondering if there's a better way to fix this?
vadistic, timmywil, LaustinSpayce, sacru2red, stelladraco27 and 1 more
Metadata
Metadata
Assignees
Labels
No labels