@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
in package.json
:
(You can now "prettify" the whole src
folder by running npm run pretty
)
"pretty": "cd src; find . -name \"*\" | grep -v \"^./vendor\" | xargs prettier --write; cd ..;"