@will-stone/prettier-config

7.0.3 • Public • Published

Prettier Config

My personal Prettier config.

Usage

Install

npm i -D prettier @will-stone/prettier-config

Use config

// package.json
{
  "prettier": "@will-stone/prettier-config"
}

Lint Staged

If you would like to apply formatting before every commit, you can add the following to your package.json:

{
  "scripts": {
    "prepare": "husky install"
  },
  "lint-staged": {
    "*.{css,json,md}": ["prettier --write"]
  }
}

and then

npm i -D husky lint-staged
npx husky install
npx husky add .husky/pre-commit "npx --no lint-staged"

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i @will-stone/prettier-config

Weekly Downloads

21

Version

7.0.3

License

MIT

Unpacked Size

2.81 kB

Total Files

8

Last publish

Collaborators

  • will-stone