I'm checking my JS files using JSHint to find mistakes.
I just got this warning :
Expected an assignment or function call and instead saw an expression.
(mandatEngagementExists)
? $('.mandat-type[value=1]').prop('checked', false).prop('disabled', true)
: $('.mandat-type[value=1]').prop('disabled', false);
mandatEngagementExists
is a boolean.
All my JS is in strict mode.
This piece of code is working so I wanted to know if JSHint was a bit too strict or if I should switch to a classic if/else.