Prettier config for Guardian JavaScript projects.
yarn add -D @guardian/prettieror
npm install --save-dev @guardian/prettierPrettier can take two configuration files:
.prettierignorewhich 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'