0.0.1 • Published 6 years ago
@kamicane/prettier-plugin-prettierx-babel v0.0.1
prettier-plugin-prettierx-babel
Use Babel JavaScript parser with enhanced estree printer from prettierx
,
all in a Prettier plugin.
With options from prettierx
to support much closer parity with "Standard JS",
for example:
function * a () {}
with the following config:
{
generatorStarSpacing: true,
spaceBeforeFunctionParen: true
}
Sample usage
prettier --config ./sample-prettierx-prettierrc --plugin=. --parser=prettierx-babel --check sample.js
Thanks and credits
- Thanks to https://github.com/prettier/plugin-php for an easy-to-understand Prettier plugin, which helped scaffold this Prettier plugin.
0.0.1
6 years ago