|
| 1 | +{ |
| 2 | + "$schema": "https://dprint.dev/schemas/v0.json", |
| 3 | + "excludes": [ |
| 4 | + "!scratch.*", |
| 5 | + "**/*.patch", |
| 6 | + "**/*.snap", |
| 7 | + "**/CHANGELOG.md", |
| 8 | + "**/LICENSE.md", |
| 9 | + "**/RELEASE_NOTES.md", |
| 10 | + ".git/", |
| 11 | + ".husky/_/", |
| 12 | + ".yarn/", |
| 13 | + "yarn.lock" |
| 14 | + ], |
| 15 | + "exec": { |
| 16 | + "commands": [ |
| 17 | + { |
| 18 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}", |
| 19 | + "exts": ["css", "html", "json5", "scss", "yaml", "yml"], |
| 20 | + "stdin": true |
| 21 | + }, |
| 22 | + { |
| 23 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}", |
| 24 | + "exts": ["md", "mdx"], |
| 25 | + "stdin": true |
| 26 | + }, |
| 27 | + { |
| 28 | + "command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}", |
| 29 | + "exts": ["sh", "zsh"], |
| 30 | + "fileNames": [ |
| 31 | + ".editorconfig", |
| 32 | + ".env", |
| 33 | + ".env.local", |
| 34 | + ".env.repo", |
| 35 | + ".eslintcache", |
| 36 | + ".eslintignore", |
| 37 | + ".gitattributes", |
| 38 | + ".gitconfig", |
| 39 | + ".gitignore", |
| 40 | + ".npmrc", |
| 41 | + ".nvmrc", |
| 42 | + "Brewfile", |
| 43 | + "commit-msg", |
| 44 | + "pre-commit", |
| 45 | + "pre-push" |
| 46 | + ], |
| 47 | + "stdin": true |
| 48 | + } |
| 49 | + ], |
| 50 | + "cwd": "${configDir}" |
| 51 | + }, |
| 52 | + "indentWidth": 2, |
| 53 | + "json": { |
| 54 | + "associations": ["**/*.{jsonc,json}"], |
| 55 | + "array.preferSingleLine": false, |
| 56 | + "commentLine.forceSpaceAfterSlashes": true, |
| 57 | + "ignoreNodeCommentText": "dprint-ignore", |
| 58 | + "object.preferSingleLine": false, |
| 59 | + "trailingCommas": "never" |
| 60 | + }, |
| 61 | + "lineWidth": 80, |
| 62 | + "newLineKind": "lf", |
| 63 | + "plugins": [ |
| 64 | + "https://plugins.dprint.dev/typescript-0.93.3.wasm", |
| 65 | + "https://plugins.dprint.dev/json-0.19.4.wasm", |
| 66 | + "https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf" |
| 67 | + ], |
| 68 | + "typescript": { |
| 69 | + "arrowFunction.useParentheses": "preferNone", |
| 70 | + "binaryExpression.linePerExpression": false, |
| 71 | + "binaryExpression.operatorPosition": "sameLine", |
| 72 | + "binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true, |
| 73 | + "bracePosition": "sameLine", |
| 74 | + "commentLine.forceSpaceAfterSlashes": false, |
| 75 | + "constructSignature.spaceAfterNewKeyword": true, |
| 76 | + "constructor.spaceBeforeParentheses": false, |
| 77 | + "constructorType.spaceAfterNewKeyword": true, |
| 78 | + "doWhileStatement.spaceAfterWhileKeyword": true, |
| 79 | + "enumDeclaration.memberSpacing": "maintain", |
| 80 | + "exportDeclaration.forceMultiLine": "never", |
| 81 | + "exportDeclaration.forceSingleLine": false, |
| 82 | + "exportDeclaration.sortNamedExports": "maintain", |
| 83 | + "exportDeclaration.spaceSurroundingNamedExports": true, |
| 84 | + "forInStatement.spaceAfterForKeyword": true, |
| 85 | + "forOfStatement.spaceAfterForKeyword": true, |
| 86 | + "forStatement.spaceAfterForKeyword": true, |
| 87 | + "forStatement.spaceAfterSemiColons": true, |
| 88 | + "functionDeclaration.spaceBeforeParentheses": false, |
| 89 | + "functionExpression.spaceAfterFunctionKeyword": false, |
| 90 | + "functionExpression.spaceBeforeParentheses": false, |
| 91 | + "getAccessor.spaceBeforeParentheses": false, |
| 92 | + "ifStatement.spaceAfterIfKeyword": true, |
| 93 | + "ignoreFileCommentText": "dprint-ignore-file", |
| 94 | + "ignoreNodeCommentText": "dprint-ignore", |
| 95 | + "importDeclaration.forceMultiLine": "never", |
| 96 | + "importDeclaration.forceSingleLine": false, |
| 97 | + "importDeclaration.sortNamedImports": "maintain", |
| 98 | + "importDeclaration.spaceSurroundingNamedImports": true, |
| 99 | + "jsx.bracketPosition": "nextLine", |
| 100 | + "jsx.forceNewLinesSurroundingContent": false, |
| 101 | + "jsx.multiLineParens": "prefer", |
| 102 | + "jsx.quoteStyle": "preferSingle", |
| 103 | + "jsxExpressionContainer.spaceSurroundingExpression": false, |
| 104 | + "jsxSelfClosingElement.spaceBeforeSlash": true, |
| 105 | + "memberExpression.linePerExpression": false, |
| 106 | + "method.spaceBeforeParentheses": false, |
| 107 | + "module.sortExportDeclarations": "caseSensitive", |
| 108 | + "module.sortImportDeclarations": "caseSensitive", |
| 109 | + "newLineKind": "lf", |
| 110 | + "nextControlFlowPosition": "sameLine", |
| 111 | + "objectExpression.spaceSurroundingProperties": true, |
| 112 | + "objectPattern.spaceSurroundingProperties": true, |
| 113 | + "operatorPosition": "nextLine", |
| 114 | + "preferHanging": true, |
| 115 | + "preferSingleLine": false, |
| 116 | + "quoteProps": "asNeeded", |
| 117 | + "quoteStyle": "alwaysSingle", |
| 118 | + "semiColons": "asi", |
| 119 | + "setAccessor.spaceBeforeParentheses": false, |
| 120 | + "singleBodyPosition": "sameLine", |
| 121 | + "spaceAround": false, |
| 122 | + "spaceSurroundingProperties": true, |
| 123 | + "taggedTemplate.spaceBeforeLiteral": false, |
| 124 | + "trailingCommas": "never", |
| 125 | + "typeAnnotation.spaceBeforeColon": false, |
| 126 | + "typeAssertion.spaceBeforeExpression": false, |
| 127 | + "typeLiteral.separatorKind.singleLine": "semiColon", |
| 128 | + "typeLiteral.spaceSurroundingProperties": true, |
| 129 | + "useBraces": "maintain", |
| 130 | + "whileStatement.spaceAfterWhileKeyword": true |
| 131 | + }, |
| 132 | + "useTabs": false |
| 133 | +} |
0 commit comments