Skip to content

Commit f9734a5

Browse files
committed
removing eslint/ts-ignore comments
1 parent daea03d commit f9734a5

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

dash/dash-renderer/src/store.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ export default class RendererStore {
5656
private createAppStore = (reducer: any, middleware: any) => {
5757
this.__store = createStore(reducer, middleware);
5858
this.storeObserver.setStore(this.__store);
59-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
60-
// @ts-ignore
61-
const ds = (window.dash_stores = window.dash_stores || []);
59+
const ds = ((window as any).dash_stores = (window as any).dash_stores || []);
6260
if (!ds.includes(this.__store)) {
6361
ds.push(this.__store);
6462
}

dash/dash-renderer/src/utils/clientsideFunctions.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ import {updateProps, notifyObservers} from '../actions/index';
22
import {getPath} from '../actions/paths';
33

44
const set_props = (id: string | object, props: {[k: string]: any}) => {
5-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
6-
// @ts-ignore
7-
const ds = (window.dash_stores = window.dash_stores || []);
5+
const ds = ((window as any).dash_stores = (window as any).dash_stores || []);
86
for (let y = 0; y < ds.length; y++) {
97
const {dispatch, getState} = ds[y];
108
const {paths} = getState();
11-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
12-
// @ts-ignore
139
const componentPath = getPath(paths, id);
1410
dispatch(
1511
updateProps({
@@ -21,7 +17,5 @@ const set_props = (id: string | object, props: {[k: string]: any}) => {
2117
}
2218
};
2319

24-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
25-
// @ts-ignore
26-
const dc = (window.dash_clientside = window.dash_clientside || {});
20+
const dc = ((window as any).dash_clientside = (window as any).dash_clientside || {});
2721
dc['set_props'] = set_props;

0 commit comments

Comments
 (0)