@utilitywarehouse/prettier-config
v0.1.1
Published
Prettier config for UW projects
Downloads
2,455
Readme
UW Prettier config
This is the standard Prettier config for UW projects.
Installation
Install prettier along with this config
yarn add prettier @utilitywarehouse/prettier-config
Usage
There are a few different ways you can use this config in your project.
- In your root package.json file add a
prettier
key and set it to the name of this config:
{
// ...
"prettier": "@utilitywarehouse/prettier-config"
// ...
}
- If you don’t want to use package.json, you can use any of the supported
extensions (e.g.
.prettierrc.yaml
), to export a string:
"@utilitywarehouse/prettier-config"
- If you want to override any of these defaults, create a
.prettierrc.js
file with the following:
module.exports = {
...require("@utilitywarehouse/prettier-config"),
// Override values here
printWidth: 125,
};