eslint-plugin-react-hook-form icon indicating copy to clipboard operation
eslint-plugin-react-hook-form copied to clipboard

ESLint plugin for react-hook-form

Results 7 eslint-plugin-react-hook-form issues
Sort by recently updated
recently updated
newest added

(rebase after #23) For ``, we assign like `const form = useForm()`. So this PR covers situations below: - `const { formState } = form; formState.isValid` - `form.formState.isValid`

Just checks it..! ✌️ - Add useController() to method name filter - Check for fieldState of controller (it refers formState: https://github.com/react-hook-form/react-hook-form/blob/2f3986a16682a905467f1cd6da7e4a9bc837277b/src/useController.ts#L160 ) - Change findPropertyByName() to accept ObjectPattern used in...

**Describe the bug** Hi! As I debugged why the rule wasn't working for my case, I realized it only reports if you use object destructuring: ```tsx function WorkingExample() { const...

Is this still under active development?

A new rule prohibiting the use of watch has been added. Since there are cases where values are not updated when the React compiler and watch are used together, the...

`no-use-watch` should be added to `recommended` config since its broken when in use with react compiler and it got version 1.0

I want to use `eslint-plugin-react-hook-form` with ESLint 9 / Flat Config + `eslint.config.ts` Currently, I configure it like this: ```ts import { fixupConfigRules } from '@eslint/compat'; import { FlatCompat }...