Update JSHint rules.

pull/462/merge
XhmikosR 9 years ago
parent 3a43e93b5f
commit 522fc6828c

@ -1,13 +1,14 @@
{ {
"boss": true,
"curly": true, "curly": true,
"eqeqeq": true, "eqeqeq": true,
"eqnull": true,
"immed": true, "immed": true,
"latedef": true, "latedef": true,
"newcap": true, "newcap": true,
"noarg": true, "noarg": true,
"node": true,
"sub": true, "sub": true,
"undef": true, "undef": true,
"boss": true, "unused": true
"eqnull": true, }
"node": true
}

@ -2,20 +2,14 @@
* grunt-contrib-watch * grunt-contrib-watch
* http://gruntjs.com/ * http://gruntjs.com/
* *
* Copyright (c) 2014 "Cowboy" Ben Alman, contributors * Copyright (c) 2015 "Cowboy" Ben Alman, contributors
* Licensed under the MIT license. * Licensed under the MIT license.
*/ */
'use strict'; 'use strict';
var path = require('path');
var EE = require('events').EventEmitter;
var util = require('util');
module.exports = function(grunt) { module.exports = function(grunt) {
var livereload = require('./livereload')(grunt);
// Create a TaskRun on a target // Create a TaskRun on a target
function TaskRun(target) { function TaskRun(target) {
this.name = target.name || 0; this.name = target.name || 0;

@ -82,7 +82,7 @@ module.exports = function(grunt) {
// initialize taskrun // initialize taskrun
var targets = taskrun.init(name, {target: target}); var targets = taskrun.init(name, {target: target});
targets.forEach(function(target, i) { targets.forEach(function(target) {
if (typeof target.files === 'string') { target.files = [target.files]; } if (typeof target.files === 'string') { target.files = [target.files]; }
// Process into raw patterns // Process into raw patterns

@ -176,7 +176,7 @@ exports.livereload = {
var cwd = path.resolve(fixtures, 'livereload'); var cwd = path.resolve(fixtures, 'livereload');
var assertWatch = helper.assertTask(['watch', '-v'], {cwd: cwd}); var assertWatch = helper.assertTask(['watch', '-v'], {cwd: cwd});
assertWatch([function() { assertWatch([function() {
request(35729, function(data) { request(35729, function() {
grunt.file.write(path.join(cwd, 'sass', 'one.scss'), '#one {}'); grunt.file.write(path.join(cwd, 'sass', 'one.scss'), '#one {}');
}); });
}], function(result) { }], function(result) {
@ -194,7 +194,7 @@ exports.livereload = {
var cwd = path.resolve(fixtures, 'livereload'); var cwd = path.resolve(fixtures, 'livereload');
var assertWatch = helper.assertTask(['watch:livereloadOnErrorTrue', '-v'], {cwd: cwd}); var assertWatch = helper.assertTask(['watch:livereloadOnErrorTrue', '-v'], {cwd: cwd});
assertWatch([function() { assertWatch([function() {
request(35729, function(data) { request(35729, function() {
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;'); grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
}); });
}], function(result) { }], function(result) {
@ -209,7 +209,7 @@ exports.livereload = {
var cwd = path.resolve(fixtures, 'livereload'); var cwd = path.resolve(fixtures, 'livereload');
var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalse', '-v'], {cwd: cwd}); var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalse', '-v'], {cwd: cwd});
assertWatch([function() { assertWatch([function() {
request(35729, function(data) { request(35729, function() {
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;'); grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
}); });
}], function(result) { }], function(result) {
@ -225,7 +225,7 @@ exports.livereload = {
var cwd = path.resolve(fixtures, 'livereload'); var cwd = path.resolve(fixtures, 'livereload');
var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalseNoSpawn', '-v'], {cwd: cwd}); var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalseNoSpawn', '-v'], {cwd: cwd});
assertWatch([function() { assertWatch([function() {
request(35729, function(data) { request(35729, function() {
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;'); grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
}); });
}], function(result) { }], function(result) {

Loading…
Cancel
Save