jaredpalmer / jaredpalmer/formik
Eslint prop missing validation with Formik
- Dominant language
- TypeScript
- Stars
- 34.3k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
Hello all!
I am using Formik in my project and now I have started using Eslint. I am getting a bunch of messages saying stuff like for example, "values is missing in props validation" or "errors is missing in props validation".
These are Formik props and I would have thought I do not need to validate them manually.
If I do PropTypes.array or PropTypes.object then I get another ESLint error (e.g. "Prop type array is forbidden").
Is normal to get these errors? What is the best way to avoid them without disabling the Eslint rule?
Thank you in advance and regards.
Contributor guide
Research direction
Start with the reported ESLint messages for Formik's values and errors props and the PropTypes.array/object restriction. Check the project's documentation or guidance for React prop validation and Formik usage; done means providing a clear supported recommendation without requiring the ESLint rule to be disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, react
- Domain
- frontend, tooling
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100