Skip to content

mikhail-hatsilau/proptypes-to-flow-codemod

Repository files navigation

PropTypes to Flow codemod

Setup and usage

Before usage of the codemod you should install jscodeshift first.

  1. Clone repo git clone https://github.com/mikhail-hatsilau/proptypes-to-flow-codemod.git

  2. Run npm install inside codemod directory

  3. Run npm run build to transpile javascript

  4. Run jscodeshift -t proptypes-to-flow-codemod/dist/propsToFlow.js <path>

Options

By default codemod leaves proptypes statements. But you can pass remove-prop-types option: jscodeshift -t proptypes-to-flow-codemod/dist/propsToFlow.js <path> --remove-prop-types=true. It will remove proptypes statements and import declaration

About

Codemod to tranform react proptypes to flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published