From 3ae430bdd8bb5f15ba8fc0d90b950e1f2ac94284 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Tue, 2 Jan 2024 13:42:48 +0700 Subject: [PATCH] chore(build): remove eslint plugin [EE-6432] (#10773) --- .eslintrc.yml | 2 +- package.json | 2 -- webpack/webpack.common.js | 5 +---- yarn.lock | 18 +----------------- 4 files changed, 3 insertions(+), 24 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index df3e7bd1d..bd801a518 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -23,7 +23,7 @@ parserOptions: modules: true rules: - no-console: warn + no-console: error no-alert: error no-control-regex: 'off' no-empty: warn diff --git a/package.json b/package.json index bbc076fde..f1b0b5728 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,6 @@ "babel-loader": "^9.1.3", "babel-plugin-i18next-extract": "^0.9.0", "babel-plugin-lodash": "^3.3.4", - "clean-terminal-webpack-plugin": "^3.0.0", "clean-webpack-plugin": "^4.0.0", "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.8.1", @@ -184,7 +183,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-regex": "^1.10.0", "eslint-plugin-storybook": "^0.6.14", - "eslint-webpack-plugin": "^4.0.0", "html-loader": "^0.5.5", "html-webpack-plugin": "^5.5.3", "husky": "^8.0.0", diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 3ad75532d..856ca2726 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -2,11 +2,9 @@ const path = require('path'); const { ProvidePlugin, IgnorePlugin } = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const WebpackBuildNotifierPlugin = require('webpack-build-notifier'); -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 TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); const Dotenv = require('dotenv-webpack'); @@ -22,6 +20,7 @@ module.exports = { output: { filename: '[name].[contenthash].js', path: path.resolve(projectRoot, 'dist/public'), + pathinfo: false, }, module: { rules: [ @@ -108,7 +107,6 @@ module.exports = { }, plugins: [ new Dotenv({ defaults: true }), - new ESLintPlugin(), new HtmlWebpackPlugin({ template: './app/index.html', templateParameters: { @@ -130,7 +128,6 @@ module.exports = { logo: path.resolve('./assets/favicon-32x32.png'), suppressSuccess: true, }), - new CleanTerminalPlugin(), new ProvidePlugin({ $: 'jquery', jQuery: 'jquery', diff --git a/yarn.lock b/yarn.lock index eff298427..734e89c6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5028,7 +5028,7 @@ "@types/eslint" "*" "@types/estree" "*" -"@types/eslint@*", "@types/eslint@^8.37.0": +"@types/eslint@*": version "8.37.0" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.37.0.tgz#29cebc6c2a3ac7fea7113207bf5a828fdf4d7ef1" integrity sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ== @@ -7341,11 +7341,6 @@ clean-stack@^4.0.0: dependencies: escape-string-regexp "5.0.0" -clean-terminal-webpack-plugin@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/clean-terminal-webpack-plugin/-/clean-terminal-webpack-plugin-3.0.0.tgz#e042ebcf05b0bf90f7d7923ea1dc5685c819228f" - integrity sha512-wcgkQZmwEWYYjHblXc0+UGFDtx37S+1qgUQl4EOhhinzSHbZpixWBiasQ91RoCMf5lAm67j1XOt9z+HN+sWkWA== - clean-webpack-plugin@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/clean-webpack-plugin/-/clean-webpack-plugin-4.0.0.tgz#72947d4403d452f38ed61a9ff0ada8122aacd729" @@ -9113,17 +9108,6 @@ eslint-visitor-keys@^3.4.3: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint-webpack-plugin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/eslint-webpack-plugin/-/eslint-webpack-plugin-4.0.1.tgz#f0f0e9afff2801d8bd41eac88e5409821ecbaccb" - integrity sha512-fUFcXpui/FftGx3NzvWgLZXlLbu+m74sUxGEgxgoxYcUtkIQbS6SdNNZkS99m5ycb23TfoNYrDpp1k/CK5j6Hw== - dependencies: - "@types/eslint" "^8.37.0" - jest-worker "^29.5.0" - micromatch "^4.0.5" - normalize-path "^3.0.0" - schema-utils "^4.0.0" - eslint@^8.50.0: version "8.50.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.50.0.tgz#2ae6015fee0240fcd3f83e1e25df0287f487d6b2"