Prettier: Upgrade to 2 (#30387)

* Updated package json but not updated source files

* Update eslint plugin

* updated files
This commit is contained in:
Torkel Ödegaard
2021-01-20 07:59:48 +01:00
committed by GitHub
parent f27450ed94
commit 1d689888b0
1069 changed files with 4370 additions and 5260 deletions

View File

@@ -16,8 +16,8 @@ export default class ResponseParser {
normalizedQuery.indexOf('show field keys') >= 0 || normalizedQuery.indexOf('show retention policies') >= 0;
const res = {};
_.each(influxResults.series, serie => {
_.each(serie.values, value => {
_.each(influxResults.series, (serie) => {
_.each(serie.values, (value) => {
if (_.isArray(value)) {
// In general, there are 2 possible shapes for the returned value.
// The first one is a two-element array,
@@ -45,7 +45,7 @@ export default class ResponseParser {
});
// @ts-ignore problems with typings for this _.map only accepts [] but this needs to be object
return _.map(res, value => {
return _.map(res, (value) => {
// @ts-ignore
return { text: value.toString() };
});