Add `first-line` except-option for `double-slash-comment-empty-line-before`
See original GitHub issueUsing
"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:
- Created 7 years ago
- Reactions:1
- Comments:7
Top 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 >
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
Fixed in 1.4.2 .Thanks for reporting!
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.