Here's a code snippet you can add to the README if you want:
val localSettings = lintSettings ++ inConfig(Compile)(Seq(
// jslint
sourceDirectory in jslint <<= (baseDirectory)(_ / "app" / "assets" / "javascripts"),
flags in jslint := Seq("anon", "sloppy", "nomen", "newcap"),
indent in jslint := 2,
predefs in jslint := List("angular", "Showdown", "moment", "_"),
jslintConsoleOutput in Compile <<= (streams, formatter in (Compile, jslintConsoleOutput)) map { (s, f) =>
(results: JSLintResults) => {
results.filter(!_.getIssues.isEmpty).map(f.format).map(s.log.warn(_))
results.filter(!_.getIssues.isEmpty).flatMap(_.getIssues.asScala).foreach { i =>
throw new AssetCompilationException(Some(file(i.getSystemId)), "JSLint: " + i.getReason, Some(i.getLine),Some(i.getCharacter))
}
}
}
))