Update dependency prettier to v2.5.1 (#43473)

* Update dependency prettier to v2.5.1

* prettier fixes

* chore(toolkit): bump prettier to 2.5.1

* style(eslint): bump grafana config to 2.5.2 in core and toolkit

* style(mssql-datasource): fix no-inferrable-types eslint errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
renovate[bot]
2022-02-02 12:02:32 +00:00
committed by GitHub
co-authored by Renovate Bot Ashley Harrison Jack Westbrook
parent 3b4e812449
commit d87cd6f26c
304 changed files with 1947 additions and 3209 deletions
@@ -11,7 +11,7 @@ import { backendSrv } from '../../../../core/services/backend_srv';
import * as panelUtils from '../../../panel/state/util';
jest.mock('@grafana/runtime', () => ({
...((jest.requireActual('@grafana/runtime') as unknown) as object),
...(jest.requireActual('@grafana/runtime') as unknown as object),
config: {
panels: {
timeseries: {
@@ -30,9 +30,10 @@ export function OpenLibraryPanelModal({ libraryPanel, onDismiss }: OpenLibraryPa
(searchString: string) => loadOptionsAsync(libraryPanel.uid, searchString, setLoading),
[libraryPanel.uid]
);
const debouncedLoadOptions = useMemo(() => debounce(loadOptions, 300, { leading: true, trailing: true }), [
loadOptions,
]);
const debouncedLoadOptions = useMemo(
() => debounce(loadOptions, 300, { leading: true, trailing: true }),
[loadOptions]
);
const onViewPanel = (e: MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
locationService.push(urlUtil.renderUrl(`/d/${option?.value?.uid}`, {}));