effector / effector/eslint-plugin
Suggestion for improvement effector/prefer-useUnit rule
Open
enhancement
need to discuss
RFC
- Dominant language
- TypeScript
- Stars
- 94
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Error message
> leaveEvent must be wrapped with useUnit from effector-react before usage inside React components
Example
```ts
function useLeave(event: Event) {
const e = useUnit(event)
}
```
No need to apply effector/prefer-useUnit to custom hooks params.
Verification is required only at the place of use.
For example above - error message valid if event no wrap in to useUnit
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.