jsHint: Allow == null.

Relax jsHint's barbaric and antiquated default behavior on triple-equals
null comparisons. Allow expressive, precise, and subtle expressions such
as CoffeeScript's use of "== null" for testing against null OR undefined
under the existential operator.
This commit is contained in:
hacksalot 2016-02-12 17:42:48 -05:00
parent b26799f9fc
commit b57d9f05af
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ module.exports = function (grunt) {
jshint: {
options: {
laxcomma: true,
expr: true
expr: true,
eqnull: true
},
all: ['Gruntfile.js', 'dist/cli/**/*.js', 'test/*.js']
}