Auto-format code (#277)

This commit is contained in:
Simon Lecoq
2021-04-28 23:05:08 +02:00
committed by GitHub
parent eda35ca6f5
commit 5a33c581fd
10 changed files with 41 additions and 20 deletions

25
.github/config/dprint.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"projectType": "openSource",
"incremental": true,
"indentWidth": 2,
"typescript": {
"lineWidth": 280,
"semiColons": "asi",
"quoteStyle": "preferDouble",
"useBraces": "preferNone",
"singleBodyPosition": "nextLine",
"arrowFunction.useParentheses": "preferNone",
"commentLine.forceSpaceAfterSlashes": false,
"taggedTemplate.spaceBeforeLiteral": false,
"nextControlFlowPosition": "nextLine"
},
"includes": ["**/*.{js,mjs}"],
"excludes": [
"**/node_modules",
"**/.github"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.42.0.wasm"
]
}