Typescript Enum Formatting

The following is how a long string literal typescript enum is formatted.  There does not seem to be  ANY settings that affects this at all. It is not treated like similar "objects".

export enum FunctionErrorCode {
Ok = 'ok', InvalidArgument = 'invalid-argument', FailedPrecondition = 'failed-precondition', OutOfRange = 'out-of-range', Unauthenticated = 'unauthenticated', PermissionDenied = 'permission-denied', NotFound = 'not-found', Aborted = 'aborted', AlreadyExists = 'already-exists', ResourceExhausted = 'resource-exhausted', Cancelled = 'cancelled', DataLoss = 'data-loss', Unknown = 'unknown', Internal = 'internal', NotImplemented = 'not-implemented', Unavailable = 'unavailable', DeadlineExceeded = 'deadline-exceeded',
}

What I would prefer is:

export enum FunctionErrorCode {
Ok = 'ok',
InvalidArgument = 'invalid-argument',
FailedPrecondition = 'failed-precondition',
OutOfRange = 'out-of-range',
... etc ...
}
0
1 comment

Please feel free to vote for https://youtrack.jetbrains.com/issue/WEB-43326 to increase its priority and to be notified on updates.

0

Please sign in to leave a comment.