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

@@ -17,7 +17,7 @@ import { PanelModel } from './PanelModel';
import { cancelVariables } from '../../variables/state/actions';
export function getDashboardPermissions(id: number): ThunkResult<void> {
return async dispatch => {
return async (dispatch) => {
const permissions = await getBackendSrv().get(`/api/dashboards/id/${id}/permissions`);
dispatch(loadDashboardPermissions(permissions));
};
@@ -103,7 +103,7 @@ export function addDashboardPermission(dashboardId: number, newItem: NewDashboar
}
export function importDashboard(data: any, dashboardTitle: string): ThunkResult<void> {
return async dispatch => {
return async (dispatch) => {
await getBackendSrv().post('/api/dashboards/import', data);
dispatch(notifyApp(createSuccessNotification('Dashboard Imported', dashboardTitle)));
dispatch(loadPluginDashboards());
@@ -111,7 +111,7 @@ export function importDashboard(data: any, dashboardTitle: string): ThunkResult<
}
export function removeDashboard(uri: string): ThunkResult<void> {
return async dispatch => {
return async (dispatch) => {
await getBackendSrv().delete(`/api/dashboards/${uri}`);
dispatch(loadPluginDashboards());
};
@@ -160,7 +160,7 @@ export function changePanelPlugin(panel: PanelModel, pluginId: string): ThunkRes
};
}
export const cleanUpDashboardAndVariables = (): ThunkResult<void> => dispatch => {
export const cleanUpDashboardAndVariables = (): ThunkResult<void> => (dispatch) => {
dispatch(cleanUpDashboard());
dispatch(cancelVariables());
};