1.0.4 • Published 10 months ago
@beyondjam/prettier-config v1.0.4
@beyondjam/prettier-config
Shared Prettier configuration with organized imports support.
Installation
Using pnpm (recommended)
pnpm add -D @beyondjam/prettier-configNote for pnpm users: Create or update
.npmrcin your project root with:public-hoist-pattern[]=*prettier*This ensures Prettier plugins are properly hoisted and can be found by Prettier.
Using npm
npm install --save-dev @beyondjam/prettier-configUsing yarn
yarn add -D @beyondjam/prettier-configNote: Prettier and prettier-plugin-organize-imports are included as dependencies and will be installed automatically.
Usage
Add this to your package.json:
{
"prettier": "@beyondjam/prettier-config"
}Or if you need to customize the configuration, create a .prettierrc.js:
module.exports = {
...require('@beyondjam/prettier-config'),
// Your overrides here
}Features
- Automatic import organization via prettier-plugin-organize-imports
- Standard Prettier formatting rules
- TypeScript support
- Zero configuration required
License
MIT © Serhii Bondarenko