-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- prettier 3.0 formatting has degraded in quality for js-like files, but the team refuses to fix it - prettier can be removed completely once dprint has its own yaml plugin - prettier formatting markdown was always subpar; it never played nicely with markdownlint - prettier/prettier#15358 - prettier/prettier#5715 - prettier/prettier#11881 - dprint/dprint#736 - dprint/dprint-plugin-typescript#432 Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
0e939d1
commit 875a9c7
Showing
105 changed files
with
885 additions
and
1,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"$schema": "https://dprint.dev/schemas/v0.json", | ||
"excludes": [ | ||
"!**/__fixtures__/**/dist/", | ||
"!**/__fixtures__/**/node_modules/", | ||
"!**/typings/**/dist/", | ||
"**/*.patch", | ||
"**/*.snap", | ||
"**/*config.*.timestamp*", | ||
"**/.temp/", | ||
"**/.vercel/", | ||
"**/__tests__/report.json", | ||
"**/coverage/", | ||
"**/dist/", | ||
"**/node_modules", | ||
"**/tsconfig*temp.json", | ||
".git/", | ||
".husky/_/", | ||
".yarn/", | ||
"CHANGELOG.md", | ||
"LICENSE.md", | ||
"RELEASE_NOTES.md", | ||
"yarn.lock" | ||
], | ||
"exec": { | ||
"commands": [ | ||
{ | ||
"command": "node ./dprint/prettier.mjs {{file_path}}", | ||
"exts": ["yaml", "yml"], | ||
"stdin": true | ||
}, | ||
{ | ||
"command": "node ./dprint/shfmt.mjs {{file_path}}", | ||
"exts": ["sh", "txt", "zsh"], | ||
"fileNames": [ | ||
".editorconfig", | ||
".env", | ||
".env.local", | ||
".env.repo", | ||
".eslintcache", | ||
".eslintignore", | ||
".gitattributes", | ||
".gitconfig", | ||
".gitignore", | ||
".markdownlintignore", | ||
".npmrc", | ||
".nvmrc", | ||
"Brewfile", | ||
"commit-msg", | ||
"pre-commit", | ||
"pre-push" | ||
], | ||
"stdin": true | ||
} | ||
] | ||
}, | ||
"incremental": true, | ||
"indentWidth": 2, | ||
"json": { | ||
"associations": ["**/*.{json5,jsonc,json}"], | ||
"array.preferSingleLine": false, | ||
"commentLine.forceSpaceAfterSlashes": true, | ||
"ignoreNodeCommentText": "dprint-ignore", | ||
"object.preferSingleLine": false | ||
}, | ||
"lineWidth": 80, | ||
"markdown": { | ||
"associations": ["**/*.{md,mdx}"], | ||
"emphasisKind": "asterisks", | ||
"ignoreDirective": "dprint-ignore", | ||
"ignoreEndDirective": "dprint-ignore-end", | ||
"ignoreFileDirective": "dprint-ignore-file", | ||
"ignoreStartDirective": "dprint-ignore-start", | ||
"lineWidth": 120, | ||
"strongKind": "asterisks", | ||
"textWrap": "maintain" | ||
}, | ||
"newLineKind": "lf", | ||
"plugins": [ | ||
"https://plugins.dprint.dev/typescript-0.87.1.wasm", | ||
"https://plugins.dprint.dev/json-0.17.4.wasm", | ||
"https://plugins.dprint.dev/markdown-0.16.0.wasm", | ||
"https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072" | ||
], | ||
"typescript": { | ||
"arrowFunction.useParentheses": "preferNone", | ||
"binaryExpression.linePerExpression": false, | ||
"binaryExpression.operatorPosition": "sameLine", | ||
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true, | ||
"bracePosition": "sameLine", | ||
"commentLine.forceSpaceAfterSlashes": true, | ||
"constructSignature.spaceAfterNewKeyword": true, | ||
"constructor.spaceBeforeParentheses": false, | ||
"constructorType.spaceAfterNewKeyword": true, | ||
"doWhileStatement.spaceAfterWhileKeyword": true, | ||
"enumDeclaration.memberSpacing": "maintain", | ||
"exportDeclaration.forceMultiLine": false, | ||
"exportDeclaration.forceSingleLine": false, | ||
"exportDeclaration.sortNamedExports": "maintain", | ||
"exportDeclaration.spaceSurroundingNamedExports": true, | ||
"forInStatement.spaceAfterForKeyword": true, | ||
"forOfStatement.spaceAfterForKeyword": true, | ||
"forStatement.spaceAfterForKeyword": true, | ||
"forStatement.spaceAfterSemiColons": true, | ||
"functionDeclaration.spaceBeforeParentheses": false, | ||
"functionExpression.spaceAfterFunctionKeyword": false, | ||
"functionExpression.spaceBeforeParentheses": false, | ||
"getAccessor.spaceBeforeParentheses": false, | ||
"ifStatement.spaceAfterIfKeyword": true, | ||
"ignoreFileCommentText": "dprint-ignore-file", | ||
"ignoreNodeCommentText": "dprint-ignore", | ||
"importDeclaration.forceMultiLine": false, | ||
"importDeclaration.forceSingleLine": false, | ||
"importDeclaration.sortNamedImports": "maintain", | ||
"importDeclaration.spaceSurroundingNamedImports": true, | ||
"jsx.bracketPosition": "nextLine", | ||
"jsx.forceNewLinesSurroundingContent": false, | ||
"jsx.multiLineParens": "always", | ||
"jsx.quoteStyle": "preferSingle", | ||
"jsxExpressionContainer.spaceSurroundingExpression": true, | ||
"jsxSelfClosingElement.spaceBeforeSlash": true, | ||
"memberExpression.linePerExpression": false, | ||
"method.spaceBeforeParentheses": false, | ||
"module.sortExportDeclarations": "caseSensitive", | ||
"module.sortImportDeclarations": "caseSensitive", | ||
"newLineKind": "lf", | ||
"nextControlFlowPosition": "sameLine", | ||
"objectExpression.spaceSurroundingProperties": true, | ||
"objectPattern.spaceSurroundingProperties": true, | ||
"operatorPosition": "nextLine", | ||
"preferHanging": true, | ||
"preferSingleLine": false, | ||
"quoteProps": "asNeeded", | ||
"quoteStyle": "alwaysSingle", | ||
"semiColons": "asi", | ||
"setAccessor.spaceBeforeParentheses": false, | ||
"singleBodyPosition": "sameLine", | ||
"spaceAround": false, | ||
"spaceSurroundingProperties": true, | ||
"taggedTemplate.spaceBeforeLiteral": false, | ||
"trailingCommas": "never", | ||
"typeAnnotation.spaceBeforeColon": false, | ||
"typeAssertion.spaceBeforeExpression": false, | ||
"typeLiteral.separatorKind.singleLine": "semiColon", | ||
"typeLiteral.spaceSurroundingProperties": true, | ||
"useBraces": "maintain", | ||
"whileStatement.spaceAfterWhileKeyword": true | ||
}, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.