-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selectively disabling rules on a case-by-case basis. maybe. #6
Comments
Hahahah, nice. I just added documentation for how to ignore specific warnings. See: https://github.com/feross/standard/blob/master/README.md#how-do-i-hide-a-certain-warning |
The most useful use-case for if (obj == null) {
// obj is `null` or `undefined`
} Which is nicer than: if (obj === null || obj === undefined) {
// obj is `null` or `undefined`
} JavaScript Standard Style allows |
+1 about |
Since the common case of |
Perfect. That was the exact usecase. |
Yay! |
Sometimes I do actually want
==
. I can't think of any usecases now but I find that on occasion I explicitly opt for==
.I'm wondering if some of these style restrictions could be selectively 'disabled' for a particular case if a comment is present to explain why an ill-advised practice was used instead of best practice.
maybe.
The text was updated successfully, but these errors were encountered: