You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
The impetus for this rule is to have a blank line to denote that an asynchronous function call might occur. One case in which it's guaranteed that there's no async business is in a getter. It would be very convenient, in particular for static class getters, to have an option to allow one-liners there.
Here's an example,
// AllowedconstMyClass=class{staticgetname(){return'MySpecialClass';}};// AllowedconstMyClass=class{staticgetname(){return'MySpecialClass';}};// Still not allowedconstfn=function(){return'someValue';};
The text was updated successfully, but these errors were encountered:
Can do! Wouldn't necessarily have to change the hapi style guide if we make this an additional one-liner option, but I wouldn't mind it in the official hapi style guide either.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The impetus for this rule is to have a blank line to denote that an asynchronous function call might occur. One case in which it's guaranteed that there's no async business is in a getter. It would be very convenient, in particular for static class getters, to have an option to allow one-liners there.
Here's an example,
The text was updated successfully, but these errors were encountered: