Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 582 Bytes

indentation.md

File metadata and controls

41 lines (31 loc) · 582 Bytes

Indentation

Rule indentations will enforce an indentation size (in spaces) and ensure that tabs and spaces are not mixed.

Options

  • size: number (defaults to 2)

Examples

When enabled (assuming size: 2) the following are allowed:

.foo {
  content: 'bar';

  .baz {
    content: 'qux';

    // Waldo
    &--waldo {
      content: 'alpha';
    }
  }
}

When enabled (assuming size: 2) the following are disallowed:

.foo {
content: 'bar';
   .baz {
  content: 'qux';
  // Waldo
      &--waldo {
        content: 'alpha';
      }
    }
}