|
| 1 | +{ |
| 2 | + // If updating this, also update the config in dtsBundler.mjs. |
| 3 | + "indentWidth": 4, |
| 4 | + "lineWidth": 1000, |
| 5 | + "newLineKind": "auto", |
| 6 | + "useTabs": false, |
| 7 | + "typescript": { |
| 8 | + "newLineKind": "crlf", |
| 9 | + "semiColons": "always", |
| 10 | + "quoteStyle": "preferDouble", |
| 11 | + "quoteProps": "consistent", |
| 12 | + "useBraces": "whenNotSingleLine", |
| 13 | + "bracePosition": "sameLineUnlessHanging", |
| 14 | + "singleBodyPosition": "sameLine", |
| 15 | + "nextControlFlowPosition": "nextLine", // Stroustrup style braces. |
| 16 | + "trailingCommas": "onlyMultiLine", |
| 17 | + "preferHanging": false, |
| 18 | + "operatorPosition": "maintain", |
| 19 | + |
| 20 | + "arrowFunction.useParentheses": "preferNone", |
| 21 | + "conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals. |
| 22 | + "functionExpression.spaceAfterFunctionKeyword": true, |
| 23 | + "importDeclaration.forceMultiLine": "whenMultiple", |
| 24 | + "constructorType.spaceAfterNewKeyword": true, |
| 25 | + "constructSignature.spaceAfterNewKeyword": true, |
| 26 | + |
| 27 | + "module.sortImportDeclarations": "caseInsensitive", |
| 28 | + "module.sortExportDeclarations": "caseInsensitive", |
| 29 | + "exportDeclaration.sortNamedExports": "caseInsensitive", |
| 30 | + "importDeclaration.sortNamedImports": "caseInsensitive" |
| 31 | + }, |
| 32 | + "yaml": { |
| 33 | + "indentWidth": 2, |
| 34 | + "quotes": "preferSingle" |
| 35 | + }, |
| 36 | + "json": { |
| 37 | + // This would be good to do in known-JSONC files, but VS Code warns on trailing commas. |
| 38 | + "trailingCommas": "never" |
| 39 | + }, |
| 40 | + "exec": { |
| 41 | + "cwd": "${configDir}", |
| 42 | + "commands": [ |
| 43 | + { "command": "gofmt", "exts": ["go"] } |
| 44 | + ] |
| 45 | + }, |
| 46 | + "excludes": [ |
| 47 | + "**/.git", |
| 48 | + "**/node_modules", |
| 49 | + "**/*-lock.json", |
| 50 | + "**/testdata", |
| 51 | + "_submodules/**" |
| 52 | + ], |
| 53 | + // Note: if adding new languages, make sure settings.template.json is updated too. |
| 54 | + // Also, if updating typescript, update the one in package.json. |
| 55 | + "plugins": [ |
| 56 | + "https://plugins.dprint.dev/typescript-0.93.0.wasm", |
| 57 | + "https://plugins.dprint.dev/json-0.19.3.wasm", |
| 58 | + "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm", |
| 59 | + "https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0" |
| 60 | + ] |
| 61 | +} |
0 commit comments