1.1.0 • Published 3 years ago
@chunkgroup/prettier-config v1.1.0
@chunkgroup/prettier-config
Shared Prettier config used in Chunk projects.
Usage
Usage is based on Sharing configurations from the Prettier docs.
- Remove existing
.prettierrc
file, if present. Install the config.
npm install -D @chunkgroup/prettier-config
Add the following to
package.json
:"prettier": "@chunkgroup/prettier-config",
Add the following to
scripts
inpackage.json
: (You can now "prettify" the wholesrc
folder by runningnpm run pretty
)"pretty": "cd src; find . -name \"*\" | grep -v \"^./vendor\" | xargs prettier --write; cd ..;"