🌈 style(eslint): add eslint rules

This commit is contained in:
xuan
2022-11-26 14:35:05 +08:00
parent f3aa20f049
commit 99a920975f
245 changed files with 14909 additions and 14349 deletions
+8 -8
View File
@@ -1,16 +1,16 @@
import { createStore, applyMiddleware, compose } from 'redux'
import { applyMiddleware, compose, createStore } from 'redux'
import thunkMiddleware from 'redux-thunk'
import rootReducer from '@/reducers'
const composeEnhancers =
typeof window === 'object' &&
(window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
(window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
const composeEnhancers
= typeof window === 'object'
&& (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
? (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
// Specify extension’s options like name, actionsBlacklist, actionsCreators, serialize...
}) : compose
const middlewares = [
thunkMiddleware
thunkMiddleware,
]
if (process.env.NODE_ENV === 'development' && process.env.TARO_ENV !== 'quickapp') {
@@ -21,7 +21,7 @@ const enhancer = composeEnhancers(
applyMiddleware(...middlewares),
)
export default function configStore () {
export default function configStore() {
const store = createStore(rootReducer, enhancer)
return store
}
}