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