From ebf20ea7f93d38ad25822966020460bd330aefbb Mon Sep 17 00:00:00 2001 From: DustyWalker Date: Tue, 5 Aug 2025 16:50:31 +0200 Subject: [PATCH] feat: add .prettierrc - code formatting configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .prettierrc | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..1ce5765 --- /dev/null +++ b/.prettierrc @@ -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 + } + } + ] +} \ No newline at end of file