mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
chore(deps): upgrade eslint and use eslint-plugin (#4989)
This commit is contained in:
parent
5fd92d8a3f
commit
ab30793c48
12 changed files with 789 additions and 689 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue