From 083ba17c661f532288202e815c65976b5852926d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 10 Oct 2020 05:57:20 +0300 Subject: eslint-webpack-plugin --- vnext/webpack.config.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'vnext/webpack.config.js') diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 0a2ccb1c..1edb22b0 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -5,6 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const ErrorOverlayPlugin = require('error-overlay-webpack-plugin'); +const ESLintPlugin = require('eslint-webpack-plugin'); module.exports = (env, argv) => { const dev = argv.mode !== 'production'; @@ -64,13 +65,6 @@ module.exports = (env, argv) => { } ] }, - { - test: /\.js$/, - exclude: /node_modules/, - loader: 'eslint-loader', - enforce: 'pre', - options: { failOnWarning: false, failOnError: true, fix: false }, - }, { test: /\.js$/, exclude: /node_modules/, @@ -94,7 +88,8 @@ module.exports = (env, argv) => { template: './src/index.html', filename: './index.html' }), - new ErrorOverlayPlugin() + new ErrorOverlayPlugin(), + new ESLintPlugin({ failOnWarning: false, failOnError: true, fix: false }) ], devServer: { bonjour: true, -- cgit v1.2.3