From 7fdf733a64670fceefc3ded35cfa581e1c458179 Mon Sep 17 00:00:00 2001 From: Einav Weiss Keidar Date: Tue, 20 Mar 2018 14:45:40 +0200 Subject: Adding Prettier and fixing up eslint version Issue-ID: SDC-1094 Change-Id: Ie83ad95a03899345dd90235daf0323cbe3bc6afd Signed-off-by: Einav Weiss Keidar --- openecomp-ui/src/sdc-app/AppStore.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'openecomp-ui/src/sdc-app/AppStore.js') diff --git a/openecomp-ui/src/sdc-app/AppStore.js b/openecomp-ui/src/sdc-app/AppStore.js index bafef7dcd6..bca750a930 100644 --- a/openecomp-ui/src/sdc-app/AppStore.js +++ b/openecomp-ui/src/sdc-app/AppStore.js @@ -14,24 +14,27 @@ * limitations under the License. */ -import {createStore, applyMiddleware, compose} from 'redux'; +import { createStore, applyMiddleware, compose } from 'redux'; import Reducers from './Reducers.js'; const thunk = store => next => action => - typeof action === 'function' ? - action(store.dispatch, store.getState) : - next(action); - + typeof action === 'function' + ? action(store.dispatch, store.getState) + : next(action); const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; -export const storeCreator = (initialState) => createStore(Reducers, initialState, composeEnhancers(applyMiddleware(thunk))); - +export const storeCreator = initialState => + createStore( + Reducers, + initialState, + composeEnhancers(applyMiddleware(thunk)) + ); const store = storeCreator(); if (module.hot) { - module.hot.accept('./Reducers.js', () => - store.replaceReducer(require('./Reducers.js').default) - ); + module.hot.accept('./Reducers.js', () => + store.replaceReducer(require('./Reducers.js').default) + ); } export default store; -- cgit 1.2.3-korg