Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -31,7 +31,7 @@ describe('InputDatasource', () => {
|
||||
targets: [{ refId: 'Z' }],
|
||||
});
|
||||
|
||||
return ds.query(options).then(rsp => {
|
||||
return ds.query(options).then((rsp) => {
|
||||
expect(rsp.data.length).toBe(1);
|
||||
|
||||
const series: DataFrame = rsp.data[0];
|
||||
|
||||
@@ -19,7 +19,7 @@ export class InputDatasource extends DataSourceApi<InputQuery, InputOptions> {
|
||||
super(instanceSettings);
|
||||
|
||||
if (instanceSettings.jsonData.data) {
|
||||
this.data = instanceSettings.jsonData.data.map(v => toDataFrame(v));
|
||||
this.data = instanceSettings.jsonData.data.map((v) => toDataFrame(v));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export class InputDatasource extends DataSourceApi<InputQuery, InputOptions> {
|
||||
}
|
||||
let data = this.data;
|
||||
if (query.data) {
|
||||
data = query.data.map(v => toDataFrame(v));
|
||||
data = query.data.map((v) => toDataFrame(v));
|
||||
}
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
results.push({
|
||||
|
||||
@@ -4,5 +4,5 @@ export function dataFrameToCSV(dto?: DataFrameDTO[]) {
|
||||
if (!dto || !dto.length) {
|
||||
return '';
|
||||
}
|
||||
return toCSV(dto.map(v => toDataFrame(v)));
|
||||
return toCSV(dto.map((v) => toDataFrame(v)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user