Skip to content

Commit

Permalink
feat(): include loopfunc with the default relaxing jshint options.
Browse files Browse the repository at this point in the history
Fixes #25

Please _do_ note that this will now also hide legitimate reports.
  • Loading branch information
cueedee committed Oct 25, 2017
1 parent 4dba3c3 commit 4b21a36
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions lib/hint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 [

Expand Down

0 comments on commit 4b21a36

Please sign in to comment.