2023-08-17 00:26:38 +03:00
|
|
|
{
|
2024-05-23 01:20:26 +03:00
|
|
|
// If updating this, also update the config in dtsBundler.mjs.
|
2023-08-17 00:26:38 +03:00
|
|
|
"indentWidth": 4,
|
|
|
|
"lineWidth": 1000,
|
|
|
|
"newLineKind": "auto",
|
|
|
|
"useTabs": false,
|
|
|
|
"typescript": {
|
2023-08-17 01:27:36 +03:00
|
|
|
"newLineKind": "crlf",
|
2023-08-17 00:26:38 +03:00
|
|
|
"semiColons": "always",
|
|
|
|
"quoteStyle": "preferDouble",
|
|
|
|
"quoteProps": "consistent",
|
|
|
|
"useBraces": "whenNotSingleLine",
|
|
|
|
"bracePosition": "sameLineUnlessHanging",
|
|
|
|
"singleBodyPosition": "sameLine",
|
|
|
|
"nextControlFlowPosition": "nextLine", // Stroustrup style braces.
|
|
|
|
"trailingCommas": "onlyMultiLine",
|
|
|
|
"preferHanging": false,
|
|
|
|
"operatorPosition": "maintain",
|
|
|
|
|
|
|
|
"arrowFunction.useParentheses": "preferNone",
|
|
|
|
"conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals.
|
|
|
|
"functionExpression.spaceAfterFunctionKeyword": true,
|
2024-04-02 20:58:16 +03:00
|
|
|
"importDeclaration.forceMultiLine": "whenMultiple",
|
2023-08-17 00:26:38 +03:00
|
|
|
"constructorType.spaceAfterNewKeyword": true,
|
|
|
|
"constructSignature.spaceAfterNewKeyword": true,
|
|
|
|
|
2024-04-03 21:27:49 +03:00
|
|
|
"module.sortImportDeclarations": "caseInsensitive",
|
|
|
|
"module.sortExportDeclarations": "caseInsensitive",
|
|
|
|
"exportDeclaration.sortNamedExports": "caseInsensitive",
|
|
|
|
"importDeclaration.sortNamedImports": "caseInsensitive"
|
2023-08-17 00:26:38 +03:00
|
|
|
},
|
2024-08-26 20:48:00 +03:00
|
|
|
"yaml": {
|
|
|
|
"indentWidth": 2,
|
|
|
|
"quotes": "preferSingle"
|
2023-08-17 00:26:38 +03:00
|
|
|
},
|
2023-10-28 20:40:52 +03:00
|
|
|
"json": {
|
|
|
|
// This would be good to do in known-JSONC files, but VS Code warns on trailing commas.
|
|
|
|
"trailingCommas": "never"
|
|
|
|
},
|
2023-08-17 00:26:38 +03:00
|
|
|
"excludes": [
|
2024-03-25 23:03:12 +03:00
|
|
|
"**/.git",
|
2023-08-17 00:26:38 +03:00
|
|
|
"**/node_modules",
|
|
|
|
"**/*-lock.json",
|
|
|
|
"coverage/**",
|
|
|
|
"lib/**",
|
|
|
|
"built/**",
|
|
|
|
"tests/**",
|
|
|
|
"internal/**",
|
|
|
|
"**/*.generated.*",
|
2024-04-03 21:27:49 +03:00
|
|
|
"scripts/*.d.*",
|
|
|
|
"**/_namespaces/**"
|
2023-08-17 00:26:38 +03:00
|
|
|
],
|
2023-09-12 03:59:07 +03:00
|
|
|
// Note: if adding new languages, make sure settings.template.json is updated too.
|
2024-05-23 01:20:26 +03:00
|
|
|
// Also, if updating typescript, update the one in package.json.
|
2023-08-17 00:26:38 +03:00
|
|
|
"plugins": [
|
2024-09-30 23:31:14 +03:00
|
|
|
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
|
2024-05-30 02:20:16 +03:00
|
|
|
"https://plugins.dprint.dev/json-0.19.3.wasm",
|
2024-08-26 20:48:00 +03:00
|
|
|
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
|
2023-08-17 00:26:38 +03:00
|
|
|
]
|
|
|
|
}
|