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

refactor: no const functions #106

Closed
wants to merge 2 commits into from
Closed

refactor: no const functions #106

wants to merge 2 commits into from

Conversation

ComradeVanti
Copy link
Collaborator

This is an opinionated change, to only allow function declarations in the project. That means no const x = function() { }, only function x() { }. Arrow functions are still allowed, since that sometimes has an effect on functionality.

This is done for consistency across the project. We could also convert all functions to the expression syntax instead. Either way is fine.

@ComradeVanti
Copy link
Collaborator Author

Actually, I retract this PR. I think it's fine for everyone to use the function style they prefer. No need to force consistency.

@ComradeVanti ComradeVanti deleted the no-const-functions branch January 14, 2024 08:41
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

Successfully merging this pull request may close these issues.

1 participant