rules.scsslint.SpaceBeforeBrace.html Maven / Gradle / Ivy
Details
Opening braces should be preceded by a single space.
Bad: no space before brace
p{
...
}
Bad: more than one space before brace
p {
...
}
Good
p {
...
}
Setting allow_single_line_padding
to true
allows you to use extra spaces to
nicely align single line blocks, so you can write:
.icon-chevron-up { &:before { content: "\e030"; } }
.icon-chevron-down { &:before { content: "\e031"; } }
.icon-chevron-left { &:before { content: "\e032"; } }
.icon-chevron-right { &:before { content: "\e033"; } }
Set style
to new_line
if you prefer to use a new line before braces, rather than a single space.
p
{
...
}
Configuration Option
Description
allow_single_line_padding
Allow single line blocks to have extra spaces for nicer formatting (default false)
style
space
or new_line
(default space
)