sass / linter

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

Add a lint rule for != null and == null #16

Closed nex3 closed 6 years ago

nex3 commented 6 years ago

Because null in Sass is falsey, users should treat it as a boolean rather than explicitly checking for it. For example, @if index(...) { ... } is preferable to @if index(...) != null { ... }.