TypeScript/.dprint.jsonc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 строка
2.2 KiB
Plaintext
Исходник Обычный вид История

2023-08-17 00:26:38 +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,
"importDeclaration.forceMultiLine": "whenMultiple",
2023-08-17 00:26:38 +03:00
"constructorType.spaceAfterNewKeyword": true,
"constructSignature.spaceAfterNewKeyword": true,
"module.sortImportDeclarations": "caseInsensitive",
"module.sortExportDeclarations": "caseInsensitive",
"exportDeclaration.sortNamedExports": "caseInsensitive",
"importDeclaration.sortNamedImports": "caseInsensitive"
2023-08-17 00:26:38 +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.*",
"scripts/*.d.*",
"**/_namespaces/**"
2023-08-17 00:26:38 +03:00
],
// Note: if adding new languages, make sure settings.template.json is updated too.
// 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",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
2023-08-17 00:26:38 +03:00
]
}