Update JSHint rules.
This commit is contained in:
parent
3a43e93b5f
commit
522fc6828c
@ -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,20 +2,14 @@
|
||||
* grunt-contrib-watch
|
||||
* http://gruntjs.com/
|
||||
*
|
||||
* Copyright (c) 2014 "Cowboy" Ben Alman, contributors
|
||||
* Copyright (c) 2015 "Cowboy" Ben Alman, contributors
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var EE = require('events').EventEmitter;
|
||||
var util = require('util');
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var livereload = require('./livereload')(grunt);
|
||||
|
||||
// Create a TaskRun on a target
|
||||
function TaskRun(target) {
|
||||
this.name = target.name || 0;
|
||||
|
@ -82,7 +82,7 @@ module.exports = function(grunt) {
|
||||
// initialize taskrun
|
||||
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]; }
|
||||
|
||||
// Process into raw patterns
|
||||
|
@ -176,7 +176,7 @@ exports.livereload = {
|
||||
var cwd = path.resolve(fixtures, 'livereload');
|
||||
var assertWatch = helper.assertTask(['watch', '-v'], {cwd: cwd});
|
||||
assertWatch([function() {
|
||||
request(35729, function(data) {
|
||||
request(35729, function() {
|
||||
grunt.file.write(path.join(cwd, 'sass', 'one.scss'), '#one {}');
|
||||
});
|
||||
}], function(result) {
|
||||
@ -194,7 +194,7 @@ exports.livereload = {
|
||||
var cwd = path.resolve(fixtures, 'livereload');
|
||||
var assertWatch = helper.assertTask(['watch:livereloadOnErrorTrue', '-v'], {cwd: cwd});
|
||||
assertWatch([function() {
|
||||
request(35729, function(data) {
|
||||
request(35729, function() {
|
||||
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
|
||||
});
|
||||
}], function(result) {
|
||||
@ -209,7 +209,7 @@ exports.livereload = {
|
||||
var cwd = path.resolve(fixtures, 'livereload');
|
||||
var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalse', '-v'], {cwd: cwd});
|
||||
assertWatch([function() {
|
||||
request(35729, function(data) {
|
||||
request(35729, function() {
|
||||
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
|
||||
});
|
||||
}], function(result) {
|
||||
@ -225,7 +225,7 @@ exports.livereload = {
|
||||
var cwd = path.resolve(fixtures, 'livereload');
|
||||
var assertWatch = helper.assertTask(['watch:livereloadOnErrorFalseNoSpawn', '-v'], {cwd: cwd});
|
||||
assertWatch([function() {
|
||||
request(35729, function(data) {
|
||||
request(35729, function() {
|
||||
grunt.file.write(path.join(cwd, 'lib', 'one.js'), 'var one = true;');
|
||||
});
|
||||
}], function(result) {
|
||||
|
Loading…
Reference in New Issue
Block a user