@will-stone/prettier-config

6.0.4 • Public • Published

Prettier Config

My personal Prettier config.

Usage

Install:

yarn add -D prettier @will-stone/prettier-config

Edit package.json:

{
  "prettier": "@will-stone/prettier-config"
}

Run on commit:

yarn add -D husky lint-staged

Edit package.json:

{
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{css,json,md}": ["prettier --write"]
  }
}

Keywords

none

Install

npm i @will-stone/prettier-config

DownloadsWeekly Downloads

74

Version

6.0.4

License

MIT

Unpacked Size

1.2 kB

Total Files

4

Last publish

Collaborators

  • will-stone