https://github.com/nmn/atom-codemod
simple commands to apply specific Babel plugins/codemods on your code
https://github.com/nmn/atom-codemod
Last synced: about 1 month ago
JSON representation
simple commands to apply specific Babel plugins/codemods on your code
- Host: GitHub
- URL: https://github.com/nmn/atom-codemod
- Owner: nmn
- License: mit
- Created: 2016-04-05T06:17:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T06:56:28.000Z (about 9 years ago)
- Last Synced: 2025-01-15T07:07:46.164Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-codemods - nmn/atom-codemod - Simple commands to apply specific Babel plugins/codemods on your code. (Editor Plugins / ant-design)
README
# atom-codemod
A very straightforward package that wraps babel plugins in simple commands.
Currently, it is limited to flow type annotations.
You can easily:
1. Wrap all your flow types annotations in *flowtate* comments
2. Strip all flow types from your code.The plugin simply works on the Currently active file. Even if it is unsaved.
## Keyboard Short cuts.
`ctrl-alt-f ctrl-alt-c`: Comment out flow annotations
`ctrl-alt-f ctrl-alt-s`: Strip out flow annotations