-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoxfmt.config.ts
More file actions
41 lines (40 loc) · 1.07 KB
/
Copy pathoxfmt.config.ts
File metadata and controls
41 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { defineConfig } from 'oxfmt'
export default defineConfig({
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: process.platform === 'win32' ? 'crlf' : 'lf',
htmlWhitespaceSensitivity: 'strict',
ignorePatterns: ['packages/**/dist/', 'src/', 'global.json'],
insertFinalNewline: true,
jsdoc: {
addDefaultToDescription: true,
bracketSpacing: true,
capitalizeDescriptions: true,
commentLineStrategy: 'multiline',
descriptionTag: true,
descriptionWithDot: false,
keepUnparsableExampleIndent: true,
lineWrappingStyle: 'greedy',
preferCodeFences: true,
separateReturnsFromParam: false,
separateTagGroups: true,
},
jsxSingleQuote: false,
objectWrap: 'preserve',
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'as-needed',
semi: false,
singleAttributePerLine: false,
singleQuote: true,
sortImports: {},
sortPackageJson: {
sortScripts: true,
},
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
vueIndentScriptAndStyle: false,
})