You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ignore empty scss files instead of writing a newline? #3440
For empty JS files, Prettier does not add a newline. I didn't know it worked that way. Since that is the case for JS, it should work the same for SCSS as well.
Activity
lydell commentedon Dec 9, 2017
Prettier makes sure that all files it formats ends with a single newline. Why would you want an exception for SCSS files with only a comment in it?
duailibe commentedon Dec 11, 2017
I can reproduce this:
lydell commentedon Dec 11, 2017
For empty JS files, Prettier does not add a newline. I didn't know it worked that way. Since that is the case for JS, it should work the same for SCSS as well.
lydell commentedon Dec 11, 2017
Or is JS wrong? Tough question.
Don't add end of line to empty CSS
Don't add end of line to empty CSS (#3723)