elirasza / stylelint-stylistic

Plugin for endangered stylelint stylistic rules.
Other
64 stars 3 forks source link

Issue with `block-closing-brace-empty-line-before` #18

Open crstauf opened 10 months ago

crstauf commented 10 months ago

Given this code:

primary-nav {

    @media ( width > 768px ) {

        &:not( :defined ) {

            .menu-item > *:not( a ),
            .menu-location-primary-drawer {
                display: none;
            }

        }

    }

}

I receive the following errors:

 12:3  ✖  Unexpected empty line before closing brace         stylistic/block-closing-brace-empty-line-before

with this in config:

{
  "rules": {
    "stylistic/block-closing-brace-empty-line-before": [ "never", { "except": [
      "after-closing-brace"
    ] } ],
  }
}

I expect that the exception of after-closing-brace would allow an empty line. Why does it not?

crstauf commented 6 months ago

Related: https://github.com/stylelint/stylelint/issues/6092