From 4b21a36a534f8c8145757b38815ad1248132457f Mon Sep 17 00:00:00 2001 From: cueedee Date: Wed, 25 Oct 2017 14:51:13 +0200 Subject: [PATCH] feat(): include `loopfunc` with the default relaxing `jshint` options. Fixes #25 Please _do_ note that this will now also hide legitimate reports. --- lib/hint.coffee | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/hint.coffee b/lib/hint.coffee index 3225d56..a9e7070 100644 --- a/lib/hint.coffee +++ b/lib/hint.coffee @@ -25,18 +25,25 @@ supplant = ( str, args ) -> defaultOptions = [ - 'undef' + ## http://jshint.com/docs/options/#enforcing-options + ## + 'undef' ## http://jshint.com/docs/options/#undef - ## options to relax for cs + ## Options to relax for cs. + ## + ## http://jshint.com/docs/options/#relaxing-options ## - 'eqnull' - 'expr' - 'shadow' - 'sub' - 'multistr' + 'eqnull' ## http://jshint.com/docs/options/#eqnull + 'expr' ## http://jshint.com/docs/options/#expr + 'loopfunc' ## http://jshint.com/docs/options/#loopfunc + 'multistr' ## http://jshint.com/docs/options/#multistr + 'shadow' ## http://jshint.com/docs/options/#shadow + 'sub' ## http://jshint.com/docs/options/#sub ] +## Warnings / errors for which no relaxing options exist will be filtered away. +## errorsToSkip = {} errorsToSkip[ error.code ] = error for error in [