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
Some codebases require the optional then keyword at the end of an if/else if statement's condition; others forbid it! Some even require it only for the single-line or only for the block variants of if. An eslint rule means humans don't need to watch for that sort of thing during code reviews!
Some codebases require the optional
then
keyword at the end of anif
/else if
statement's condition; others forbid it! Some even require it only for the single-line or only for the block variants ofif
. Aneslint
rule means humans don't need to watch for that sort of thing during code reviews!Schema
Name:
then-after-if
Options:
"always" | "block-only" | "line-only" | "never"
Examples
Block
if
statementsalways
block-only
line-only
never
always
block-only
line-only
never
Line
if
statementsalways
block-only
line-only
never
always
block-only
line-only
never
The text was updated successfully, but these errors were encountered: