David Sancho @david.sancho.dev · Jan 26

I finally released v1.0.0 of a ppx that enforces the rules of hooks for reason-react - exhaustive deps in useEffect/useMemo/useCallback - order of hooks (hooks at the toplevel/not conditionally) github.com/ml-in-barce...

7 likes 1 replies

?

Replies

David Sancho · Jan 26

since we don't have an "ESLint" in OCaml, the implementations of those rules are handled by ppxlib register_correction and ~lint_impl. Pretty nice patterns from ppxlib and dune that allow "dune promote" to update the corrected code