aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-03 17:33:05 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit21846fd33769576ac9c4a5131dbf4baebdc130f1 (patch)
tree648afdff586d8506644679c5afce25f087012b36 /vnext/webpack.config.js
parent3d822d133debdb3631fe6fb0d119cf1439ca7f9b (diff)
Webpack: eslint-loader
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js9
1 files changed, 8 insertions, 1 deletions
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'
},
@@ -65,6 +65,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/,
loader: 'babel-loader'
},
{