PromucFlow_constructor/app/client/packages/eslint-plugin/src
Hetu Nandu 71963b5bf9
chore: Add named-use-effect custom eslint rule (#36725)
## Description

Adds a custom es lint rule that would add a warning when a useEffect is
used without a named function inside it


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new ESLint rule to enforce the use of named functions
within the `useEffect` hook, promoting better code readability.
- Updated recommended ESLint configuration to include the new rule with
a warning level.

- **Tests**
- Added a comprehensive test suite for the new `namedUseEffectRule`,
covering both valid and invalid usage scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-09 10:55:06 +00:00
..
named-use-effect chore: Add named-use-effect custom eslint rule (#36725) 2024-10-09 10:55:06 +00:00
object-keys
index.ts chore: Add named-use-effect custom eslint rule (#36725) 2024-10-09 10:55:06 +00:00