TypeScript/.dprint.jsonc

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

67 строки
2.4 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
},
"prettier": {
"newLineKind": "lf",
2023-08-17 00:26:38 +03:00
"associations": [
"**/*.{yaml,yml}"
],
"yml.tabWidth": 2,
"yaml.tabWidth": 2,
"yml.singleQuote": true,
"yaml.singleQuote": true
},
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": [
"https://plugins.dprint.dev/typescript-0.91.4.wasm",
2024-05-30 02:20:16 +03:00
"https://plugins.dprint.dev/json-0.19.3.wasm",
2024-05-07 22:55:16 +03:00
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c"
2023-08-17 00:26:38 +03:00
]
}