@foray1010/prettier-config
Installation
-
yarn add -DE @foray1010/prettier-config prettier
-
Create an
.prettierrc.mjs
in the project rootexport { default } from '@foray1010/prettier-config'
-
Use default prettierignore via npm script
{ "scripts": { "prettier": "prettier --ignore-path=node_modules/@foray1010/prettier-config/prettierignore" } }
then use
npm run prettier
oryarn prettier
to replaceprettier