Declaration newline failing to work.
See original GitHub issueUsing CSScomb CLI with a configuration made from the online build tool. Even though I am specifying to insert a newline after each declaration, CSScomb is making it single-lined.
Node.js: v7.6.0 NPM: v4.1.2
Input:
*::-webkit-scrollbar-track
{
color: #222831;
border-style: solid;
background-color: white;
}
Output:
*::-webkit-scrollbar-track
{
color: #222831; border-style: solid; background-color: white;
}
Configuration:
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "upper",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": false,
"leading-zero": true,
"quotes": "single",
"sort-order-fallback": "abc",
"space-before-colon": "",
"space-after-colon": " ",
"space-before-combinator": " ",
"space-after-combinator": " ",
"space-between-declarations": "\n",
"space-before-opening-brace": " ",
"space-after-opening-brace": "\n",
"space-after-selector-delimiter": " ",
"space-before-selector-delimiter": "",
"space-before-closing-brace": "\n",
"strip-spaces": true,
"tab-size": true,
"unitless-zero": true,
"vendor-prefix-align": true
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
ESlint how force declaration new line ? make illegal inline ...
Here's an example of it working with a really lazy config using "*". https://eslint.org/demo# · Share. Share a link to this answer.
Read more >Add new rule declaration-newline-after · Issue #3727 - GitHub
I would like to enforce a new line after some of the declarations. What solution would you like to see? Add a new...
Read more >What's the point in adding a new line to the end of a file?
A file that is not empty and does not end with a newline is therefore not a text file.
Read more >Creating a New Line in C++ - Udacity
In this article, we explore how to output text, what it means to roll an output to a new line in C++, and...
Read more >C51: '\N' Does Not Work in printf() Statements - Arm Developer
In most C compilers, including ours, the newline escape sequence '\n' yields an ASCII line feed character. The C escape sequence for a...
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 FreeTop 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
Top GitHub Comments
Have the similar issue.
Works as expected with the latest release on MacOS. This looks related to the newline issue being worked on at #606.