Rel1cx / eslint-react

A series of composable ESLint rules for libraries and frameworks that use React as a UI runtime.
https://eslint-react.xyz
MIT License
156 stars 6 forks source link

[feat] no-prop-types #597

Open benmccann opened 3 weeks ago

benmccann commented 3 weeks ago

Describe the problem

It's wasteful to do prop type checking at runtime and pull in an unnecessary library

https://stackoverflow.com/questions/73954484/should-i-use-the-package-prop-types-or-pass-a-props-interface-to-react-component

Describe the solution you'd like

If you're using TypeScript, then make sure prop-types is not used in a project

Alternatives considered

No response

Additional context

No response