From 21846fd33769576ac9c4a5131dbf4baebdc130f1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 3 Jul 2019 17:33:05 +0300 Subject: Webpack: eslint-loader --- vnext/webpack.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vnext/webpack.config.js') diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 1218542f..e0c6855e 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -39,7 +39,7 @@ module.exports = (env, argv) => { { test: /\.css$/, use: [ - dev? 'style-loader' : MiniCssExtractPlugin.loader, + dev ? 'style-loader' : MiniCssExtractPlugin.loader, { loader: 'css-loader' }, @@ -62,6 +62,13 @@ module.exports = (env, argv) => { } ] }, + { + test: /\.js$/, + exclude: /node_modules/, + loader: 'eslint-loader', + enforce: 'pre', + options: { failOnWarning: false, failOnError: true, fix: true }, + }, { test: /\.js$/, exclude: /node_modules/, -- cgit v1.2.3