lukeed

@pwa/plugin-prettier

PWA plugin for Prettier

#Install

$ npm install --save-dev @pwa/plugin-prettier prettier

#Usage

None – recognized by and attached to @pwa/core automatically!

#Config

Configurable via the prettier key on your pwa.config.js file.

By default, Prettier's configuration files are supported and applied automatically:

  • .prettierrc
  • prettier.config.js
  • package.json's "prettier" key
  • .prettierignore

Note: Prettier options passed to pwa.config.js directly will override config files' values.

Default Config:

exports.prettier = {
  parser: 'babel'
}

Available Options:

See Prettier's Options

See also

@pwa/cli(3), @pwa/core(3), @pwa/plugin-brotli(3), @pwa/plugin-buble(3), @pwa/plugin-critters(3), @pwa/plugin-eslint(3), @pwa/plugin-gzip(3), @pwa/plugin-imagemin(3), @pwa/plugin-offline(3), @pwa/plugin-sw-precache(3)