@jamtastic/prettier-config

0.1.3 • Public • Published

Jamtastic! Prettier config

Automatically format your code so it aligns with Jamtastic! style guides. For full details, visit the Jamtastic! Developer Guide.

code style: prettier npm version weekly downloads from npm




Quick Guide (tl;dr)

Using Visual Studio Code? Awesome 😎

  1. Download the Prettier extension
  2. Open Settings in VSCode ( Ctl/Cmd + , by default )
  3. 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @jamtastic/prettier-config

Weekly Downloads

4

Version

0.1.3

License

Unlicense

Unpacked Size

3.98 kB

Total Files

4

Last publish

Collaborators

  • binaryben