You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Twoslash there is a special syntax for highlighting text (not whole lines but segments within) https://twoslash.netlify.app/refs/notations#highlighting. My issue with dprint right now is that it makes the Twoslash notation difficult to use.
Notice that I have to resort to disabling dprint for most of the code to get the highlighting effect I want. Not ideal and I'd like a more localized solution.
Here are some ideas:
Firstly: add a rule e.g. comment-line-indentation-start firstly to control this formatting which the following ideas rely on.
Allow a module-level directive that disables the comment line formatting. E.g. // dprint-ignore comment-line-indentation-start. I don't want to apply this rule to the whole codebase.
Allow a project-wide rule but constricted by a glob e.g.:
When working with Twoslash there is a special syntax for highlighting text (not whole lines but segments within) https://twoslash.netlify.app/refs/notations#highlighting. My issue with dprint right now is that it makes the Twoslash notation difficult to use.
Here is an example where I'm hitting friction:
Notice that I have to resort to disabling dprint for most of the code to get the highlighting effect I want. Not ideal and I'd like a more localized solution.
Here are some ideas:
Firstly: add a rule e.g.
comment-line-indentation-start
firstly to control this formatting which the following ideas rely on.Allow a module-level directive that disables the comment line formatting. E.g.
// dprint-ignore comment-line-indentation-start
. I don't want to apply this rule to the whole codebase.Allow a project-wide rule but constricted by a glob e.g.:
The text was updated successfully, but these errors were encountered: