@homebound/prettier-config
v1.0.0
Published
Shared Prettier configuration for Homebound projects
Maintainers
Keywords
Readme
@homebound/prettier-config
Shared Prettier configuration for Homebound projects.
Installation
yarn add -D @homebound/prettier-config prettierUsage
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,
// your overrides here
};Configuration
This config includes:
trailingComma: "all"printWidth: 120- prettier-plugin-organize-imports for automatic import sorting
CI Integration
Add a check step to your CI:
prettier --check .Or format all files:
prettier --write .