How To Turn Off Jshint Error?
I have the following error for my files in tests: Expected an assignment or function call and instead saw an expression. It is generated from Chai libraries asserts. How can I turn
Solution 1:
Here's how you can silence it inside of a .jshintrc
file.
{
...
"expr": true
...
}
Solution 2:
You can add the following on top of the line that's generating the error :
/*jshint -W030 */
Reference : http://jslinterrors.com/expected-an-assignment-or-function-call
Post a Comment for "How To Turn Off Jshint Error?"