Skip to content

Commit 8a0789d

Browse files
committed
fix: Add @import to ignoreAtRules option in at-rule-empty-line-before rule for SCSS config (#131)
1 parent cb183fc commit 8a0789d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/stylelint-config-wordpress/CHANGELOG.md

+4
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.

packages/stylelint-config-wordpress/__tests__/scss-valid.scss

+3
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";

packages/stylelint-config-wordpress/scss.js

+1-1
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)