1.1.0 • Published 5 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
.prettierrcfile, if present. Install the config.
npm install -D @chunkgroup/prettier-configAdd the following to
package.json:"prettier": "@chunkgroup/prettier-config",Add the following to
scriptsinpackage.json: (You can now "prettify" the wholesrcfolder by runningnpm run pretty)"pretty": "cd src; find . -name \"*\" | grep -v \"^./vendor\" | xargs prettier --write; cd ..;"