We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the Feature There is no way to configure wrapping for comparison operators, to allow prettier long if conditions. I have this code:
if (this.actionsByPriority.indexOf(action) < this.actionsByPriority.indexOf(availableAction) {}
Desired output
if ( this.actionsByPriority.indexOf(action) < this.actionsByPriority.indexOf(availableAction) ) {}
The text was updated successfully, but these errors were encountered:
can't say I find your desired output easier to read, especially if you had multiple compare operations in a single if condition.
if
what would look prettier is to extract those terms into variables before comparing, but that is beyond the scope of a formatter.
Sorry, something went wrong.
No branches or pull requests
Describe the Feature
There is no way to configure wrapping for comparison operators, to allow prettier long if conditions. I have this code:
Desired output
The text was updated successfully, but these errors were encountered: