Install it.
npm i prettier-ignore -D
Use it via Prettier by passing --ignore-path
option.
npx prettier --ignore-path ./node_modules/prettier-ignore/prettierignore .
Prettier will not ignore some common files which should be ignored, like pnpm-lock.yaml
file and dist
folder, according to their issues. This package provide some commonly patterns which should be ignored by Prettier.
MIT