@stackonward/prettier-config
v0.0.3
Published
Shared Prettier configuration
Readme
@stackonward/prettier-config
Shared Prettier 3 configuration for consistent JavaScript, TypeScript, JSON, Markdown, and framework-source formatting.
Install
pnpm add --save-dev @stackonward/prettier-config prettierUsage
Reference the package from package.json:
{
"prettier": "@stackonward/prettier-config"
}You can then use the normal Prettier commands:
pnpm exec prettier --check .
pnpm exec prettier --write .Defaults
| Option | Value |
| ---------------- | ---------- |
| semi | true |
| singleQuote | false |
| trailingComma | "all" |
| printWidth | 100 |
| tabWidth | 2 |
| useTabs | false |
| bracketSpacing | true |
| arrowParens | "always" |
| endOfLine | "lf" |
Prettier does not merge shared configs automatically. If a project needs an override, import the JSON config from an ESM configuration file and export a new object containing the explicit project-owned changes.
Compatibility
- Node.js 20.19 or newer
- Prettier 3
License
MIT
