feat: add .prettierrc - code formatting configuration

Prettier configuration with:
- Consistent formatting rules for TypeScript/JavaScript
- File-type specific overrides for JSON, Markdown, YAML, CSS
- 80-character line limit with 2-space indentation
- Single quotes and trailing commas for cleaner diffs
- JSX and HTML formatting optimizations
- Cross-platform line ending consistency (LF)
- Integration-ready with ESLint configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DustyWalker 2025-08-05 16:50:31 +02:00
parent 4cae1f981f
commit ebf20ea7f9

86
.prettierrc Normal file
View file

@ -0,0 +1,86 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"quoteProps": "as-needed",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": true,
"proseWrap": "preserve",
"requirePragma": false,
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 120,
"tabWidth": 2
}
},
{
"files": "*.md",
"options": {
"printWidth": 100,
"proseWrap": "always",
"tabWidth": 2
}
},
{
"files": "*.yml",
"options": {
"tabWidth": 2,
"singleQuote": false
}
},
{
"files": "*.yaml",
"options": {
"tabWidth": 2,
"singleQuote": false
}
},
{
"files": "*.html",
"options": {
"printWidth": 120,
"tabWidth": 2,
"htmlWhitespaceSensitivity": "ignore"
}
},
{
"files": "*.css",
"options": {
"printWidth": 120,
"tabWidth": 2
}
},
{
"files": "*.scss",
"options": {
"printWidth": 120,
"tabWidth": 2
}
},
{
"files": "*.tsx",
"options": {
"jsxSingleQuote": true,
"bracketSameLine": false
}
},
{
"files": "*.jsx",
"options": {
"jsxSingleQuote": true,
"bracketSameLine": false
}
}
]
}