eslint-plugin-react-hook-form
eslint-plugin-react-hook-form copied to clipboard
Check for aliased variables and method chains
(rebase after #23)
For <FormProvider {...form}>, we assign like const form = useForm(). So this PR covers situations below:
const { formState } = form; formState.isValidform.formState.isValid
Same as #23 , please make sure all the test cases are passed. Again, thank you for contributing :)