|
1 | 1 | { |
| 2 | + // If updating this, also update the config in dtsBundler.mjs. |
2 | 3 | "indentWidth": 4, |
3 | 4 | "lineWidth": 1000, |
4 | 5 | "newLineKind": "auto", |
|
19 | 20 | "arrowFunction.useParentheses": "preferNone", |
20 | 21 | "conditionalExpression.linePerExpression": false, // Keep our "match/case"-ish conditionals. |
21 | 22 | "functionExpression.spaceAfterFunctionKeyword": true, |
22 | | - "importDeclaration.forceMultiLine": true, |
| 23 | + "importDeclaration.forceMultiLine": "whenMultiple", |
23 | 24 | "constructorType.spaceAfterNewKeyword": true, |
24 | 25 | "constructSignature.spaceAfterNewKeyword": true, |
25 | 26 |
|
26 | | - // Let eslint-plugin-simple-import-sort handle this. |
27 | | - "module.sortImportDeclarations": "maintain", |
28 | | - "module.sortExportDeclarations": "maintain", |
29 | | - "exportDeclaration.sortNamedExports": "maintain", |
30 | | - "importDeclaration.sortNamedImports": "maintain" |
| 27 | + "module.sortImportDeclarations": "caseInsensitive", |
| 28 | + "module.sortExportDeclarations": "caseInsensitive", |
| 29 | + "exportDeclaration.sortNamedExports": "caseInsensitive", |
| 30 | + "importDeclaration.sortNamedImports": "caseInsensitive" |
31 | 31 | }, |
32 | | - "prettier": { |
33 | | - "associations": [ |
34 | | - "**/*.{yaml,yml}" |
35 | | - ], |
36 | | - "yml.tabWidth": 2, |
37 | | - "yaml.tabWidth": 2, |
38 | | - "yml.singleQuote": true, |
39 | | - "yaml.singleQuote": true |
| 32 | + "yaml": { |
| 33 | + "indentWidth": 2, |
| 34 | + "quotes": "preferSingle" |
40 | 35 | }, |
41 | 36 | "json": { |
42 | 37 | // This would be good to do in known-JSONC files, but VS Code warns on trailing commas. |
43 | 38 | "trailingCommas": "never" |
44 | 39 | }, |
45 | 40 | "excludes": [ |
| 41 | + "**/.git", |
46 | 42 | "**/node_modules", |
47 | 43 | "**/*-lock.json", |
48 | 44 | "coverage/**", |
|
51 | 47 | "tests/**", |
52 | 48 | "internal/**", |
53 | 49 | "**/*.generated.*", |
54 | | - "scripts/*.d.*" |
| 50 | + "scripts/*.d.*", |
| 51 | + "**/_namespaces/**" |
55 | 52 | ], |
56 | 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. |
57 | 55 | "plugins": [ |
58 | | - "https://plugins.dprint.dev/typescript-0.88.3.wasm", |
59 | | - "https://plugins.dprint.dev/json-0.19.0.wasm", |
60 | | - "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe" |
| 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" |
61 | 59 | ] |
62 | 60 | } |
0 commit comments