It has been suggested that JSLint require that the condition part of a ternary expression must be wrapped in parens. There is evidence that this change will prevent a nasty class of bugs. But it is a change with a pretty big impact.
35 votes - votes visible to Public
require parens on ternary conditions
parens optional on ternary conditions
Add a comment...