Permalink
Browse files

Update JSHint's options.

  • Loading branch information...
1 parent a0ab9c5 commit dbf43175b4d9ce4ae3df7f6e811d07e14a48e5ec @XhmikosR XhmikosR committed Feb 26, 2015
Showing with 5 additions and 6 deletions.
  1. +4 −3 .jshintrc
  2. +1 −1 Gruntfile.js
  3. +0 −2 tasks/lib/uglify.js
View
@@ -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
}
View
@@ -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);
View
@@ -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');
@@ -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);

0 comments on commit dbf4317

Please sign in to comment.