Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

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

Closed
nex3 opened this issue Sep 19, 2018 · 0 comments
Closed

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

nex3 opened this issue Sep 19, 2018 · 0 comments

Comments

@nex3
Copy link

nex3 commented Sep 19, 2018

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 { ... }.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant