-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
CSS: Prettier wrongly adds new semicolons to at-rule preludes #8201
Copy link
Copy link
Labels
lang: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.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency
Metadata
Metadata
Assignees
Labels
lang: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.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior:
What's breaking things is that Prettier is introducing a totally new
;character after thedthat previously didn't exist anywhere. I'm not sure why it does this, but it's causing enough breakage that I'm going to have to disable Prettier in some workflows unless/until this is fixed.Also, if it helps, this is not problematic:
@a b({c: d}) {}, but when you make either of those innermost tokens into a string (e.g.@a b({"c": d}) {}or@a b({c: "d"}) {}) Prettier seems to have an issue.Thanks!