Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

re-enabled and autofix no-extra-semi rule #21

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
extends: '@elastic/kibana'
rules:
no-unused-vars: off
no-extra-semi: off
quotes: off
4 changes: 2 additions & 2 deletions src/cli_plugin/install/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function cleanPrevious(settings, logger) {
resolve();
}
});
};
}

export function cleanArtifacts(settings) {
// delete the working directory.
Expand All @@ -29,4 +29,4 @@ export function cleanArtifacts(settings) {
rimraf.sync(settings.plugins[0].path);
}
catch (e) {} // eslint-disable-line no-empty
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/install/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ export function download(settings, logger) {
}

return tryNext();
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/install/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export default function pluginInstall(program) {
install file:///Path/to/my/x-pack.zip
install https://path.to/my/x-pack.zip`)
.action(processCommand);
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/install/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ export async function extract(settings, logger) {
logger.error(err);
throw new Error('Error extracting plugin archive');
}
};
}
4 changes: 2 additions & 2 deletions src/cli_plugin/install/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function parseMilliseconds(val) {
}

return result;
};
}

export function parse(command, options, kbnPackage) {
const settings = {
Expand All @@ -44,4 +44,4 @@ export function parse(command, options, kbnPackage) {
};

return settings;
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/lib/errors.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export class UnsupportedProtocolError extends Error {};
export class UnsupportedProtocolError extends Error {}
2 changes: 1 addition & 1 deletion src/cli_plugin/lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export default class Logger {
}
process.stderr.write(`${data}\n`);
this.previousLineEnded = true;
};
}

}
2 changes: 1 addition & 1 deletion src/cli_plugin/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export default function pluginList(program) {
)
.description('list installed plugins')
.action(processCommand);
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/list/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export function parse(command, options) {
};

return settings;
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/remove/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export default function pluginRemove(program) {
`common examples:
remove x-pack`)
.action(processCommand);
};
}
2 changes: 1 addition & 1 deletion src/cli_plugin/remove/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export function parse(command, options) {
settings.pluginPath = resolve(settings.pluginDir, settings.plugin);

return settings;
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/elasticsearch/lib/create_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function createProxy(server, method, route, config) {
assign(options.config, config);

server.route(options);
};
}

createProxy.createPath = function createPath(path) {
const pre = '/elasticsearch';
Expand Down
2 changes: 1 addition & 1 deletion src/core_plugins/elasticsearch/lib/get_basic_auth_realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default function getBasicAuthRealm(message) {
const parts = message.match(/Basic\ realm=\\"(.*)\\"/);
if (parts && parts.length === 2) return parts[1];
else return null;
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/elasticsearch/lib/map_uri.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export default function mapUri(server, prefix) {
const customHeaders = setHeaders(filteredHeaders, config.get('elasticsearch.customHeaders'));
done(null, url, customHeaders);
};
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_doc_views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export default function (kibana) {

});

};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export default function (kibana) {

});

};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/public/area.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ export default function HistogramVisType(Private) {
}
])
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/public/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ export default function HistogramVisType(Private) {
}
])
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/public/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ export default function HistogramVisType(Private) {
}
])
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/public/pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export default function HistogramVisType(Private) {
}
])
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/kbn_vislib_vis_types/public/tile_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ export default function TileMapVisType(Private, getAppState, courier, config) {
}
])
});
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export default function loadPanelFunction(Private) { // Inject services here
}

};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export default function searchLoader(savedSearches, Private) { // Inject service
};
});
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export default function visualizationLoader(savedVisualizations, Private) { // I
};
});
};
};
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function savedDashboardFn(savedDashboards) {
return savedDashboards;
};
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function savedSearchObjectFn(savedSearches) {
return savedSearches;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ export default function (indexPattern) {
});

return dateScripts;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export default function GetFieldTypes() {
count: fieldCount.scripted
}];
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default function RefreshKibanaIndexFn(es, kbnIndex) {
index: kbnIndex
});
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function selectableArray(items, selectedItems) {
selected: !_.isUndefined(selected)
};
});
};
}

function cleanItem(item) {
return _.trim(item).toUpperCase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export default function keysDeep(object, base) {
}

return result;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export class Append extends Processor {
values: this.values || []
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export class Convert extends Processor {
type: this.type || 'auto'
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export class Date extends Processor {
customFormat: this.customFormat || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export class GeoIp extends Processor {
databaseFields: this.databaseFields || []
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ export class Grok extends Processor {
pattern: this.pattern || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export class Gsub extends Processor {
replacement: this.replacement || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class Join extends Processor {
separator: this.separator || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export class Lowercase extends Processor {
sourceField: this.sourceField || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export class Remove extends Processor {
sourceField: this.sourceField || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class Rename extends Processor {
targetField: this.targetField || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export class Set extends Processor {
value: this.value || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class Split extends Processor {
separator: this.separator || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export class Trim extends Processor {
sourceField: this.sourceField || ''
};
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export class Uppercase extends Processor {
sourceField: this.sourceField || ''
};
}
};
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function savedVisualizationFn(savedVisualizations) {
return savedVisualizations;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export default function processESIngestProcessorsResponse(response) {
.value();

return results;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export default function processESIngestSimulateResponse(resp) {
});

return results;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ export function registerDelete(server) {
);
}
});
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ export function registerPost(server) {
);
}
});
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export function registerProcessors(server) {
});
}
});
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ export function registerSimulate(server) {
});
}
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/markdown_vis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export default function (kibana) {

});

};
}
2 changes: 1 addition & 1 deletion src/core_plugins/metric_vis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export default function (kibana) {

});

};
}
2 changes: 1 addition & 1 deletion src/core_plugins/spy_modes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export default function (kibana) {
]
}
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/status_page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export default function (kibana) {
}
}
});
};
}
2 changes: 1 addition & 1 deletion src/core_plugins/table_vis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default function (kibana) {
}
});

};
}
2 changes: 1 addition & 1 deletion src/fixtures/agg_resp/geohash_grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ export default function GeoHashGridAggResponseFixture() {
}
}
};
};
}
2 changes: 1 addition & 1 deletion src/fixtures/fake_row.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export default function (id, mapping) {
$$_partialFormatted: fakeVals('formatted'),
$$_flattened: fakeVals('_flattened')
};
};
}
2 changes: 1 addition & 1 deletion src/fixtures/hits.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export default function fitsFixture() {
_index: 'test-index'
});
});
};
}
2 changes: 1 addition & 1 deletion src/fixtures/mock_courier.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export default function (Private, Promise) {
};

return courier;
};
}
2 changes: 1 addition & 1 deletion src/fixtures/stubbed_logstash_index_pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export default function stubbedLogstashIndexPatternService(Private) {

return indexPattern;

};
}
Loading