diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 55c15df..d534292 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -1,4 +1,56 @@ { "$schema": "./node_modules/oxfmt/configuration_schema.json", - "ignorePatterns": [] + "arrowParens": "always", + "bracketSameLine": false, + "bracketSpacing": true, + "embeddedLanguageFormatting": "auto", + "endOfLine": "lf", + "htmlWhitespaceSensitivity": "css", + "ignorePatterns": ["dist/**", "node_modules/**", "static/assets/manifest.json"], + "insertFinalNewline": true, + "jsdoc": true, + "jsxSingleQuote": false, + "objectWrap": "collapse", + "printWidth": 100, + "proseWrap": "always", + "quoteProps": "as-needed", + "semi": true, + "singleAttributePerLine": true, + "singleQuote": false, + "sortImports": { + "groups": [ + "side_effect_style", + "side_effect", + { "newlinesBetween": true }, + "type", + "builtin", + "external", + ["internal", "subpath"], + ["parent", "sibling", "index"], + "style", + "unknown" + ], + "ignoreCase": false, + "internalPattern": ["~/**", "@/**", "#/**"], + "newlinesBetween": true, + "order": "asc", + "partitionByComment": false, + "partitionByNewline": false, + "sortSideEffects": false + }, + "sortPackageJson": { "sortScripts": true }, + "sortTailwindcss": { + "attributes": ["class"], + "functions": ["clsx", "cn", "cva", "tw"], + "preserveDuplicates": false, + "preserveWhitespace": false, + "stylesheet": "./static/assets/style.css" + }, + "tabWidth": 2, + "trailingComma": "all", + "useTabs": false, + "overrides": [ + { "files": ["*.md", "**/*.md"], "options": { "proseWrap": "always" } }, + { "files": ["*.json", "**/*.json"], "options": { "printWidth": 120 } } + ] }