
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>
86 lines
No EOL
1.6 KiB
Text
86 lines
No EOL
1.6 KiB
Text
{
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
} |