Removes React.PropTypes
and attempts to transform to Flow.
npm install -g jscodeshift
git clone https://github.com/billyvg/codemod-proptypes-to-flow
jscodeshift -t codemod-proptypes-to-flow/src/index.js <path>
- Use the
-d
option for a dry-run and use-p
to print the output for comparison
- Custom validators
React.createClass
- Use of importing PropTypes
- Thanks to @skovhus for adding support for functional components and modernizing the codebase a bit (a lot)