Add eslint-plugin-react-hooks to react rules
vankhoawin opened this issue · comments
https://reactjs.org/docs/hooks-rules.html
Hooks are JavaScript functions, but you need to follow two rules when using them. We provide a linter plugin to enforce these rules automatically:
The React team owns eslint-plugin-react-hooks which enforces how they believe hooks should be used. Including these rules in eslint-config-twilio-react
will help reinforce React best practices.
@vnguyen94 Good idea! I've created a ticket to do this in our next sprint.
v1.18.0 is using eslint-plugin-react-hooks
!
awesome thanks!