Expected an assignment or function call and instead saw an expression

I don’t think JSLint has an option to turn that off.

JSHint (a fork with more options) has an option for it, though: The expr option, documented as “if ExpressionStatement should be allowed as Programs”.

Leave a Comment