$ npm install --save-dev @pwa/plugin-prettier prettier
None – recognized by and attached to @pwa/core automatically!
Configurable via the prettier key on your pwa.config.js file.
By default, Prettier's configuration files are supported and applied automatically:
.prettierrcprettier.config.jspackage.json's "prettier" key.prettierignoreNote: Prettier options passed to
pwa.config.jsdirectly will override config files' values.
Default Config:
exports.prettier = {
parser: 'babel'
}
Available Options:
See Prettier's Options