@jpapini/prettier-config
v1.5.7
Published
Custom Prettier configuration for JavaScript and TypeScript projects.
Maintainers
Readme
Prettier configuration
Custom Prettier configuration for JavaScript and TypeScript projects.
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/prettier-config prettier- Edit your
package.jsonfile to include the following:
{
"scripts": {
"lint:prettier": "prettier --cache --cache-location node_modules/.cache/prettier/.prettiercache -u -c '**/*' '!**/pnpm-lock.yaml'",
"format:prettier": "prettier --cache --cache-location node_modules/.cache/prettier/.prettiercache -u -w '**/*' '!**/pnpm-lock.yaml'"
},
"prettier": "@jpapini/prettier-config"
}Author
- Julien Papini [email protected]
