Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upselectively disabling rules on a case-by-case basis. maybe. #6
Comments
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
soyuka
commented
Jan 27, 2015
|
+1 about |
This comment has been minimized.
This comment has been minimized.
|
Since the common case of |
feross
closed this
Jan 27, 2015
This comment has been minimized.
This comment has been minimized.
|
Perfect. That was the exact usecase. |
This comment has been minimized.
This comment has been minimized.
|
Yay! |
timoxley commentedJan 27, 2015
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.