@jankuca/eslint-plugin-react-usecallback

0.0.9 • Public • Published

eslint-plugin-react-usecallback

Rationale: Why we memo all the things.

Why the fork?

The original forked plugin (eslint-plugin-react-memo) also checks this using the require-usememo-children rule but the rule is too strict about JSX used as children (the most common thing in React) and has not way to select which of the actual children prop rules apply.

Rules

require-usecallback-props (ADVANCED)

Requires functions that get passed to children as props to be wrapped in React.useCallback().

Readme

Keywords

none

Package Sidebar

Install

npm i @jankuca/eslint-plugin-react-usecallback

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

6.54 kB

Total Files

7

Last publish

Collaborators

  • jankuca