Releases: benquarmby/jslintnet
v2.3.0
As of edition 2016-06-09, JSLint warns against the use of single quotes to enclose string literals. Check the Google+ community to follow the discussion.
The following code will now produce a warning:
var value = 'a string literal';
And should ideally be written as:
var value = "a string literal";
To tolerate single quote strings, make use of the new single
option (issue #27) which is supported in JSLint.NET 2.3.0:
{
"version": "2.3.0",
"options": {
"single": true
}
}
Issues:
- #27 Support "single" option.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.2.2
Updated JSLint to edition 2016-04-08.
- Handles Date.UTC edge case. See #26.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.2.1
Updated JSLint to edition 2016-03-08.
- Restores toleration of leading semicolon.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.2.0
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:
{
"version": "2.2.0",
"options": {
"multivar": true
}
}
Issues:
- #20 Support multivar option.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.1.0
Version 2.1.0 adds first class support for the property directive that JSLint can generate. In particular, JSLint.NET for Visual Studio has a new "Generate Property Directive" context menu item within the code editor.
As the name implies, this will inject (or replace) a directive based on all the property names in the current JavaScript file.
/*property
getElementsByTagName, getTime, hasOwnProperty, id, indexOf, inited,
removeChild, replace, require, requireModules, requireType, shift, shim,
unnormalized, uri, url, usingExports, waitSeconds
*/
This should be particularly helpful with Angular app development, since it relies on property names with dangling special characters (see #12 and #16). Property names within this directive are considered deliberate and exempt from quality checks.
Issues:
- #14 Generate property directive.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.0.4
Updated JSLint to edition 2015-12-26.
- Allows "arguments" when not using ES6.
- Includes "directives" in output.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.0.3
Updated JSLint to edition 2015-10-02.
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.0.2
Wraps the latest ES6 version of JSLint (edition 2015-08-22). See the upgrade announcement for more.
Issues:
- #11 Error when launching Visual Studio
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.0.1
Wraps the latest ES6 version of JSLint (edition 2015-08-22). See the upgrade announcement for more.
Issues:
- #3 ES6 Support
Downloads:
- JSLint.NET for MSBuild from NuGet
- JSLint.NET for Visual Studio from Visual Studio Gallery
v2.0.0-beta7
Wraps the latest ES6 version of JSLint (edition 2015-07-10). See the upgrade announcement and beta page for more information.
Issues:
- #9 Fixed global variables
Downloads:
- JSLint.NET for MSBuild from NuGet