npm.io
3.4.5 • Published 4 months ago

@redguy12/prettier-config

Licence
MIT
Version
3.4.5
Deps
5
Size
6 kB
Vulns
0
Weekly
0

@redguy12/prettier-config

My Prettier style guide

Adding To A Project

  1. Install the config by running:

    npm install @redguy12/prettier-config prettier --save-dev --save-exact
  2. Add the following to your package.json:

    "prettier": "@redguy12/prettier-config",
    "scripts": { "format": "prettier --write \"**\" \"!./dist\" --ignore-unknown --cache" }
  3. To format your code, simply run

    node --run format

Congrats! You've successfully integrated Prettier into your project with @redguy12/prettier-config!