Skip to content

remove trailing comma when generating enums #39

Description

@graphicsxp

Hey,

I'm not very familiar with the templating tool used by the breeze generator, but how would you remove the trailing comma ?

{{#each values}} {{this}} = {{lookup ../ordinals @index}},

generates

export enum ProductColor { Red = 0, Green = 1, Blue = 2, Yellow = 4, }

if the last enum value is followed by a comma, this gives a linting error so it's a bit annoying when generating metadata...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions