@digitregroup/prettier-config
v1.0.0
Published
DigitRE group's Prettier configuration for all javascript projects.
Downloads
15
Readme
DigitRE group's Prettier configuration for all javascript projects.
Install
First, install developement dependencies using npm.
npm install --save-dev prettier @digitregroup/prettier-config
or yarn
yarn add -D prettier @digitregroup/prettier-config
Usage
Once Prettier dependencies installed, simply add prettier config in the package.json file as below.
{
"prettier": "@digitregroup/prettier-config"
}
IDE/Editor configuration
PHPStorm
- Follow the jetbrains documentation and make sure you have enabled format on save.
VSCode
- Add prettier-vscode plugin and make sure you have enabled format on save.