frontend/src/store.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0
cc 0
nc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A store.js ➔ ??? 0 1 1
1
import { createStore, applyMiddleware, compose } from 'redux'
2
import thunkMiddleware from 'redux-thunk'
3
// import { createLogger } from 'redux-logger'
4
import rootReducer from './reducer/root.js'
5
// import createSagaMiddleware from 'redux-saga'
6
// import rootSaga from './saga.js'
7
8
// const sagaMiddleware = createSagaMiddleware()
9
10
export const store = createStore(
11
  rootReducer,
12
  compose(
13
    applyMiddleware(thunkMiddleware /* , sagaMiddleware, createLogger() */),
14
    (window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()) || (f => f)
15
  )
16
)
17
18
// sagaMiddleware.run(rootSaga)
19