Skip to content

Commit beac13e

Browse files
committed
Disable prefer-rest-params and prefer-spread inside composeWithDevTools
1 parent 7001b4c commit beac13e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/toolkit/src/devtoolsExtension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ export const composeWithDevTools: ComposeWithDevTools =
223223
? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
224224
: function () {
225225
if (arguments.length === 0) return undefined
226+
// eslint-disable-next-line prefer-rest-params
226227
if (typeof arguments[0] === 'object') return compose
228+
// eslint-disable-next-line prefer-spread, prefer-rest-params
227229
return compose.apply(null, arguments as any as AnyFunction[])
228230
}
229231

0 commit comments

Comments
 (0)