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
|
|
|
},
|
|
|
|
"prettier": {
|
2024-01-04 21:31:11 +03:00
|
|
|
"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.*",
|
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-06-18 04:10:11 +03:00
|
|
|
"https://plugins.dprint.dev/typescript-0.91.1.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
|
|
|
]
|
|
|
|
}
|