@jamtastic/prettier-config
v0.1.3
Published
Standard Jamtastic! Prettier config
Downloads
2
Readme
Jamtastic! Prettier config
Automatically format your code so it aligns with Jamtastic! style guides. For full details, visit the Jamtastic! Developer Guide.
Quick Guide (tl;dr)
Using Visual Studio Code? Awesome 😎✨
- Download the Prettier extension
- Open Settings in VSCode ( Ctl/Cmd + , by default )
- Update the following settings:
// Prettier only runs if a config file is available (sane!)
prettier.requireConfig: true
// Auto-format = compliant commits = no stress for everyone
editor.formatOnSave: true
Now install the config package(s):
Just need the Jamtastic! Prettier config?
npm i -D @jamtastic/prettier-config
Manually add this to your package.json file:
// ...
"prettier": "@jamtastic/prettier-config"
// ...
Want to use the full Jamtastic! coding standards?
npm i -D @jamtastic/standards
This package has a postinstall
script that will try to automatically configure your project, including git hooks and more.
For more information, check out the @jamtastic/standards package.