@jpapini/prettier-config-prisma
v0.4.1
Published
Shared Prettier configuration with Prisma plugin for JavaScript projects.
Downloads
28
Readme
Tools - Prettier Prisma configuration
Shared Prettier configuration with Prisma plugin for JavaScript projects.
Table of contents
How to install
Run the following command to install the required dependencies:
$ <yarn|npm|pnpm> add -D @jpapini/prettier-config-prisma prettier
Add the following fields to your package.json
:
{
"scripts": {
"lint:prettier": "prettier --check -u '**/*'",
"format:prettier": "prettier --write -u '**/*'"
},
"prettier": "@jpapini/prettier-config-prisma"
}
Don't forget to create a .prettierignore
file to ignore unnecessary files.
How to use
Run pnpm run lint:prettier
for linting files.
Run pnpm run format:prettier
for formatting files.
Author
- Julien Papini [email protected]