Skip to content

Commit efa045d

Browse files
committed
eslint loader
1 parent 5ee8fa3 commit efa045d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ const config = {
3737
umdNamedDefine: true
3838
},
3939
module: {
40-
loaders: [
40+
rules: [
4141
{
4242
test: /(\.jsx|\.js)$/,
4343
loader: 'babel-loader',
4444
exclude: /(node_modules|bower_components)/
45+
},
46+
{
47+
test: /(\.jsx|\.js)$/,
48+
loader: 'eslint-loader',
49+
exclude: /(node_modules|bower_components)/
4550
}
4651
]
4752
},

0 commit comments

Comments
 (0)