Closed eduardocque closed 6 months ago
Unfortunately, type checking is a very complex task and out of the capabilities that a eslint plugin can provide (you need to look across files to start, which as far as I know isn't supported by ESLint).
For static type checking TypeScript (and Flow) are the supported ways.
Summary
based on react 19 documentation
prop-types
is gone, so for JS users the only way to manage it is using JSDoc, can be possible to support jsdoc prop-type validation in eslint-plugin-react ?Example
in this example
the intention of this request if to give some ways in javascrit to work without involve typescript to maange types and props