diff options
author | Vitaly Takmazov | 2020-10-10 05:57:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 083ba17c661f532288202e815c65976b5852926d (patch) | |
tree | 0808ac39c0978e6195367cc2663613eda6565e85 /vnext/webpack.config.js | |
parent | 61e384d778a237661286f3df6737dac8d8d81e56 (diff) |
eslint-webpack-plugin
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 11 |
1 files changed, 3 insertions, 8 deletions
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'; @@ -67,13 +68,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/, loader: 'babel-loader' }, { @@ -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, |