Skip to content
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

remove trailing comma when generating enums #39

Open
graphicsxp opened this issue May 6, 2024 · 0 comments
Open

remove trailing comma when generating enums #39

graphicsxp opened this issue May 6, 2024 · 0 comments

Comments

@graphicsxp
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant