-
Notifications
You must be signed in to change notification settings - Fork 1
/
.dprint.json
80 lines (80 loc) · 2.96 KB
/
.dprint.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
// `dprint` configuration; ref: <https://dprint.dev/config>
// v2022.08.20 [rivy]
//
// * "$schema": "https://dprint.dev/schemas/v0.json",
// * "projectType": "openSource",
"incremental": true,
"indentWidth": 2,
"lineWidth": 100,
"useTabs": true,
//
"includes": ["**/*.{ts,tsx,js,jsx,cjs,cjx,mjs,mts,mtx,json,jsonc,md,mkd,rs,yaml,yml}"],
"excludes": [
// * build/coverage/dev artifacts
"{.,_,@,#,$}build",
"{.,_,@,#,$}coverage",
"build",
"coverage",
".nyc_output",
"CHANGELOG",
"CHANGELOG.*",
"dist",
"target",
// * format-sensitive files
".changelog/*.tpl",
".changelog/*.tpl{.,#}*",
// * third-party (or otherwise managed) files
"**/node_modules",
"**/*-lock.json",
".history",
".vscode",
"package.json",
"vendor"
],
//
"json": { "preferSingleLine": true },
"markdown": { "textWrap": "always", "lineWidth": 99999 },
"prettier": {
"printWidth": 100,
"proseWrap": "preserve",
"singleQuote": true,
"tabWidth": 2,
"useTabs": true,
"associations": [".commitlint.config.js", ".eslintrc.js", ".prettierrc.js", ".remarkrc.js"]
},
"rustfmt": { "hard_tabs": false, "tab_spaces": 4 },
"typescript": {
// ref: <https://dprint.dev/plugins/typescript/config>
"deno": true,
// * customize preferences (overrides of some Deno formatting choices)
// ref: <https://github.com/dprint/dprint-plugin-typescript/blob/44b6cf562e511a308f4a7183dc98fb19cdf21d07/src/configuration/builder.rs#L51>
// ref: <https://github.com/denoland/deno/blob/f46e39c5c5/cli/tools/fmt.rs#L311>
"lineWidth": 100,
"preferSingleLine": true,
"quoteStyle": "preferSingle",
"trailingCommas": "onlyMultiLine",
//
"ignoreNodeCommentText": "dprint-ignore", // from Deno's "deno-fmt-ignore"
"ignoreFileCommentText": "dprint-ignore-file", // from Deno's "deno-fmt-ignore-file"
"memberExpression.linePerExpression": true,
"memberExpression.preferSingleLine": true,
"module.sortImportDeclarations": "caseInsensitive",
"module.sortExportDeclarations": "caseInsensitive"
},
//
"plugins": [
// ref: <https://plugins.dprint.dev>
"https://plugins.dprint.dev/typescript-0.62.2.wasm",
"https://plugins.dprint.dev/json-0.14.1.wasm",
"https://plugins.dprint.dev/markdown-0.12.2.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
// ref: <https://github.com/dprint/dprint-plugin-rustfmt/releases>
// "https://plugins.dprint.dev/rustfmt-0.6.1.exe-plugin@99b89a0599fd3a63e597e03436862157901f3facae2f0c2fbd0b9f656cdbc2a5",
"https://plugins.dprint.dev/rustfmt-0.6.2.json@886c6f3161cf020c2d75160262b0f56d74a521e05cfb91ec4f956650c8ca76ca",
// ref: <https://github.com/dprint/dprint-plugin-prettier/releases>
// "https://plugins.dprint.dev/prettier-0.8.0.json@7229a9f8c7c07a0f2865f665728160c1a50f56d7a447117884fbd5fb803df90a"
// "https://plugins.dprint.dev/prettier-0.9.0.json@76c20538ea4231b3daa9b62059f90ec144200cab5477b7e95b730cbb3ed48957"
"https://plugins.dprint.dev/prettier-0.10.0.json@ca9a97de84cbb2cd60534eb72c0455f3ca8704743917569ace70499136cf5c9c"
]
}