Update dependency prettier to v3 (#71586)

* Update dependency prettier to v3

* run prettier

* ignore prettier update in legacy select scss

* update command line arg

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
renovate[bot]
2023-07-17 09:19:27 +01:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Ashley Harrison
parent 8ae92db53d
commit 2e8cd1c021
93 changed files with 566 additions and 379 deletions
@@ -18,7 +18,10 @@ import { PromQueryRequest } from './types';
export default class PrometheusMetricFindQuery {
range: TimeRange;
constructor(private datasource: PrometheusDatasource, private query: string) {
constructor(
private datasource: PrometheusDatasource,
private query: string
) {
this.datasource = datasource;
this.query = query;
this.range = getTimeSrv().timeRange();
@@ -71,13 +71,16 @@ export const binaryScalarDefs = [
},
];
export const binaryScalarOperatorToOperatorName = binaryScalarDefs.reduce((acc, def) => {
acc[def.sign] = {
id: def.id,
comparison: def.comparison,
};
return acc;
}, {} as Record<string, { id: string; comparison?: boolean }>);
export const binaryScalarOperatorToOperatorName = binaryScalarDefs.reduce(
(acc, def) => {
acc[def.sign] = {
id: def.id,
comparison: def.comparison,
};
return acc;
},
{} as Record<string, { id: string; comparison?: boolean }>
);
// Not sure about this one. It could also be a more generic 'Simple math operation' where user specifies
// both the operator and the operand in a single input
@@ -85,11 +85,9 @@ export function LabelFilters({
{variableEditor ? (
<InlineFieldRow>
<div
className={cx(
css`
display: flex;
`
)}
className={cx(css`
display: flex;
`)}
>
<InlineLabel
width={20}