Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Update eslint config with react-hooks/exhaustive-deps rule for custom hooks - #70

Open
AlinaGoaga wants to merge 1 commit into
mainfrom
eslint-config
Open

Update eslint config with react-hooks/exhaustive-deps rule for custom hooks#70
AlinaGoaga wants to merge 1 commit into
mainfrom
eslint-config

Conversation

@AlinaGoaga

@AlinaGoaga AlinaGoaga commented Dec 28, 2023

Copy link
Copy Markdown
Contributor

Modify eslint config in backstage: https://backstage.io/docs/local-dev/cli-build-system/#linting

Add react-hooks/exhaustive-deps rule for additional hooks in eslint config: https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#advanced-configuration

  • Fixed dependencies for custom hook which wasn't following the react-hooks/exhaustive-deps rules (useAsyncFn)

@AlinaGoaga
AlinaGoaga marked this pull request as ready for review December 28, 2023 11:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[backstage] Investigate why eslint doesn't alert about hooks dependency errors

1 participant