Skip to content

Commit e03b433

Browse files
committed
Disable prefer-rest-params inside composeWithDevTools
1 parent 52fbfcf commit e03b433

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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

packages/toolkit/src/query/tests/fetchBaseQuery.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,7 @@ describe('fetchBaseQuery', () => {
977977
const baseQuery = fetchBaseQuery({
978978
prepareHeaders(headers, api) {
979979
expectTypeOf(api.extraOptions).toEqualTypeOf<unknown>()
980+
// eslint-disable-next-line prefer-spread, prefer-rest-params
980981
prepare.apply(undefined, arguments as unknown as any[])
981982
},
982983
})

0 commit comments

Comments
 (0)