From bd023e4675847d887e77f3d14991a10414b73c31 Mon Sep 17 00:00:00 2001 From: Andrey Polischuk Date: Tue, 13 Feb 2024 14:49:46 +0300 Subject: [PATCH] fix(eslint-config): remove eslint react memo plugin --- packages/eslint-config/package.json | 1 - packages/eslint-config/react.js | 24 ------------------------ yarn.lock | 10 +--------- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 3ed754f..cd20196 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -8,7 +8,6 @@ "access": "public" }, "dependencies": { - "@arthurgeron/eslint-plugin-react-usememo": "^2.3.1", "@babel/core": "^7.23.9", "@babel/eslint-parser": "^7.23.10", "@rushstack/eslint-patch": "^1.7.2", diff --git a/packages/eslint-config/react.js b/packages/eslint-config/react.js index 87e3728..1eba030 100644 --- a/packages/eslint-config/react.js +++ b/packages/eslint-config/react.js @@ -20,7 +20,6 @@ module.exports = { 'plugin:react-prefer-function-component/recommended', 'plugin:storybook/recommended' ], - plugins: ['@arthurgeron/react-usememo'], rules: { 'react/prop-types': 'off', 'react/jsx-pascal-case': 'error', @@ -36,12 +35,6 @@ module.exports = { { ignoreNonDOM: true } - ], - '@arthurgeron/react-usememo/require-usememo': [ - 'error', - { - checkHookCalls: false - } ] }, overrides: [ @@ -51,23 +44,6 @@ module.exports = { 'import/no-default-export': 'off' } }, - { - files: [ - '**/test/**', - '**/tests/**', - '**/spec/**', - '**/__tests__/**', - '**/__stories__/**', - '*.test.*', - '*.spec.*', - '*.story.*', - '*.e2e.*', - '*.e2e-spec.*' - ], - rules: { - '@arthurgeron/react-usememo/require-usememo': 'off' - } - }, { files: ['**/__stories__/**', '*.story.*'], rules: { diff --git a/yarn.lock b/yarn.lock index d728b7d..a636808 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15,14 +15,6 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@arthurgeron/eslint-plugin-react-usememo@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@arthurgeron/eslint-plugin-react-usememo/-/eslint-plugin-react-usememo-2.3.1.tgz#794ad174fb2bc7b08ee613e1b21d740548497d78" - integrity sha512-pcf2qeQdxOqOqPlF8ksKiWNyCHjhOmOAqFIF8raHTRGurK4RRKqM8+eJwjkYVjwMY1B9TCfpy5p95axGGvZkkw== - dependencies: - minimatch "9.0.3" - uuid "9.0.1" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.22.13": version "7.22.13" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e" @@ -6767,7 +6759,7 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -uuid@9.0.1, uuid@^9.0.0: +uuid@^9.0.0: version "9.0.1" resolved "https://registry.yarnpkg.com/uuid/-/uuid-9.0.1.tgz#e188d4c8853cc722220392c424cd637f32293f30" integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==