dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
TypeScript and JavaScript code formatting plugin for dprint.
Hello, I would like to require a config that would require parentheses wrapping evaluations when setting a value to something. My terminology is off, so I've provided some examples below...
**Describe the bug** `"conditionalType.operatorPosition": "nextLine"` doesn't work like `"conditionalExpression.operatorPosition": "nextLine"` Repro playground: https://dprint.dev/playground/#code/C4TwDgpgBA0hDWAeAKgPigXisqEAewEAdgCYDOUwATgK4QCwAUFC1APxQBEIEZnTrKAC4uRAPb9GTADYRgsBJkq0GzVh269JgkZ3gJOQA/config/N4KABGBEDGD2B2ATAlgF2QghgGwCoE8AHAUwDpYSAnTVWSgBVgGc0N5IAuKeYgD1QAyyHpAA04KHCSss2AKK9ClYkxYJyVGnUYt0CTtz6DhxSCAC+IIA/language/typescript dprint-plugin-typescript version: 0.79.0 **Input Code** ```ts type Kek = T extends true ? "yes" : "no" ```...
**Describe the bug** dprint-plugin-typescript version: 0.79.0 The following has two sets of input code that are identical except for the addition of a comment above `
Please, add var replacement to const or let! That would be awesome
Sorry if I missed the option but I don't think there is one. Can we have a setting for opening brace placement in object literals? In the example below, I...
Is it possible to configure that type declarations should have their opening brace on the next line, just like `interfaceDeclaration.bracePosition`. If not, can you consider this as feature request? ```ts...
**Describe the bug** The indentation of inner expression in template literal is incorrect. Given the example below, the indentation is based on the `return` token, which is wrong. dprint-plugin-typescript version:...
Currently there is no way to preserve trailing spaces, even when it's needed. Maybe we need to preserve spaces in comments (for example, ` ` is a break line in...
https://en.wikipedia.org/wiki/Semicolon https://prettier.io/docs/en/options#semicolons [`semicolons`][semicolons-1] (10k+) vs [`semiColons`][semiColons-2] (553) in sourcegraph [semicolons-1]: https://sourcegraph.com/search?q=context:global+semicolons&patternType=keyword&case=yes&sm=0 [semiColons-2]: https://sourcegraph.com/search?q=context:global+semiColons&patternType=keyword&case=yes&sm=0
**Request:** Add an option to sort interfaces, classes, types, and their properties and methods in an alphabetical order **Related issues:** #561 #585 **Configuration options:** Expose an option to order each...