Shared configuration for a consistent experience using Prettier.
pnpm add -DE prettier @forcir/prettier-config
yarn add -DE prettier @forcir/prettier-config
npm install -DE prettier @forcir/prettier-config
{
// ...
"prettier": "@forcir/prettier-config",
// ...
"scripts": {
// ...
"format": "prettier --check \"**/*.{cjs,js,json,md,ts,tsx}\"",
"format:fix": "prettier --write \"**/*.{cjs,js,json,md,ts,tsx}\""
// ...
}
}