-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
configurationConfigurable formatting behaviour.Configurable formatting behaviour.
Description
Is your feature request related to a problem? Please describe.
I want to write this code:
type MyObject = { foo: number, bar: string }But dprint-plugin-typescript converts it to semicolons:
type MayObject = { foo: number; bar: string }which it is not what I want.
Describe the solution you'd like
While I prefer commas as separator, others might prefer semicolons, so I suggest a configuration key should be introduced to specify whether the separator should be commas or semicolons:
objectLiteralTypeSeparator: 'comma' | 'semicolon'singleLineObjectLiteralTypeSeparator: 'comma' | 'semicolon''multiLineObjectLiteralTypeSeparator: 'comma' | 'semicolon' | 'none'
Describe alternatives you've considered
Additional context
I have set .semi_colons(SemiColons::Asi) in my own formatter, so I would prefer multi-line object literal type to not have separator.
Metadata
Metadata
Assignees
Labels
configurationConfigurable formatting behaviour.Configurable formatting behaviour.