Skip to content

Commit

Permalink
fix(eslint-config): remove eslint react memo plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Feb 13, 2024
1 parent 0d0c934 commit bd023e4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
1 change: 0 additions & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
24 changes: 0 additions & 24 deletions packages/eslint-config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -36,12 +35,6 @@ module.exports = {
{
ignoreNonDOM: true
}
],
'@arthurgeron/react-usememo/require-usememo': [
'error',
{
checkHookCalls: false
}
]
},
overrides: [
Expand All @@ -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: {
Expand Down
10 changes: 1 addition & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit bd023e4

Please sign in to comment.