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

How to use trailingComma: "all"? #20

Open
Glavin001 opened this issue Feb 27, 2018 · 2 comments
Open

How to use trailingComma: "all"? #20

Glavin001 opened this issue Feb 27, 2018 · 2 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Glavin001
Copy link
Member

See docs:

https://prettier.io/docs/en/options.html#trailing-commas

See code:

https://github.com/Unibeautify/beautifier-prettier/blob/master/src/options.ts#L60-L72

Only supports es5.

@Glavin001 Glavin001 added bug Something isn't working question Further information is requested labels Feb 27, 2018
@stevenzeck
Copy link
Contributor

The way I implemented it with ESLint is true = always and false = never. But it can be extended to use (or not use) against arrays, objects, functions, etc. See https://eslint.org/docs/rules/comma-dangle.

Maybe a simple boolean isn't the right data type for trailing comma?

@Glavin001
Copy link
Member Author

Maybe a simple boolean isn't the right data type for trailing comma?

I think you may be correct. This is going to require some changes 🔥.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants