diff options
author | Vitaly Takmazov | 2019-07-03 17:33:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | 21846fd33769576ac9c4a5131dbf4baebdc130f1 (patch) | |
tree | 648afdff586d8506644679c5afce25f087012b36 /vnext/webpack.config.js | |
parent | 3d822d133debdb3631fe6fb0d119cf1439ca7f9b (diff) |
Webpack: eslint-loader
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 9 |
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' }, { |