Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-bus-stop/babel-plugin-generator-prettier
Babel plugin to use prettier for transformed code output
https://github.com/goto-bus-stop/babel-plugin-generator-prettier
ast babel babel-generator babel-plugin beautify code-generator format prettier pretty
Last synced: 20 days ago
JSON representation
Babel plugin to use prettier for transformed code output
- Host: GitHub
- URL: https://github.com/goto-bus-stop/babel-plugin-generator-prettier
- Owner: goto-bus-stop
- License: other
- Created: 2018-06-26T13:50:55.000Z (over 6 years ago)
- Default Branch: default
- Last Pushed: 2024-04-11T04:02:25.000Z (7 months ago)
- Last Synced: 2024-04-14T07:46:19.310Z (7 months ago)
- Topics: ast, babel, babel-generator, babel-plugin, beautify, code-generator, format, prettier, pretty
- Language: JavaScript
- Size: 30.3 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# babel-plugin-generator-prettier
Babel plugin to use prettier for transformed code output
> Requires Babel 7.
[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![standard][standard-image]][standard-url][npm-image]: https://img.shields.io/npm/v/babel-plugin-generator-prettier.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/babel-plugin-generator-prettier
[travis-image]: https://img.shields.io/travis/goto-bus-stop/babel-plugin-generator-prettier.svg?style=flat-square
[travis-url]: https://travis-ci.org/goto-bus-stop/babel-plugin-generator-prettier
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: http://npm.im/standard## Install
```
npm install babel-plugin-generator-prettier
```## Usage
In .babelrc:
```json
{
"plugins": [
"generator-prettier"
],
"generatorOpts": {
"printWidth": 120,
"semi": false,
"singleQuote": true
}
}
```Options listed in `generatorOpts` are passed to prettier.
## License
[Apache-2.0](LICENSE.md)