Install:
Note: If the project has our @astuteo/build-config 5.2+ installed, you do not need to install this package seperately. That is installed and kept up-to-date in that package.
$ yarn add --dev @astuteo/prettier-config
Edit package.json
:
{
// ...
"prettier": "@astuteo/prettier-config"
}
VSCode
After installing the Prettier plugin, make sure in your settings it is set as the default formatter.
After restarting, the plugin should pick up on our config. If not, you can set the config and the package:
./node_modules/@astuteo/prettier-config/index.json
./node_modules/prettier