E0146: missing ':' in conditional expression
The ? :
ternary operator has three parts: the condition, the expression if
true, and the expression if false. It is a syntax error to omit the expression
if false:
To fix this error, write :
followed by an expression:
Alternatively, write ?.
instead of ?
to access an object's property:
Introduced in quick-lint-js version 0.2.0.