Update to latest eslint

This commit is contained in:
kpdecker
2015-09-01 17:56:32 -05:00
parent bff5fab8f9
commit 0aef72cb8e
20 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*global define */
/* global define */
import {isArray} from '../utils';
let SourceNode;
@@ -471,7 +471,7 @@ JavaScriptCompiler.prototype = {
let len = parts.length;
for (; i < len; i++) {
/*eslint-disable no-loop-func */
/* eslint-disable no-loop-func */
this.replaceStack((current) => {
let lookup = this.nameLookup(current, parts[i], type);
// We want to ensure that zero and false are handled properly if the context (falsy flag)
@@ -483,7 +483,7 @@ JavaScriptCompiler.prototype = {
return [' && ', lookup];
}
});
/*eslint-enable no-loop-func */
/* eslint-enable no-loop-func */
}
},
+2 -2
View File
@@ -1,4 +1,4 @@
/*eslint-disable new-cap */
/* eslint-disable new-cap */
import Visitor from './visitor';
export function print(ast) {
@@ -168,4 +168,4 @@ PrintVisitor.prototype.Hash = function(hash) {
PrintVisitor.prototype.HashPair = function(pair) {
return pair.key + '=' + this.accept(pair.value);
};
/*eslint-enable new-cap */
/* eslint-enable new-cap */
+1 -1
View File
@@ -1,4 +1,4 @@
/*global window */
/* global window */
export default function(Handlebars) {
/* istanbul ignore next */
let root = typeof global !== 'undefined' ? global : window,
+2 -2
View File
@@ -31,7 +31,7 @@ export let toString = Object.prototype.toString;
// Sourced from lodash
// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt
/*eslint-disable func-style */
/* eslint-disable func-style */
let isFunction = function(value) {
return typeof value === 'function';
};
@@ -43,7 +43,7 @@ if (isFunction(/x/)) {
};
}
export {isFunction};
/*eslint-enable func-style */
/* eslint-enable func-style */
/* istanbul ignore next */
export const isArray = Array.isArray || function(value) {