trailingComma setting is not respected in SCSS lists/maps.
See original GitHub issuePrettier 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:
- Created 6 years ago
- Reactions:2
- Comments:15 (14 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jgerigmeyer sound reasonable
Let’s do it 👍
Labelling as a feature since the current output is valid SCSS.