Skip to content

Commit dbf4317

Browse files
committedFeb 26, 2015
Update JSHint's options.
1 parent a0ab9c5 commit dbf4317

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
 

‎.jshintrc

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2+
"boss": true,
23
"curly": true,
34
"eqeqeq": true,
5+
"eqnull": true,
46
"immed": true,
57
"latedef": true,
68
"newcap": true,
79
"noarg": true,
10+
"node": true,
811
"sub": true,
912
"undef": true,
10-
"boss": true,
11-
"eqnull": true,
12-
"node": true
13+
"unused": true
1314
}

‎Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ module.exports = function(grunt) {
284284

285285
var done = this.async();
286286

287-
function onComplete(error, result, code) {
287+
function onComplete(error, result) {
288288
grunt.log.write("\n > " + result.stdout.split("\n").join("\n > ") + "\n");
289289
var rv = error ? true : new Error("Task " + task + " unexpectedly passed.");
290290
done(rv);

‎tasks/lib/uglify.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// External libs.
1212
var path = require('path');
13-
var fs = require('fs');
1413
var UglifyJS = require('uglify-js');
1514
var _ = require('lodash');
1615
var uriPath = require('uri-path');
@@ -175,7 +174,6 @@ exports.init = function(grunt) {
175174
if (options.sourceMap) {
176175

177176
var destBasename = path.basename(dest);
178-
var destPath = path.dirname(dest);
179177
var sourceMapIn;
180178
if (options.sourceMapIn) {
181179
sourceMapIn = grunt.file.readJSON(options.sourceMapIn);

0 commit comments

Comments
 (0)
Please sign in to comment.