Pega front-end Prettier configuration.
npm install @pega/prettier-configPegasystems front-end Prettier configuration.
Install Prettier and the Pega config.
``shell`
npm i -D prettier @pega/prettier-config
Extend from the Pega configuration in your Prettier configuration file.
`json`
"@pega/prettier-config"
Run Prettier to check, for example, all .json files in the current directory.
`shell`
prettier -c "./*/.json"
You can install the VS Code extension, and update your .vscode/settings.json to enable your editor to run Prettier for you automatically.
`json``
{
"editor.formatOnSave": true
}