@homebound/prettier-config
Shared Prettier configuration for Homebound projects.
Installation
yarn add -D @homebound/prettier-config prettier
Usage
Add to your package.json:
{
"prettier": "@homebound/prettier-config"
}
Extending the config
To override settings, create a .prettierrc.js file:
const homeboundConfig = require("@homebound/prettier-config");
module.exports = {
...homeboundConfig,
};
Configuration
This config includes:
CI Integration
Add a check step to your CI:
prettier --check .
Or format all files:
prettier --write .