babel-plugin-generator-prettier
v1.2.0
Published
Babel plugin to use prettier for transformed code output
Downloads
535
Maintainers
Readme
babel-plugin-generator-prettier
Babel plugin to use prettier for transformed code output
Requires Babel 7.
Install
npm install babel-plugin-generator-prettier
Usage
In .babelrc:
{
"plugins": [
"generator-prettier"
],
"generatorOpts": {
"printWidth": 120,
"semi": false,
"singleQuote": true
}
}
Options listed in generatorOpts
are passed to prettier.