-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I configurate formatting of ternary operator? #432
Comments
Sorry for my delay. Do you mean the operator position? You can use the Or are you wondering how to indent the second conditional expression? It's not possible to do that at the moment. |
Yes, it is nesting(second conditional expression) that interests me. Then let it be a wish for improvement)! |
@dsherret what option can i use to maintain the formatting below? /**
* @file Type Definitions - Writable
* @module tutils/types/Writable
*/
/**
* Construct a type where all properties of `T` are writable.
*
* This is the opposite of {@linkcode Readonly}.
*
* @todo examples
*
* @template T - Type to evaluate
*/
type Writable<T> = T extends unknown
? { -readonly [K in keyof T]: T[K] }
: never
export type { Writable as default } i tried changing edit: i updated the playground link to include more than just the above example. i'm trying to migrate from prettier, but i'm finding that all conditional type formatting results are less than desirable. line break/indentation removal is making my code less readable. edit 2: i read through #450. from what i understand, that pr may actually fix my issue. is that correct? |
- 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-plugin-typescript#432 Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
- 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 <unicornware@flexdevelopment.llc>
- 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 <unicornware@flexdevelopment.llc>
- 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 <unicornware@flexdevelopment.llc>
- 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 + better json5 support - prettier markdown formatting 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 <unicornware@flexdevelopment.llc>
- 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-plugin-typescript#432 Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
For example:
Language: Javascript, Typescript,
Files: Vue, React, jsx and tsx.
The text was updated successfully, but these errors were encountered: