Nonlinear Programming Methods
Have ideas to improve npm?Join in the discussion! »

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

Install

npm i babel-plugin-generator-prettier

DownloadsWeekly Downloads

292

Version

1.2.0

License

Apache-2.0

Unpacked Size

7.95 kB

Total Files

7

Last publish

Collaborators

  • avatar