Skip to content

Commit

Permalink
Changed rules for @if @else and added ignore empty-line-before "block…
Browse files Browse the repository at this point in the history
…less-after-same-name-blockless"
  • Loading branch information
entioentio authored Oct 27, 2016
1 parent f57441c commit bb61632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ module.exports = {
"declaration-block-trailing-semicolon": "always",

"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-after": ["always", { "ignoreAtRules": ["if", "else"] }],
"block-closing-brace-newline-before": "always-multi-line",
"block-closing-brace-space-after": null,
"block-closing-brace-space-before": "always-single-line",
Expand Down Expand Up @@ -292,7 +292,7 @@ module.exports = {
"media-query-list-comma-space-after": "always",
"media-query-list-comma-space-before": "never",

"at-rule-empty-line-before": ["always", { "except": ["first-nested"] }],
"at-rule-empty-line-before": ["always", { "except": ["first-nested"], "ignore": ["blockless-after-same-name-blockless"], "ignoreAtRules": ["else"]}],
"at-rule-name-case":"lower",
"at-rule-name-newline-after": null,
"at-rule-name-space-after": "always",
Expand Down

0 comments on commit bb61632

Please sign in to comment.