{"id":22976497,"url":"https://github.com/interviewstreet/codemod-proptypes-to-flow","last_synced_at":"2025-04-02T08:20:57.829Z","repository":{"id":34842261,"uuid":"142120178","full_name":"interviewstreet/codemod-proptypes-to-flow","owner":"interviewstreet","description":"Forked codemod","archived":false,"fork":false,"pushed_at":"2023-01-04T21:40:57.000Z","size":1827,"stargazers_count":2,"open_issues_count":17,"forks_count":0,"subscribers_count":80,"default_branch":"master","last_synced_at":"2025-02-07T23:27:06.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interviewstreet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-24T07:18:46.000Z","updated_at":"2023-07-19T13:44:10.000Z","dependencies_parsed_at":"2023-01-15T09:31:01.514Z","dependency_job_id":null,"html_url":"https://github.com/interviewstreet/codemod-proptypes-to-flow","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fcodemod-proptypes-to-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fcodemod-proptypes-to-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fcodemod-proptypes-to-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interviewstreet%2Fcodemod-proptypes-to-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interviewstreet","download_url":"https://codeload.github.com/interviewstreet/codemod-proptypes-to-flow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777791,"owners_count":20832033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T00:51:51.001Z","updated_at":"2025-04-02T08:20:57.790Z","avatar_url":"https://github.com/interviewstreet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codemod-proptypes-to-flow [![Build Status](https://travis-ci.org/billyvg/codemod-proptypes-to-flow.svg?branch=master)](https://travis-ci.org/billyvg/codemod-proptypes-to-flow) [![codecov](https://codecov.io/gh/billyvg/codemod-proptypes-to-flow/branch/master/graph/badge.svg)](https://codecov.io/gh/billyvg/codemod-proptypes-to-flow)\n\nRemoves `React.PropTypes` and attempts to transform to [Flow](http://flow.org/).\n\n### Setup \u0026 Run\n  * `npm install -g jscodeshift`\n  * `git clone https://github.com/billyvg/codemod-proptypes-to-flow`\n  * `jscodeshift -t codemod-proptypes-to-flow/src/index.js \u003cpath\u003e`\n  * Use the `-d` option for a dry-run and use `-p` to print the output\n    for comparison\n\n#### Options\nBehavior of this codemod can be customized by passing options to jscodeshift e.g.:\n```\njscodeshift -t codemod-proptypes-to-flow/src/index.js --flowComment=line \u003cpath\u003e\n```\n\nFollowing options are accepted:\n\n##### flowComment\n`--flowComment=\u003cblock|line\u003e` - type of flow comment. Defaults to `block`.\n\n```\n--flowComment=block:  /* @flow */\n--flowComment=line:   // @flow\n```\n\n##### propsTypeSuffix\n`--propsTypeSuffix=\u003csuffix\u003e` - used to customize the type names generated by the codemod. Provided string will be used alone or appended to Component's name when defining props type. Defaults to `Props`.\n\nDefault:\n```\ntype Props = {...}\ntype MyComponentProps = {...}\n```\n\nWith `--propsTypeSuffix=PropsType`:\n```\ntype PropsType = {...}\ntype MyComponentPropsType = {...}\n```\n\n### Not working/Implemented yet\n  * Custom validators\n  * `React.createClass`\n  * Use of importing PropTypes\n\n### Contributors\n  * Thanks to [@skovhus](https://github.com/skovhus) for adding support for functional components and modernizing the codebase a bit (a lot)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fcodemod-proptypes-to-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterviewstreet%2Fcodemod-proptypes-to-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterviewstreet%2Fcodemod-proptypes-to-flow/lists"}