sass / linter

An experimental Sass linter written using the Dart Sass AST
MIT License
39 stars 6 forks source link

Implement "Nesting Depth" lint rule #11

Open srawlins opened 6 years ago

srawlins commented 6 years ago

Need to implement a lint rule that reports style rules that are too deep, in terms of Sass nesting (not selector specificity):

p.foo {
  .bar {
    .error {
      .severe { // LINT
        color: red;
      }
    }
  }
}

This is similar to scss-lint's NestingDepth.