Square's shared Prettier configuration.
Install:
$ yarn add --dev @square/prettier-config
Edit package.json
:
{
// ...
"prettier": "@square/prettier-config"
}
Read more on sharing configurations.
By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles.
This minimal configuration is intended to provide consistent, automatic formatting throughout a project and pairs well with eslint-plugin-square.