Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 394 Bytes

declarations-before-nesting.md

File metadata and controls

29 lines (21 loc) · 394 Bytes

Declarations Before Nesting

Rule declarations-before-nesting will enforce that declarations should be written before nesting in a ruleset.

Examples

When enabled, the following are allowed:

.foo {
  content: 'baz';

  .bar {
    content: 'qux';
  }
}

When enabled, the following are disallowed:

.foo {
  .bar {
    content: 'qux';
  }
  
  content: 'baz';
}