Sublime-JSHint icon indicating copy to clipboard operation
Sublime-JSHint copied to clipboard

Support negated predef

Open duncanbeevers opened this issue 10 years ago • 3 comments

In a .jshint config, you can negate globals via "predef".

This is useful in cases where you want to use jshint's dictionary of browser globals, but want to explicitly blacklist a subset of those entries.

{
  "browser": true,
  "predef": ["-event"]
}

duncanbeevers avatar May 06 '15 20:05 duncanbeevers

Is this an officially supported jshint thing? I had no idea. In any case, please also add some documentation in the readme about it.

victorporof avatar Jun 07 '15 16:06 victorporof

It was an official feature, though predef is getting deprecated.

duncanbeevers avatar Jun 08 '15 03:06 duncanbeevers

Pushed update to var usage.

duncanbeevers avatar Jun 08 '15 04:06 duncanbeevers