From 7ec08606059f008337e20034230289042661ab59 Mon Sep 17 00:00:00 2001 From: Matt Kime Date: Wed, 9 Oct 2019 10:04:49 -0500 Subject: [PATCH] eslint fixes --- .../index_patterns/fields/field_list.ts | 7 ++++- .../index_patterns/index_pattern.ts | 26 ++++++++++--------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts b/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts index cb7472476f575..da1599983a56a 100644 --- a/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts +++ b/src/legacy/core_plugins/data/public/index_patterns/fields/field_list.ts @@ -37,7 +37,12 @@ export class FieldList extends Array implements FieldListInterface { private indexPattern: IndexPattern; private shortDotsEnable: boolean; private notifications: NotificationsSetup; - constructor(indexPattern: IndexPattern, specs: FieldSpec[] = [], shortDotsEnable = false, notifications: NotificationsSetup) { + constructor( + indexPattern: IndexPattern, + specs: FieldSpec[] = [], + shortDotsEnable = false, + notifications: NotificationsSetup + ) { super(); this.indexPattern = indexPattern; this.shortDotsEnable = shortDotsEnable; diff --git a/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts b/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts index c4747dac88510..f851ad5118bef 100644 --- a/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts +++ b/src/legacy/core_plugins/data/public/index_patterns/index_patterns/index_pattern.ts @@ -279,18 +279,20 @@ export class IndexPattern implements StaticIndexPattern { } this.fields.add( - new Field(this, { - name, - script, - fieldType, - scripted: true, - lang, - aggregatable: true, - filterable: true, - searchable: true, - }, - false, - this.notifications + new Field( + this, + { + name, + script, + fieldType, + scripted: true, + lang, + aggregatable: true, + filterable: true, + searchable: true, + }, + false, + this.notifications ) );