babel-plugin-generator-prettier

1.2.0 • Public • Published

babel-plugin-generator-prettier

Babel plugin to use prettier for transformed code output

Requires Babel 7.

npm travis standard

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.

License

Apache-2.0

Package Sidebar

Install

npm i babel-plugin-generator-prettier

Weekly Downloads

25

Version

1.2.0

License

Apache-2.0

Unpacked Size

7.95 kB

Total Files

7

Last publish

Collaborators

  • goto-bus-stop