@decampsrenan/prettier-config
v3.1.1
Published
Personal prettier config
Maintainers
Readme
Personal prettier-config
I use this config in all my projects. No need to copy/paste anymore 😄
Install
pnpm i -D @decampsrenan/prettier-confignpm i -D @decampsrenan/prettier-configyarn add -D @decampsrenan/prettier-configUsage
// package.json
{
"name": "...",
"prettier": "@decampsrenan/prettier-config"
}Or if you need more control on the settings:
// .prettierrc.mjs
import config from "@decampsrenan/prettier-config"
export default {
...config
// Override with your custom needs here
}Then run the following commands to check or update files if needed:
npx prettier -c ./ # Check if there is some files to update
npx prettier -w ./ # Update files