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”.
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”.