Skip to content

Commit

Permalink
Add eslint global-require exception (#703)
Browse files Browse the repository at this point in the history
Add eslint global-require exception, based in 'src/server.js' file.

The 'feature/react-intl' branch also has this problem.
  • Loading branch information
EdikoCruz authored and koistya committed Jun 16, 2016
1 parent 02393af commit f0efee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/configureStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function configureStore(initialState, helpersConfig) {

if (__DEV__) {
if (process.env.BROWSER) {
const createLogger = require('redux-logger');
const createLogger = require('redux-logger'); // eslint-disable-line global-require
middleware.push(createLogger({
collapsed: true,
}));
Expand Down Expand Up @@ -44,7 +44,7 @@ export default function configureStore(initialState, helpersConfig) {
// Hot reload reducers (requires Webpack or Browserify HMR to be enabled)
if (__DEV__ && module.hot) {
module.hot.accept('../reducers', () =>
store.replaceReducer(require('../reducers').default)
store.replaceReducer(require('../reducers').default) // eslint-disable-line global-require
);
}

Expand Down

0 comments on commit f0efee8

Please sign in to comment.