-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.dprint.jsonc
51 lines (51 loc) · 1.55 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
{
"lineWidth": 160,
"indentWidth": 2,
"newLineKind": "lf",
"useTabs": false,
"typescript": {
"associations": [
"**/*.{js,mjs,cjs,ts,tsx}"
],
"quoteStyle": "preferSingle",
"trailingCommas": "onlyMultiLine",
"objectPattern.trailingCommas": "onlyMultiLine",
"objectExpression.trailingCommas": "onlyMultiLine",
"arrayPattern.trailingCommas": "onlyMultiLine",
"parameters.trailingCommas": "onlyMultiLine",
"arguments.trailingCommas": "onlyMultiLine",
// [{},{},]
"arrayExpression.trailingCommas": "onlyMultiLine",
"typeParameters.trailingCommas": "onlyMultiLine",
"semiColons": "asi",
"binaryExpression.linePerExpression": true,
"jsx.quoteStyle": "preferDouble",
"preferSingleLine": false,
// https://github.com/lydell/eslint-plugin-simple-import-sort/tree/main?tab=readme-ov-file#how-do-i-use-this-with-dprint
"importDeclaration.sortNamedImports": "maintain",
"module.sortImportDeclarations": "maintain",
"module.sortExportDeclarations": "maintain"
},
"json": {
"trailingCommas": "never"
},
"markdown": {},
"excludes": [
"**/node_modules",
"**/*-lock.json",
"**/*-lock.yaml",
"**/.next",
"**/dist",
"**/coverage",
"**/public",
"**/__snapshots__",
"CHANGELOG.md",
"**/mocks/hellowWorld.js"
],
"plugins": [
// You may specify any urls or file paths here that you wish.
"https://plugins.dprint.dev/typescript-0.88.7.wasm",
"https://plugins.dprint.dev/json-0.19.1.wasm",
"https://plugins.dprint.dev/markdown-0.16.3.wasm"
]
}