Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on react / react-hook eslinters to ensure consistency with EE #4182

Closed
wants to merge 15 commits into from

Conversation

AlinaGoaga
Copy link
Contributor

@AlinaGoaga AlinaGoaga commented Dec 28, 2023

Closes #3457

Prior to merging this we will need to have remove-req-use-useAsyncFn merged in EE as the removal of useRequestState will break enterprise.

What changed?

As agreed in triage:

  • Introduced react/react-hook rules in eslint config to match EE's eslint config

  • Deactivated:

  1. prop-types
  2. display-name
  • Enforced:
  1. exhaustive-deps
  2. jsx-key
  3. rules-of-hooks
  4. no-children-prop
  5. no-unescaped-entities
  6. no-unknown-property

@AlinaGoaga AlinaGoaga changed the title Turn on react hook eslinters Turn on react / react-hook eslinters to ensure consistency with EE Dec 29, 2023
…weaveworks/weave-gitops into turn-on-react-hook-eslinters
@AlinaGoaga AlinaGoaga marked this pull request as ready for review December 29, 2023 16:14
@erikgb
Copy link
Contributor

erikgb commented Jan 18, 2025

The react and react-hook eslinters are now enabled after #4564 merged. I tried to incorporate the code changes in this PR, but I found it to risky to do without in-dept knowledge of the application. I am going to close this PR now, but feel free to reopen to fix some of the currently turned of linter rules.

@erikgb erikgb closed this Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants