chore(deps): upgrade eslint and use eslint-plugin (#4989)

This commit is contained in:
Chaim Lev-Ari
2021-08-24 07:34:18 +03:00
committed by GitHub
parent 5fd92d8a3f
commit ab30793c48
12 changed files with 789 additions and 689 deletions

View File

@@ -6,6 +6,8 @@ const CleanTerminalPlugin = require('clean-terminal-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
const pkg = require('../package.json');
const projectRoot = path.resolve(__dirname, '..');
@@ -37,14 +39,7 @@ module.exports = {
{
test: /\.js$/,
exclude: /node_modules/,
use: [
'babel-loader',
'auto-ngtemplate-loader',
{
// enforce: 'pre',
loader: 'eslint-loader',
},
],
use: ['babel-loader', 'auto-ngtemplate-loader'],
},
{
test: /\.html$/,
@@ -81,6 +76,7 @@ module.exports = {
writeToDisk: true,
},
plugins: [
new ESLintPlugin(),
new HtmlWebpackPlugin({
template: './app/index.html',
templateParameters: {