-
Notifications
You must be signed in to change notification settings - Fork 2
/
dprint.jsonc
55 lines (53 loc) · 1.61 KB
/
dprint.jsonc
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Adopt from https://github.com/microsoft/TypeScript with minor changes
{
"indentWidth": 4,
"lineWidth": 1000,
"newLineKind": "crlf",
"useTabs": true,
"typescript": {
"semiColons": "prefer",
"quoteStyle": "preferDouble",
"quoteProps": "consistent",
"useBraces": "whenNotSingleLine",
"bracePosition": "sameLineUnlessHanging",
"singleBodyPosition": "sameLine",
"nextControlFlowPosition": "nextLine",
"trailingCommas": "onlyMultiLine",
"operatorPosition": "nextLine",
"preferHanging": false,
"arrowFunction.useParentheses": "preferNone",
"jsx.bracketPosition": "sameLine",
"jsx.forceNewLinesSurroundingContent": false,
"jsx.multiLineParens": "never",
"functionExpression.spaceAfterFunctionKeyword": true,
"constructorType.spaceAfterNewKeyword": true,
"constructSignature.spaceAfterNewKeyword": true,
// Let ESLint handle this.
"module.sortImportDeclarations": "maintain",
"module.sortExportDeclarations": "maintain",
"exportDeclaration.sortNamedExports": "maintain",
"importDeclaration.sortNamedImports": "maintain"
},
"json": {
"associations": [
"**/*.{json,jsonc,webmanifest,*rc}"
],
"trailingCommas": "never"
},
"markdown": {},
"prettier": {
"associations": [
"**/*.{html,htm,xhtml,css,scss,sass,less,graphql,graphqls,gql,yaml,yml}"
]
},
"excludes": [
"node_modules",
"build"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.1.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c"
]
}