@prosomo/prettier-config
v2.0.0
Published
Shared Prettier rules for Prosomo.
Downloads
4
Readme
@prosomo/prettier-config
Shared Prettier rules for Prosomo.
Installation
With pnpm
pnpm add --dev prettier @prosomo/prettier-config
With Yarn
yarn add --dev prettier @prosomo/prettier-config
With npm
npm install --save-dev prettier @prosomo/prettier-config
Usage
Add a prettier
property in your package.json
. See the Prettier configuration docs for more details.
{
"prettier": "@prosomo/prettier-config"
}
Now you can run Prettier by adding linting and formatting scripts to your package.json
. See the Prettier CLI docs for more details.
{
"scripts": {
"lint": "prettier --check .",
"format": "prettier --write ."
}
}
Run it:
With pnpm
pnpm lint
pnpm format
With Yarn
yarn lint
yarn format
With npm
npm run lint
npm run format