Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 761 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 761 Bytes

@ahiho/prettier-config

Ahiho's Prettier config.

Read the Prettier config docs for more information.

Requirement

  • NodeJS (version >= 18.0.0 and <= 21.x.x)

Installation

yarn add --dev @ahiho/prettier-config

Usage

After installing, update package.json file to add the following properties.

"prettier": "@ahiho/prettier-config",

The Prettier config can be applied to the root package.json in a Lerna project.

Additionally, you can use the following binaries to run Prettier with the default glob js,jsx,mjs,ts,tsx,json,md,yml,yaml.

"scripts": {
  "format:check": "prettier-config check",
  "format:write": "prettier-config write",
},