Ahiho's Prettier config.
Read the Prettier config docs for more information.
- NodeJS (version >= 18.0.0 and <= 21.x.x)
yarn add --dev @ahiho/prettier-config
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",
},