question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trailingComma setting is not respected in SCSS lists/maps.

See original GitHub issue

Prettier 1.11.0 Playground link

--parser scss
--trailing-comma all

Input:

$my-colors: (
  'red',
  'blue',
);

Output:

$my-colors: (
  "red",
  "blue"
);

Expected behavior:

This might be intentional, but is there a reason why the trailingComma setting isn’t respected in other-than-JS languages (e.g. SCSS)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

5reactions
alexander-akaitcommented, Mar 1, 2018

@jgerigmeyer sound reasonable

Let’s do it 👍

3reactions
j-f1commented, Mar 1, 2018

Labelling as a feature since the current output is valid SCSS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

trailingComma setting is not respected in SCSS lists/maps #755
When I have prettier-vscode active, it does not respect the trailingComma setting for SCSS lists/maps. ... Example code: $spacers: map-merge( ( 0: ...
Read more >
How to turn off the prettier trailing comma in VS Code?
prettierrc ) I can not find such a file. But by searching through all the files ( Ctrl + Shift + F )...
Read more >
File: SASS_REFERENCE
Sass is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules,...
Read more >
File: SASS_CHANGELOG — Sass Documentation
Sass no longer watches the current working directory unless it is on the load ... the same power as Sass-based functions with respect...
Read more >
Groovy Language Documentation
Setting a Preference; Listing Preferences; Clearing Preferences (i.e. ... Although the compiler will not complain about Groovydoc comments not being ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found