1.2.0 • Published 1 month ago

@nharox/next-prettier-config v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@nharox/next-prettier-config

Shared Prettier config for Next.js projects.

Installation

  1. Install package as a dev dependency
npm install --save-dev @nharox/next-prettier-config
  1. Update package.json
{
  // ...
  "prettier": "@nharox/next-prettier-config"
}
  1. Add the following script in your package.json
{
  // ...
  "scripts": {
    // ...
    "format": "prettier --write \"**/*.{ts,tsx}\""
  }
}

Prettier Plugins