Closed XP1 closed 10 years ago
JSLint discussion on Google+: https://plus.google.com/118095276221607585885/posts/WZwU74SvTZd
On May 2, 2013, Douglas Crockford said:
There is a new option, Tolerate assignment operators. Normally, assignment is allowed only in statement position. This option allows assignment in expression position. Use of this option is not recommended.
Thanks, I'll get an article for this up as soon as I can. If you have enough information to write one yourself, please feel free to do so and open a pull request.
Explain JSLint "Unexpected assignment expression."
Tolerate assignment expressions:
true
if assignment should be allowed outside of statement positionass:
true
, if assignment expressions should be allowedhttps://github.com/douglascrockford/JSLint/commit/abc0d34007353642b8a4a822627549c459070f8b
Example: