[eslint] remove exception for no-var, fix violations

This commit is contained in:
spalger
2017-06-14 18:56:26 -07:00
parent 3d75c6ff0f
commit 058569d4f8
11 changed files with 21 additions and 17 deletions

View File

@ -403,11 +403,11 @@ YamlDoc.prototype = {
}
const client = clientManager.get();
var clientActionName = _.map(action.split('.'), _.camelCase).join('.');
const clientActionName = _.map(action.split('.'), _.camelCase).join('.');
const clientAction = this.get(clientActionName, client);
_.assign(inputParams, args[action]);
var params = _.transform(inputParams, _.bind(function (params, val, name) {
const params = _.transform(inputParams, _.bind(function (params, val, name) {
const camelName = _.camelCase(name);
// search through the params and url peices to find this param name
@ -426,7 +426,7 @@ YamlDoc.prototype = {
}
// for ercursively traversing the params to replace '$stashed' vars
var transformObject = function (vals, val, i) {
const transformObject = function (vals, val, i) {
if (_.isString(val)) {
val = (val[0] === '$') ? this.get(val) : val;
} else if (_.isPlainObject(val) || _.isArray(val)) {