Skip to content

v2.2.0

Compare
Choose a tag to compare
@benquarmby benquarmby released this 31 Jan 03:56
· 20 commits to master since this release

As of edition 2016-01-16, JSLint warns against declaring multiple variables in a single var, let, or const statement. Check the Google+ community to see the original announcement and get involved in the discussion.

The following code will now produce a warning:

var first = true,
    second = false;

And should ideally be written as:

var first = true;
var second = false;

While this may seem like a striking about-face from the "old" version, JSLint has allowed either form ever since the ES6 rewrite back in May of 2015. With the advent of let and const (and a smarter JSLint), grouping all variables within a single statement is neither necessary nor recommended.

To tolerate combined var, let or const statements, make use of the new multivar option (issue #20) which is now fully supported in JSLint.NET 2.2.0:

image

{
  "version": "2.2.0",
  "options": {
    "multivar": true
  }
}

Issues:

  • #20 Support multivar option.

Downloads: