Fixed eslint-loader options.
@@ -27,6 +27,8 @@ import ExtractTextPlugin from 'extract-text-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ProgressBarPlugin from 'progress-bar-webpack-plugin';
+import eslintFormatter from 'eslint-friendly-formatter';
+
const basedir = path.resolve('./');
const contentBase = path.resolve('public');
const node_modules = path.resolve('node_modules');
@@ -103,7 +105,7 @@ export default {
options: {
failOnWarning: false,
failOnError: false,
- formatter: 'eslint-friendly-formatter'
+ formatter: eslintFormatter
}
}]
},
@@ -159,6 +161,9 @@ export default {
pug: {
basedir
},
+ eslint: {
+ configFile: path.join(basedir, '.eslintrc')
+ },
target: 'web'
}
}),
