Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit 4cdf51f

Browse files
authored
fix: Add @import to ignoreAtRules option in at-rule-empty-line-before rule for SCSS config (#131)
1 parent 76d2038 commit 4cdf51f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# HEAD
2+
3+
- Added: Added `import` to `ignoreAtRules` option in `at-rule-empty-line-before` rule for SCSS config.
4+
15
# 10.0.1
26

37
- Removed: `rule-non-nested-empty-line-before` rule from SCSS config. This rule is deprecated in stylelint v8, the new `rule-empty-line-before` rule already exists in the primary config.

__tests__/scss-valid.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ $map: (
2121
} @else {
2222
display: inline-block;
2323
}
24+
25+
@import "../some/url";
26+
@import "../another/url";

scss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
} ],
1818
"at-rule-empty-line-before": [
1919
"always", {
20-
"ignoreAtRules": ["else"],
20+
"ignoreAtRules": [ "else", "import" ],
2121
},
2222
],
2323
"block-opening-brace-space-before": "always",

0 commit comments

Comments
 (0)