Skip to content

Commit 4362655

Browse files
author
heysep
committed
Enable eslint preloader
1 parent d3ee2b9 commit 4362655

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

client/webpackEntry.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ import { Provider } from 'react-redux';
66
import App from './components/App.jsx';
77
import './components/Gmap.jsx';
88

9-
let initialState = {
9+
const initialState = {
1010
users: {
1111
1234: {
1212
name: 'Sepehr',
1313
bio: 'This is Sepehr',
1414
lat: 37.782917,
15-
lng: -122.406350
15+
lng: -122.406350,
1616
},
1717
4523: {
1818
name: 'Leo',
1919
bio: 'This is Leo',
2020
lat: 37.784617,
21-
lng: -122.416645
22-
}
23-
}
21+
lng: -122.416645,
22+
},
23+
},
2424
};
2525

2626
let store = configureStore(initialState);
@@ -31,4 +31,4 @@ render(
3131
<App />
3232
</Provider>,
3333
document.getElementById('app')
34-
);
34+
);

webpack.config.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ module.exports = {
77
devtool: debug ? 'inline-sourcemap' : null,
88
entry: ['webpack-hot-middleware/client', './client/webpackEntry.js'],
99
module: {
10-
// preLoaders: [
11-
// {
12-
// test: /\.jsx?$/,
13-
// loader: 'eslint',
14-
// exclude: /(node_modules|bower_components)/,
15-
// },
16-
// ],
10+
preLoaders: [
11+
{
12+
test: /\.jsx?$/,
13+
loader: 'eslint',
14+
exclude: /(node_modules|bower_components)/,
15+
},
16+
],
1717
loaders: [
1818
{
1919
test: /\.jsx?$/,

0 commit comments

Comments
 (0)