Skip to content

Add multi-line if without braces as bad example

Dan Davison requested to merge doc-add-multiline-if-without-braces into master

What does this MR do?

The current documentation is not vague in terms of using single-line conditions.
It does not however necessarily prohibit the ability to use single-statement, multi-line conditionals without braces.

This MR adds one of these single-statement, multi-line conditionals without braces to the Bad examples since this would be auto-corrected by a yarn prettier --write <file.js>

Does this MR meet the acceptance criteria?

Conformity

Edited by 🤖 GitLab Bot 🤖

Merge request reports