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.

Add `first-line` except-option for `double-slash-comment-empty-line-before`

See original GitHub issue

Using

"scss/double-slash-comment-empty-line-before": ["always", {"except": [
	"first-nested"
], "ignore": [
	"between-comments",
	"stylelint-commands"
]}]

still gives errors if the comment is on line 1 of a file.

It would be nice to have an exclude or ignore option for this.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
dryomacommented, Feb 19, 2017

Fixed in 1.4.2 .Thanks for reporting!

1reaction
LoChanHi5commented, Feb 15, 2017

I also have the same issue that @thasmo described in https://github.com/kristerkari/stylelint-scss/issues/100#issuecomment-279647041 but only for comments that appear in the first line of the file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sed - How to insert text before the first line of a file?
Use sed 's insert ( i ) option which will insert the text in the preceding line. sed '1 i\. Question author's update:...
Read more >
Add spaces to first line and another amount of spaces to all ...
It works for the first line spaces but the other one gives me this error : sed: -e expression #1, char 4: extra...
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