-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdprint.json
96 lines (96 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// SPDX-License-Identifier: MIT
// Copyright 2023 Beslogic Inc.
//
// If using the `beslogic/json-like` preset with eslint-config-beslogic, use "dprint-json-like.json" instead.
{
// https://dprint.dev/config/#global-configuration
"lineWidth": 100,
"indentWidth": 2,
"newLineKind": "auto",
"useTabs": false,
// https://dprint.dev/plugins/typescript/config/
"typescript": {
"quoteStyle": "preferSingle",
"quoteProps": "asNeeded",
"semiColons": "asi",
"arrowFunction.useParentheses": "preferNone",
"binaryExpression.linePerExpression": true,
// Not convinced yet
// "memberExpression.linePerExpression": true,
"typeLiteral.separatorKind": "comma",
"enumDeclaration.memberSpacing": "newLine",
"importDeclaration.forceSingleLine": true,
// conflicts with simple-import-sort/imports
"module.sortImportDeclarations": "maintain",
"module.sortExportDeclarations": "maintain"
},
// https://dprint.dev/plugins/json/config/
"json": {
"associations": [
"*.json",
"*.jsonc",
"*.json5",
"*.nswag",
"*.dmw"
]
},
"yaml": {
"printWidth": 100,
"ignoreCommentDirective": "dprint-ignore"
},
"malva": {
"printWidth": 100,
"hexCase": "upper",
"hexColorLength": "long",
"operatorLinebreak": "before",
"trailingComma": true,
"formatComments": true,
"linebreakInPseudoParens": true,
"declarationOrder": "concentric",
"keyframeSelectorNotation": "keyword",
"selectorOverrideCommentDirective": "dprint-selector-override",
"ignoreCommentDirective": "dprint-ignore"
},
"markup": {
"printWidth": 100,
"formatComments": true,
"scriptIndent": true,
"styleIndent": true,
// TODO: Ask for a "selfClosing" shorthand
"component.selfClosing": true,
"svg.selfClosing": true,
"mathml.selfClosing": true,
// Self-closing tags on non-void elements aren't valid pure HTML. Let framework-specific linters handle them
"html.normal.selfClosing": false,
"html.void.selfClosing": true,
// Shorthand styles unspecified since we don't use Vue, Svelte or Astro
"strictSvelteAttr": true,
"ignoreCommentDirective": "dprint-ignore"
},
"plugins": [
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/toml-0.6.3.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm",
"https://plugins.dprint.dev/dockerfile-0.3.2.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.11.1.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.13.1.wasm"
],
"excludes": [
"**/node_modules",
"**/*-lock.json",
"**/.yalc",
"**/coverage", // created on install by nx
"**/build",
"**/cache",
"**/dist",
"**/tmp",
"**/obj",
"**/.storybook/documentation.json",
"**/storybook-static",
// capacitor folders
"**/*/android/app",
"**/*/ios/App"
]
}