philcali/sbt-jslint — pull request #7 by ms-tg (2012-10-17 20:16:14+00:00)
Title: Add support for jslint option "predef"

Adds an sbt key `jslint-predefs`, exposing the jslint option `predefs`.

The value is a sequence of strings which represent a list of javascript identifiers to treat as available global variables.

This is useful for users of Underscore.js, jQuery, Require.js, etc.

Example:

predefs in jslint := Seq("_", "$", "define")

See also:
https://github.com/happygiraffe/jslint4java/blob/master/jslint4java-docs/src/main/resources/cli.html#L46
https://github.com/happygiraffe/jslint4java/blob/master/jslint4java/src/main/java/com/googlecode/jslint4java/Option.java#L82