Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The `unused` option can now be used to display unused variables.

Previously, the `--show-non-errors` CLI option was being used.
  • Loading branch information...
commit 72d70ecb9ef7a2669aa5ab7a5d5139a9118f499f 1 parent a3ccd81
@brentlintner brentlintner authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  .jshintrc
  2. +1 −1  tasks/lint.js
View
3  .jshintrc
@@ -36,5 +36,6 @@
"undef": true,
"sub": true,
"strict": false,
- "white": true
+ "white": true,
+ "unused": true
}
View
2  tasks/lint.js
@@ -1,7 +1,7 @@
module.exports = function (files) {
var args = files && files.length > 0 ? files : ["."],
spawn = require('child_process').spawn,
- cmd = spawn("jshint", args.concat(["--show-non-errors"]));
+ cmd = spawn("jshint", args);
function write(data) {
process.stdout.write(new Buffer(data).toString("utf-8"));
Please sign in to comment.
Something went wrong with that request. Please try again.