Prettier config for Guardian JavaScript projects.
yarn add -D @guardian/prettier
or
npm install --save-dev @guardian/prettier
Prettier can take two configuration files:
.prettierignore
which works like git's.gitignore
.prettierrc.yml
(or an equivalent) which provides settings to prettier
To use this package, your prettier config should reference it directly:
# Prettier configuration file
'@guardian/prettier'