Skip to content

move js and ts files to jsx and tsx respectively

License

Notifications You must be signed in to change notification settings

LaunchWare/jsxinator

Repository files navigation

JSXinsator

Detects JSX syntax in .js files, and moves the contents to .jsx.

If you have extensions in your import statements, you will have to update those manually.

Installation

For yarn:

yarn global add jsxinator

For npm:

npm install -g jsxinator

Usage

Be sure to start with a clean git state. That way, you can revert any changes.

jsxinator <directory>