From 2054a4aeecec1958ccf2e9a8d2f7df370ece531b Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 4 Aug 2024 20:17:12 -0400 Subject: [PATCH] remote --- .../redux-devtools-remote/src/configureStore.ts | 2 +- packages/redux-devtools-remote/src/devTools.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/redux-devtools-remote/src/configureStore.ts b/packages/redux-devtools-remote/src/configureStore.ts index 67cc2cc7..94997f28 100644 --- a/packages/redux-devtools-remote/src/configureStore.ts +++ b/packages/redux-devtools-remote/src/configureStore.ts @@ -7,7 +7,7 @@ export default function configureStore< MonitorState, MonitorAction extends Action, >( - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type next: StoreEnhancerStoreCreator<{}, unknown>, subscriber: Reducer, options: Options, diff --git a/packages/redux-devtools-remote/src/devTools.ts b/packages/redux-devtools-remote/src/devTools.ts index b32ffbe5..239af699 100644 --- a/packages/redux-devtools-remote/src/devTools.ts +++ b/packages/redux-devtools-remote/src/devTools.ts @@ -160,7 +160,7 @@ interface ActionMessage { interface DispatchMessage> { readonly type: 'DISPATCH'; - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type readonly action: LiftedAction; } @@ -175,7 +175,7 @@ type Message> = | DispatchMessage; class DevToolsEnhancer> { - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type store!: EnhancedStore; filters: LocalFilter | undefined; instanceId?: string; @@ -309,7 +309,7 @@ class DevToolsEnhancer> { ) { this.store.liftedStore.dispatch({ type: 'IMPORT_STATE', - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type nextLiftedState: parse(message.state) as LiftedState, }); } else if (message.type === 'UPDATE') { @@ -483,7 +483,7 @@ class DevToolsEnhancer> { return false; }; - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type monitorReducer = (state = {}, action: LiftedAction) => { this.lastAction = action.type; if (!this.started && this.sendOnError === 2 && this.store.liftedStore) @@ -492,26 +492,26 @@ class DevToolsEnhancer> { if ( this.startOn && !this.started && - this.startOn.indexOf((action as PerformAction).action.type) !== -1 + this.startOn.includes((action as PerformAction).action.type) ) async(this.start); else if ( this.stopOn && this.started && - this.stopOn.indexOf((action as PerformAction).action.type) !== -1 + this.stopOn.includes((action as PerformAction).action.type) ) async(this.stop); else if ( this.sendOn && !this.started && - this.sendOn.indexOf((action as PerformAction).action.type) !== -1 + this.sendOn.includes((action as PerformAction).action.type) ) async(this.send); } return state; }; - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-empty-object-type handleChange(state: S, liftedState: LiftedState, maxAge: number) { if (this.checkForReducerErrors(liftedState)) return;