I’ve had a look at JSLint but it stops after 2% with a bunch of non-harmful messages, even after asking it to tolerate everything.
For the moment, I’m only interested in finding ‘=’ where ‘==’ or ‘===’ should be, I can move on to the rest later.
If there is no such test, can someone provide me the regex for the following instances:
(foo = bar) ? option1 : option2
and
if (foo = bar) ...
Thanks
There’s JSHint, which is a more “merciful” version of JSLint (Crockford was just too strict)
Also, JSLint gets too carried away with formatting errors. You might want to try JSBeautifier to format the code in a way JSLint sees fit.