jshint: use node options, but disallow console statements? jshint: use node options, but disallow console statements? node.js node.js

jshint: use node options, but disallow console statements?


First of all the syntax:

"globals": {    "console": false}

Is to allow console as a read only variable, so not what you want.

What does appear to work is the following setting:

"predef": ["-console"]

I couldn't find this directly documented, but the docs (http://jshint.com/docs/) mention the predef jshintrc option, and later talk about inline global blacklists (e.g. /* global -BLACKLIST */) and tests show that combining the two does work.