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.

Declaration newline failing to work.

See original GitHub issue

Using 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:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kostia-hontaraucommented, Aug 18, 2017

Have the similar issue.

0reactions
jdaltoncommented, May 7, 2019

Works as expected with the latest release on MacOS. This looks related to the newline issue being worked on at #606.

Read more comments on GitHub >

github_iconTop 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 >

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