Shared Prettier configuration for Stackra packages.
pnpm add -D @stackra/prettier-config prettier{
"prettier": "@stackra/prettier-config"
}"@stackra/prettier-config"import config from '@stackra/prettier-config';
export default config;| Option | Value |
|---|---|
| Semi | true |
| Single Quote | true |
| Trailing Comma | es5 |
| Print Width | 100 |
| Tab Width | 2 |
| Arrow Parens | always |
| End of Line | lf |
| Bracket Spacing | true |
| HTML Whitespace Sensitivity | css |
| Embedded Language Formatting | auto |
- JSON files — Print width of 80, no trailing commas
- Markdown files — Print width of 80, always wrap prose
- YAML files — Tab width of 2, double quotes
MIT