1 # block-closing-brace-newline-after
3 Require a newline or disallow whitespace after the closing brace of blocks.
9 * The newline after this brace */
12 This rule allows an end-of-line comment separated from the closing brace by spaces, as long as the comment contains no newlines. For example,
17 } /* end-of-line comment */
20 This rule allows a trailing semicolon after the closing brace of a block. For example,
25 background-color: hsl(120, 70%, 95%);
34 `string`: `"always"|"always-single-line"|"never-single-line"|"always-multi-line"|"never-multi-line"`
38 There *must always* be a newline after the closing brace.
40 The following patterns are considered violations:
43 a { color: pink; }b { color: red; }
51 The following patterns are *not* considered violations:
58 ### `"always-single-line"`
60 There *must always* be a newline after the closing brace in single-line blocks.
62 The following patterns are considered violations:
65 a { color: pink; } b { color: red; }
68 The following patterns are *not* considered violations:
80 ### `"never-single-line"`
82 There *must never* be whitespace after the closing brace in single-line blocks.
84 The following patterns are considered violations:
87 a { color: pink; } b { color: red; }
90 The following patterns are *not* considered violations:
93 a { color: pink; }b { color: red; }
101 ### `"always-multi-line"`
103 There *must always* be a newline after the closing brace in multi-line blocks.
105 The following patterns are considered violations:
112 The following patterns are *not* considered violations:
115 a { color: pink; }b { color: red; }
124 ### `"never-multi-line"`
126 There *must never* be whitespace after the closing brace in multi-line blocks.
128 The following patterns are considered violations:
135 The following patterns are *not* considered violations:
138 a { color: pink; } b { color: red; }
146 ## Optional secondary options
148 ### `ignoreAtRules: ["/regex/", "non-regex"]`
150 Ignore specified at-rules.
152 For example, with `"always"` or `"always-multi-line"`.
160 The following patterns are *not* considered violations:
173 @if ($var) { color: pink; } @else { color: blue; }