Skip to content

Commit

Permalink
Merge pull request #33 from ntwb/update-rule-nested-empty-line-before
Browse files Browse the repository at this point in the history
Update `rule-nested-empty-line-before` rule with option `ignore: ["after-comment"]`.
  • Loading branch information
ntwb committed May 31, 2020
1 parent 117bbf1 commit 9c80aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/stylelint-config-wordpress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# HEAD

* Added: `max-empty-lines` rule, limits the number of adjacent empty lines to 2.
* Updated `rule-nested-empty-line-before` rule with option `ignore: ["after-comment"]`.

# 2.0.2

Expand Down
4 changes: 3 additions & 1 deletion packages/stylelint-config-wordpress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ module.exports = {
"number-zero-length-no-unit": true,
"property-no-vendor-prefix": true,
"rule-no-shorthand-property-overrides": true,
"rule-nested-empty-line-before": "always",
"rule-nested-empty-line-before": [ "always", {
ignore: ["after-comment"],
} ],
"rule-non-nested-empty-line-before": [ "always", {
ignore: ["after-comment"],
} ],
Expand Down

0 comments on commit 9c80aa0

Please sign in to comment.