-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Extra space in styled component grid-area named area #8250
Copy link
Copy link
Labels
area:multiparserIssues with printing one language inside another, like CSS-in-JSIssues with printing one language inside another, like CSS-in-JSlang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
area:multiparserIssues with printing one language inside another, like CSS-in-JSIssues with printing one language inside another, like CSS-in-JSlang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
This may be similar enough to #5465 to warrant a duplicate flag. I'm filing a non-
var()example since the title of #5465 indicates that issue is specific to withinvar().Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior:
grid-area: area-[prop name]without a space after the-In this specific case, it is trivial to move
area-into the function, but nonetheless, the formatter does change the behavior of the code.