Skip to content

Commit 499b51d

Browse files
committed
[eslint] remove exception for no-use-before-define, and fix violations
1 parent acdde5a commit 499b51d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
extends: "@elastic/eslint-config-kibana"
33

44
rules:
5-
no-use-before-define: warn
65
no-empty: warn
76
space-before-function-paren: warn
87
no-restricted-globals: warn

test/integration/yaml_suite/yaml_doc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ YamlDoc.prototype = {
344344
*/
345345
do_do: function (args, done) {
346346
let catcher;
347+
let clientActionName; //eslint-disable-line prefer-const
348+
let params; //eslint-disable-line prefer-const
347349

348350
if (process.env.LOG_DO) {
349351
const __done = done;
@@ -403,11 +405,11 @@ YamlDoc.prototype = {
403405
}
404406

405407
const client = clientManager.get();
406-
const clientActionName = _.map(action.split('.'), _.camelCase).join('.');
408+
clientActionName = _.map(action.split('.'), _.camelCase).join('.');
407409
const clientAction = this.get(clientActionName, client);
408410
_.assign(inputParams, args[action]);
409411

410-
const params = _.transform(inputParams, _.bind(function (params, val, name) {
412+
params = _.transform(inputParams, _.bind(function (params, val, name) {
411413
const camelName = _.camelCase(name);
412414

413415
// search through the params and url peices to find this param name

0 commit comments

Comments
 (0)