Changelog
2.1.10 (2013-08-15)
Thanks to Dave Camp JSHint now supports list comprehensions, a declarative way of transforming a list:
[ for (i of [ 1, 2, 3 ]) i + 2 ]; // Returns [ 3, 4, 5 ]
Note: SpiderMonkey currently implements a slightly different syntax for list comprehensions which is also supported by JSHint.
Thanks to Rob Wu, Ryan Cannon, Dave Camp, Amir Livneh, Josh Hoff, Nikolay S. Frantsev, Lapo Luchini, Lukas Domnick for sending patches!
<a name="2.1.9"></a>
Changelog
2.1.6 (2013-07-29)
UPDATE: We just published another version, 2.1.7, which contains only one bugfix: #1199.
In this release we added two new arguments to our CLI program: exclude
which
allows you to exclude directories from linting and prereq
which allows you to
specify a file containing declarations of the global variables used throughout
your project. In addition to that, we added support for stdin. JSHint now
follows a UNIX convention where if a given file path is a dash (-
) the the
program reads from stdin.
We also extended our ES6 coverage by adding support for yield
statements and
import/export
declarations. JSHint is still the only linter that can
parse most ES6 and Mozilla-specific JavaScript code.
For more changes, see the patch summary below.
--exclude
argThanks to Terry Roe, Sindre Sorhus, Thomas Boyt, Nikolay S. Frantsev, XhmikosR, Jacob Rask, Kevin Chu, Tim Ruffles, Stephen Mathieson, Lukas Domnick, usrbincc for sending patches!
<a name="2.1.5"></a>