How to get “should.be.false” syntax pass jslint?

Just to make it clear to other readers:

You can add /*jshint expr: true*/ to the top of the test files, so it only allows it in the test files.

In the rare case that you use that kind of expressions in your code, you can add the expr: true option to the jshint config options.

Leave a Comment