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.
You can also use myvalue.should.equal(true)
instead.
It turns our jslint is unable to solve my problem. And due to many restrictions of jslint, I turned to jshint, and the option expr
saved me :P