|
1 | 1 | { |
2 | 2 | "$schema": "https://dprint.dev/schemas/v0.json", |
3 | 3 | "excludes": [ |
4 | | - "!**/__fixtures__/**/dist/", |
5 | | - "!**/__fixtures__/**/node_modules/", |
6 | | - "!**/typings/**/dist/", |
| 4 | + "!*.scratch.*", |
| 5 | + "!scratch.*", |
7 | 6 | "**/*.patch", |
8 | 7 | "**/*.snap", |
9 | | - "**/*config.*.timestamp*", |
10 | | - "**/.temp/", |
11 | | - "**/.vercel/", |
12 | | - "**/__tests__/report.json", |
13 | | - "**/coverage/", |
14 | | - "**/dist/", |
15 | | - "**/node_modules", |
16 | | - "**/tsconfig*temp.json", |
| 8 | + "**/CHANGELOG.md", |
| 9 | + "**/LICENSE.md", |
| 10 | + "**/RELEASE_NOTES.md", |
17 | 11 | ".git/", |
18 | 12 | ".husky/_/", |
19 | 13 | ".yarn/", |
20 | | - "CHANGELOG.md", |
21 | | - "LICENSE.md", |
22 | | - "RELEASE_NOTES.md", |
23 | 14 | "yarn.lock" |
24 | 15 | ], |
25 | 16 | "exec": { |
26 | 17 | "commands": [ |
27 | 18 | { |
28 | | - "command": "node ./dprint/prettier.mjs {{file_path}}", |
29 | | - "exts": ["json5", "yaml", "yml"], |
| 19 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}", |
| 20 | + "exts": ["css", "html", "json5", "scss", "yaml", "yml"], |
30 | 21 | "stdin": true |
31 | 22 | }, |
32 | 23 | { |
33 | | - "command": "node ./dprint/shfmt.mjs {{file_path}}", |
34 | | - "exts": ["sh", "txt", "zsh"], |
| 24 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}", |
| 25 | + "exts": ["md", "mdx"], |
| 26 | + "stdin": true |
| 27 | + }, |
| 28 | + { |
| 29 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}", |
| 30 | + "exts": ["sh", "zsh"], |
35 | 31 | "fileNames": [ |
36 | 32 | ".editorconfig", |
37 | 33 | ".env", |
|
42 | 38 | ".gitattributes", |
43 | 39 | ".gitconfig", |
44 | 40 | ".gitignore", |
45 | | - ".markdownlintignore", |
46 | 41 | ".npmrc", |
47 | 42 | ".nvmrc", |
48 | 43 | "Brewfile", |
|
52 | 47 | ], |
53 | 48 | "stdin": true |
54 | 49 | } |
55 | | - ] |
| 50 | + ], |
| 51 | + "cwd": "${configDir}" |
56 | 52 | }, |
57 | | - "incremental": true, |
58 | 53 | "indentWidth": 2, |
59 | 54 | "json": { |
60 | 55 | "associations": ["**/*.{jsonc,json}"], |
61 | 56 | "array.preferSingleLine": false, |
62 | 57 | "commentLine.forceSpaceAfterSlashes": true, |
63 | 58 | "ignoreNodeCommentText": "dprint-ignore", |
64 | | - "object.preferSingleLine": false |
| 59 | + "object.preferSingleLine": false, |
| 60 | + "trailingCommas": "never" |
65 | 61 | }, |
66 | 62 | "lineWidth": 80, |
67 | | - "markdown": { |
68 | | - "associations": ["**/*.{md,mdx}"], |
69 | | - "emphasisKind": "asterisks", |
70 | | - "ignoreDirective": "dprint-ignore", |
71 | | - "ignoreEndDirective": "dprint-ignore-end", |
72 | | - "ignoreFileDirective": "dprint-ignore-file", |
73 | | - "ignoreStartDirective": "dprint-ignore-start", |
74 | | - "lineWidth": 120, |
75 | | - "strongKind": "asterisks", |
76 | | - "textWrap": "maintain" |
77 | | - }, |
78 | 63 | "newLineKind": "lf", |
79 | 64 | "plugins": [ |
80 | | - "https://plugins.dprint.dev/typescript-0.87.1.wasm", |
81 | | - "https://plugins.dprint.dev/json-0.17.4.wasm", |
82 | | - "https://plugins.dprint.dev/markdown-0.16.0.wasm", |
83 | | - "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072" |
| 65 | + "https://plugins.dprint.dev/typescript-0.91.6.wasm", |
| 66 | + "https://plugins.dprint.dev/json-0.19.3.wasm", |
| 67 | + "https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0" |
84 | 68 | ], |
85 | 69 | "typescript": { |
86 | 70 | "arrowFunction.useParentheses": "preferNone", |
87 | 71 | "binaryExpression.linePerExpression": false, |
88 | 72 | "binaryExpression.operatorPosition": "sameLine", |
89 | 73 | "binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true, |
90 | 74 | "bracePosition": "sameLine", |
91 | | - "commentLine.forceSpaceAfterSlashes": true, |
| 75 | + "commentLine.forceSpaceAfterSlashes": false, |
92 | 76 | "constructSignature.spaceAfterNewKeyword": true, |
93 | 77 | "constructor.spaceBeforeParentheses": false, |
94 | 78 | "constructorType.spaceAfterNewKeyword": true, |
95 | 79 | "doWhileStatement.spaceAfterWhileKeyword": true, |
96 | 80 | "enumDeclaration.memberSpacing": "maintain", |
97 | | - "exportDeclaration.forceMultiLine": false, |
| 81 | + "exportDeclaration.forceMultiLine": "never", |
98 | 82 | "exportDeclaration.forceSingleLine": false, |
99 | 83 | "exportDeclaration.sortNamedExports": "maintain", |
100 | 84 | "exportDeclaration.spaceSurroundingNamedExports": true, |
|
109 | 93 | "ifStatement.spaceAfterIfKeyword": true, |
110 | 94 | "ignoreFileCommentText": "dprint-ignore-file", |
111 | 95 | "ignoreNodeCommentText": "dprint-ignore", |
112 | | - "importDeclaration.forceMultiLine": false, |
| 96 | + "importDeclaration.forceMultiLine": "never", |
113 | 97 | "importDeclaration.forceSingleLine": false, |
114 | 98 | "importDeclaration.sortNamedImports": "maintain", |
115 | 99 | "importDeclaration.spaceSurroundingNamedImports": true, |
116 | 100 | "jsx.bracketPosition": "nextLine", |
117 | 101 | "jsx.forceNewLinesSurroundingContent": false, |
118 | | - "jsx.multiLineParens": "always", |
| 102 | + "jsx.multiLineParens": "prefer", |
119 | 103 | "jsx.quoteStyle": "preferSingle", |
120 | | - "jsxExpressionContainer.spaceSurroundingExpression": true, |
| 104 | + "jsxExpressionContainer.spaceSurroundingExpression": false, |
121 | 105 | "jsxSelfClosingElement.spaceBeforeSlash": true, |
122 | 106 | "memberExpression.linePerExpression": false, |
123 | 107 | "method.spaceBeforeParentheses": false, |
|
0 commit comments