[eslint] remove exception for no-unused-vars, fix violations

This commit is contained in:
spalger
2017-06-14 19:07:57 -07:00
parent 058569d4f8
commit d63a37dd42
23 changed files with 77 additions and 123 deletions

View File

@ -1,12 +1,9 @@
module.exports = function (branch) {
const path = require('path');
const jsYaml = require('js-yaml');
const YamlFile = require('./yaml_file');
const root = require('find-root')(__dirname);
const rootReq = function (loc) { return require(path.join(root, loc)); };
const _ = rootReq('src/lib/utils');
const utils = rootReq('grunt/utils');
const es = rootReq('src/elasticsearch');
const clientManager = require('./client_manager');
const port = parseInt(process.env.ES_PORT || 9200, 10);
@ -32,8 +29,8 @@ module.exports = function (branch) {
return clientManager.get().clearEs();
});
const files = _.map(require('./yaml_tests_' + _.snakeCase(branch) + '.json'), function (docs, filename) {
return new YamlFile(filename, docs);
_.each(require('./yaml_tests_' + _.snakeCase(branch) + '.json'), function (docs, filename) {
new YamlFile(filename, docs);
});
});