JSHINT: how to disable the warning Missing space after anonymous 'function'

javascript, jshint

Solution

The `indent` option used to force the `white` option on. This is no longer the case in the most recent version.

Try adding the following to your .jshintrc:

"white": false

Problem

I got warning in jshint ``` '[L76:C24] Missing space after 'function'' ``` I follows Nicholas Zakkas Maintainable javascript styles where there is no space after anonymous function. How to remove this warning in jshint? .jshintrc ``` { "node": true, "browser": true, "es5": true, "esnext": true, "bitwise": true, "camelcase": true, "curly": true, "eqeqeq": true, "immed": true, "indent": 4, "latedef": true, "newcap": true, "noarg": true, "quotmark": "single", "regexp": true, "undef": true, "unused": true, "strict": true, "trailing": true, "smarttabs": true } ```

Original source