mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-21 16:41:05 +00:00
Update npm/yarn dependencies
Replace deprecated babel-eslint with @babel/eslint-parser Replace deprecated eslint-loader with eslint-webpack-plugin Update other plugins, resolving several opened security reports. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
fe572f5a6c
commit
c467bf9382
5 changed files with 1608 additions and 1707 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"extends": "airbnb-base",
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@babel/eslint-parser",
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const { merge } = require('webpack-merge');
|
||||
const webpack = require('webpack');
|
||||
const commonConfig = require('./common.js');
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
module.exports = merge(commonConfig, {
|
||||
devtool: 'eval-source-map',
|
||||
|
@ -15,16 +16,11 @@ module.exports = merge(commonConfig, {
|
|||
// match the output path
|
||||
},
|
||||
plugins: [
|
||||
new ESLintPlugin(),
|
||||
new webpack.HotModuleReplacementPlugin(),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
enforce: 'pre',
|
||||
test: /\.js$/,
|
||||
loader: 'eslint-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules)/,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
const webpack = require('webpack');
|
||||
const { merge } = require('webpack-merge');
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
@ -27,6 +28,7 @@ module.exports = merge(commonConfig, {
|
|||
],
|
||||
},
|
||||
plugins: [
|
||||
new ESLintPlugin(),
|
||||
new MiniCssExtractPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
@ -40,12 +42,6 @@ module.exports = merge(commonConfig, {
|
|||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
enforce: 'pre',
|
||||
test: /\.js$/,
|
||||
loader: 'eslint-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules)/,
|
||||
|
|
12
package.json
12
package.json
|
@ -37,19 +37,19 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.13.14",
|
||||
"@babel/preset-env": "^7.13.12",
|
||||
"@babel/eslint-parser": "^7.13.14",
|
||||
"@babel/preset-env": "^7.14.4",
|
||||
"autoprefixer": "^10.2.5",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "^8.2.2",
|
||||
"css-loader": "^5.2.0",
|
||||
"eslint": "^7.23.0",
|
||||
"css-loader": "^5.2.6",
|
||||
"eslint": "^7.27.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-loader": "^4.0.2",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-webpack-plugin": "^2.5.4",
|
||||
"file-loader": "^6.2.0",
|
||||
"lato-font": "^3.0.0",
|
||||
"mini-css-extract-plugin": "^1.4.0",
|
||||
"node-sass": "^5.0.0",
|
||||
"node-sass": "^6.0.0",
|
||||
"postcss": "^8.2.7",
|
||||
"postcss-loader": "^5.2.0",
|
||||
"sass": "^1.32.8",
|
||||
|
|
Loading…
Reference in a new issue