Declan Vong
Declan Vong
Aims to resolve https://github.com/dprint/dprint-plugin-typescript/issues/52 and issues similar to it. Not production ready code, it's just a hack to see if it would work :) if the idea is sound, then...
Implementation of https://github.com/dprint/dprint/pull/423 in the TS plugin. Aims to resolve https://github.com/dprint/dprint-plugin-typescript/issues/52 and issues similar to it.
There are some cases where the combination `memberExpression.preferSingleLine: false, memberExpression.linePerExpression: true` doesn't produce a nice format. My goal is to produce something similar to what Prettier does with method chaining,...
This is called "continuation indent" in formatters such as: - [IntelliJ](https://www.jetbrains.com/help/idea/settings-code-style-javascript.html#tabs_and_indents) (see "Continuation indent") - [clang-format](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) (scroll to "ContinuationIndentWidth") and would be needed to satisfy style guides such as [Google's...
Input: ``` a ? // Some comment b : // Some other comment c; ``` Expected, given `operatorPosition.nextLine` ``` a // Some comment ? b // Some other comment :...
As per title! dprint currently will organize imports, but not remove unused ones. This is in comparison to the TS service "Organize imports", which does both. The TS service has...
We've had this in our fork for over a year now, and I noticed https://github.com/dprint/dprint-plugin-typescript/issues/432 pop up. This PR adds support for nested indentation in conditional types and expressions, so...
`has_any_node_comment_on_different_line` doesn't currently consider the case where the final node has a trailing line comment (which is therefore on the same line). This causes issues such as the following, where...
**Describe the bug** dprint-plugin-typescript version: 0.80.2 When `preferSingleLine` is enabled, dprint incorrectly collapses multi-line JSX, as there is no space in the rendered output of the original code (whitespace is...
**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 `