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

Use const by default #15

Open
danielo515 opened this issue Jun 24, 2018 · 0 comments
Open

Use const by default #15

danielo515 opened this issue Jun 24, 2018 · 0 comments

Comments

@danielo515
Copy link

Hello again,

Thank you very much for this awesome project, I'm really enjoying it.
It would be awesome if the compiled output contains constants whenever possible. Currently you use let by default, which is fine for many cases, but with my style of programming I rarely need to mutate a variable, and when it happens it's usually an error.

There are eslint rules to detect when a variable is never re-assigned and they suggest you to use const, so similar logic could be used.

What do you think ?

Regards

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