From b57d9f05afccc8d582625041e8cf91a272a6de5e Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 12 Feb 2016 17:42:48 -0500 Subject: [PATCH] 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. --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index b81b4ac..1d4aca2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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'] }