@spraoi/prettier-config
v0.30.0
Published
An opinionated prettier config to enforce consistently formatted code.
Downloads
51
Maintainers
Keywords
Readme
@spraoi/prettier-config
A prettier config to enforce consistently formatted code.
Installation
yarn add --dev @spraoi/prettier-config prettier
Usage
Add the following configuration to the root of you project:
.prettierrc.js
module.exports = require('@spraoi/prettier-config');
package.json
{
"scripts": {
"prettier": "prettier --write --ignore-path .gitignore \"**/*.{js,gql,json,md,yml}\""
}
}
You can then run yarn format
.