Skip to content

Commit

Permalink
Update JSHint's options.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Feb 26, 2015
1 parent a0ab9c5 commit dbf4317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"sub": true,
"undef": true,
"boss": true,
"eqnull": true,
"node": true
"unused": true
}
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ module.exports = function(grunt) {

var done = this.async();

function onComplete(error, result, code) {
function onComplete(error, result) {
grunt.log.write("\n > " + result.stdout.split("\n").join("\n > ") + "\n");
var rv = error ? true : new Error("Task " + task + " unexpectedly passed.");
done(rv);
Expand Down
2 changes: 0 additions & 2 deletions tasks/lib/uglify.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// External libs.
var path = require('path');
var fs = require('fs');
var UglifyJS = require('uglify-js');
var _ = require('lodash');
var uriPath = require('uri-path');
Expand Down Expand Up @@ -175,7 +174,6 @@ exports.init = function(grunt) {
if (options.sourceMap) {

var destBasename = path.basename(dest);
var destPath = path.dirname(dest);
var sourceMapIn;
if (options.sourceMapIn) {
sourceMapIn = grunt.file.readJSON(options.sourceMapIn);
Expand Down

0 comments on commit dbf4317

Please sign in to comment.