Add linting and cleaned up obvious suggestions

This commit is contained in:
Phil Denoncourt
2019-01-18 07:56:53 -05:00
parent ebf32199ce
commit 0002fe0df8
46 changed files with 1161 additions and 601 deletions

View File

@@ -1,12 +1,12 @@
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import rootReducer from '../reducers';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
import rootReducer from '../reducers'
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
const store = createStore(
rootReducer,
composeEnhancers(applyMiddleware(thunk))
);
)
export default store;
export default store

View File

@@ -16,7 +16,7 @@ const initial = {
sources: {},
sites: [],
tags: {},
notifications: [],
notifications: []
},
/*
@@ -29,7 +29,7 @@ const initial = {
*/
app: {
errors: {
source: null,
source: null
},
highlighted: null,
selected: [],
@@ -51,7 +51,7 @@ const initial = {
coevents: false,
routes: false,
sites: true
},
}
},
isMobile: (/Mobi/.test(navigator.userAgent)),
language: 'en-US',
@@ -83,7 +83,7 @@ const initial = {
ui: {
style: {
categories: {
default: '#f3de2c',
default: '#f3de2c'
},
narratives: {
default: {
@@ -94,16 +94,16 @@ const initial = {
}
},
dom: {
timeline: "timeline",
timeslider: "timeslider",
map: "map"
},
timeline: 'timeline',
timeslider: 'timeslider',
map: 'map'
}
}
};
}
let appStore;
let appStore
if (process.env.store) {
appStore = mergeDeepLeft(process.env.store, initial);
appStore = mergeDeepLeft(process.env.store, initial)
} else {
appStore = initial
}