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

Commit b3ccd53

Browse files
committed
Merge pull request #33 from ntwb/update-rule-nested-empty-line-before
Update `rule-nested-empty-line-before` rule with option `ignore: ["after-comment"]`.
2 parents ccadb84 + 4ea7ae3 commit b3ccd53

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# HEAD
22

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

56
# 2.0.2
67

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ module.exports = {
4646
"number-zero-length-no-unit": true,
4747
"property-no-vendor-prefix": true,
4848
"rule-no-shorthand-property-overrides": true,
49-
"rule-nested-empty-line-before": "always",
49+
"rule-nested-empty-line-before": [ "always", {
50+
ignore: ["after-comment"],
51+
} ],
5052
"rule-non-nested-empty-line-before": [ "always", {
5153
ignore: ["after-comment"],
5254
} ],

0 commit comments

Comments
 (0)