-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rule Idea: no-break, no-if, no-loops #54
Comments
This seems like some nice additions to the functional style rules :-). |
I'm think about how the options for
That would disable all loops, including
That would only disable I'm thinking maybe it is more logical to have ignore options, like Also not sure if |
You’re right. I like the last option. Agree it’s more logical. I like tailoring rules based on how frequently a part of code is likely to be used. |
FWIW: the standard lib has a Also, it has Maybe |
So I'm thinking about implementing these rules:
I think this would be a good division, but not 100% sure about |
I published 4.5.0 with the following new rules:
In order to keep the amount of rules and documentation down I went back to the original suggestion of These rules remains to be implemented:
If anyone care to implement them I'm open for a PR on any or all of the above rules :-). |
Awesome! Thank you! |
https://hackernoon.com/rethinking-javascript-eliminate-the-switch-statement-for-better-code-5c81c044716d
The text was updated successfully, but these errors were encountered: