🌈 style(eslint): 解决eslint的错误❌
This commit is contained in:
+3
-1
@@ -7,13 +7,15 @@ const composeEnhancers
|
||||
&& (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
||||
? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
|
||||
// Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
|
||||
}) : compose
|
||||
})
|
||||
: compose
|
||||
|
||||
const middlewares = [
|
||||
thunkMiddleware,
|
||||
]
|
||||
|
||||
if (process.env.NODE_ENV === 'development' && process.env.TARO_ENV !== 'quickapp') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
middlewares.push(require('redux-logger').createLogger())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user