Closed AmanNegi closed 7 months ago
I want to do it.
Should I start adding propType like this in every component and page? Anything other that I should consider? Thanks.
Sure, @Saran-pariyar Welcome to FreshNest. Yes that's exactly what we want to do, you will find the places where prop-types as errors through eslint
.
npm run lint
This will list all the places where prop-types
are needed. Let me know if something else is needed. :sparkles: :smile:
Issue Description
Currently, we do have the
prop-types
imported in our package.json however we do not use it to define the prop types for our components. It would be nice & type safe, if they could be added for each component./src/components
./src/pages
.