Skip to content

Releases: jshint/jshint

JSHint 2.9.2

19 Apr 23:19
Compare
Choose a tag to compare

2.9.2 (2016-04-19)

This release contains a number of bug fixes. As always, we thank everyone who
reported issues and submitted patches; those contributions are essential to the
continuing improvement of the project. We hope you'll keep it up!

Bug Fixes

  • (cli - extract) lines can end with "\r\n", not "\n\r" (93818f3), closes #2825
  • Account for implied closures (c3b4d63)
  • Add CompositionEvent to browser globals (56515cf)
  • Allow destructuring in setter parameter (97d0ac1)
  • Allow parentheses around object destructuring assignment. (7a0bd70), closes #2775
  • Allow regex inside template literal (5dd9c90), closes #2791
  • Allow regexp literal after 'instanceof' (caa30e6), closes #2773
  • Correct CLI's indentation offset logic (47daf76), closes #2778
  • Do not crash on invalid input (2e0026f)
  • Do not fail on valid configurations (2fb3c24)
  • Don't throw E056 for vars used in two functions (fd91d4a), closes #2838
  • Emit correct token value from "module" API (4a43fb9)
  • Expand forms accepted in dstr. assignment (8bbd537)
  • Improve binding power for tagged templates (9cf2ff0)
  • Improve reporting of "Bad assignment." (08df19e)
  • Make the 'freeze' option less strict (b76447c), closes #1600
  • Report "Bad assignment." in destructuring (fe559ed)
  • Report character position for camelcase errors (480252a), closes #2845
  • Reserve await keyword in ES6 module code (b1c8d5b)

JSHint 2.9.1

14 Jan 20:03
Compare
Choose a tag to compare

2.9.1 (2016-01-14)

Following the revocation of version 2.9.0, we observed an extended "release
candidate" phase where we encouraged users to vet JSHint for undesirable
changes in behavior. During that time, we identified and resolved a number of
such regressions. This release comprises all changes from the release candidate
phase along with the improvements initially released as version 2.9.0. This
release does not itself contain any changes to the codebase. If you are
upgrading from version 2.8.0 or earlier, please refer to the
previously-published release notes for details on bug fixes and features--these
can be found in the project's CHANGELOG.md file and on the project's website.

JSHint 2.9.1-rc3

13 Jan 00:30
Compare
Choose a tag to compare
JSHint 2.9.1-rc3 Pre-release
Pre-release

2.9.1-rc3 (2016-01-12)

Bug Fixes

  • Do not require global USD for any envs (3fa9ece)

JSHint 2.9.1-rc2

22 Dec 15:41
Compare
Choose a tag to compare
JSHint 2.9.1-rc2 Pre-release
Pre-release

2.9.1-rc2 (2015-12-22)

Bug Fixes

  • Abort in the presence of invalid config (767c47d)
  • Allow ignoring W020 and W021 (46db923), closes #2761
  • Correct unused for function-scoped vars (91fa9fc)
  • Disallow ambiguous configuration values (eb54a4c)
  • Do not disable ES6 when moz is set (97dfd90)
  • Don't throw '(NaN% scanned)' (903b698)

JSHint 2.9.1-rc1

12 Nov 20:45
Compare
Choose a tag to compare
JSHint 2.9.1-rc1 Pre-release
Pre-release

2.9.1-rc1 (2015-11-12)

Version 2.9.0 was revoked shortly after its release due to a number of
regressions. Although the underlying issues have been resolved, we are
sensitive to the possibility that there may be still more; as mentioned in
2.9.0's release notes, the variable tracking system saw a significant
refactoring.

In an effort to minimize friction with a new version, we're publishing a
release candidate and requesting feedback from early adopters. Please give it a
try in your projects and let us know about any surprising behavior!

Bug Fixes

  • latedef shouldn't warn when marking a var as exported (c630994), closes #2662
  • Add File and FileList to browser global variables (7f2a729), closes #2690
  • Allow comments and new lines after /* falls through */ (3b1c925), closes #2652 #1660
  • Allow let and const to be in a block outside of a block (84a9145), closes #2685
  • Always warn about missing "use strict" directive (e85c2a1), closes #2668
  • Disallow incompatible option values (72ba5ad)
  • Do not enable newcap within strict mode (acaf3f7)
  • Don't throw W080 when the initializer starts with undefined (0d87919), closes #2699
  • Don't warn that an exported function is used before it is defined. (d0433d2), closes #2658
  • Enforce Identifier restrictions lazily (ceca549)
  • Global "use strict" regressions (04b43d2), closes #2657 #2661
  • Support property assignment when destructure assigning (b6df1f2), closes #2659 #2660
  • Throw W119 instead of "Unexpected '`'" when using templates in ES5 mode. (87064e8)

Features

  • Support QUnit's global notOk (73ac9b8)

JSHint 2.8.0

31 May 17:50
Compare
Choose a tag to compare
Commit Message/Description
6afcde4 [[FIX]] Prevent regression in enforceall
e47168f Update license in package.json
2444a04 [[FIX]] Reset generator flag for each method definition
ab12dfb [[FIX]] Don't throw "Duplicate class method" with computed method names
2ea9cb0 [[FIX]] Ignore unused arrow-function parameters if unused: vars
a093f78 [[FIX]] Allow lexer to communicate completion
290280c [[FEAT]] Implement module option
678da76 [[FIX]] Move helper methods to state object
51059bd [[FIX]] Distinguish between directive and mode
c0edd9f [[FEAT]] support destructuring in ForIn/Of loops, lint bad ForIn/Of LHS
1bb80f9 [[Fix]] Make const have block scope
2f5e5e6 src/options.js - toggle strict and globalstrict
b3b41c8 [[FIX]] add the "fetch" global for "browser" environment
4a4f522 [[FIX]] Relax singleGroups restrictions: arrow fns
9f55160 [[FIX]] Relax singleGroups restrictions: IIFEs
58c8e64 [[FIX]] Parse semicolons in class bodies
2b673d9 [[FIX]] parse const declarations in ForIn/Of loops
9270b66 [[Fix]] Update Lodash
dd768c2 [[DOCS]] output markdown from changelog script

JSHint 2.7.0

10 Apr 20:45
Compare
Choose a tag to compare
Commit Message/Description
9feab2c v2.7.0
928f19d Add more tests for extends config option
2fc1e23 Replace underscore with lodash
29b5a7e Extends overrides section of base config
63d9a46 [[CHORE]] Nit picking the quotes
757fb73 [[FIX]] emit I003 more carefully and less annoyingly
4973ab7 Added xdescribe to list of jasmine vars
2ad235c [[FIX]] Accept get and set as ID properties
3be589a Add missing options for unused
64f85f3 [[FIX]] Prevent incorrect warnings for relations
896bf82 [[FIX]] Relax restrictions on singleGroups
0eeba14 [[FIX]] default to empty string in src/cli.js loadIgnores
b804e65 [[FIX]] Incorrect 'Unclosed string' when the closing quote is the first character after a newline
3e79b4e [[DOC]] Added more consistency among options file and config example
12811e7 [[TEST]] also test uninitialized var/let/const exports
3ce1267 [[FIX]] export all names for var/let/const declarations
231557a [[FIX]] predefine HTMLTemplateElement in browser
f52da98 fixup! Document legacy values for typeof
81f1690 fixup! Remove duplicate value
46f9ba4 [[Fix]] Only accept "symbol" as a type in ES6 envs
7f7aac2 [[FIX]] allow typeof symbol === "symbol"
92e1a60 Lint more stuff.
448a6f2 Fix issue #1825: use of ! with instanceof should require parentheses
27e957c Update README
59396f7 [[FEAT]] add varstmt enforcement option to disallow use of VariableStatements
011364e [[FIX]] Correctly enforce maxparams:0
a8cfae6 [[DOCS]] add [[CHORE]] commit tag for dev-ops/CI/dependencies commits
6f83a1a [[CHORE]] update dependencies
96a97d0 [[TEST]] improve test coverage for lone/extra rest operators
dd08f85 [[FIX]] disallow 'lone' rest operator in identifier()
3477933 [[FIX]] allow trailing comma in ArrayBindingPattern
162dee6 [[FIX]] templates are operands, not operators
cfd2e0b [[FIX]] Make let variables in the closure shadow predefs

JSHint 2.6.3

28 Feb 17:18
Compare
Choose a tag to compare
7a2b713[[FIX]] parse trailing comma in ObjectBindingPattern
c515e83[[FIX]] Allow `this` in class expression methods

JSHint 2.6.2

28 Feb 00:22
Compare
Choose a tag to compare
3cbd41f[[FIX]] Disable `futurehostile` option by default

JSHint 2.6.1

27 Feb 17:25
Compare
Choose a tag to compare
633d1a0[[Fix]] JSCS issue
813d97a[[FIX]] Prevent beginning array from being confused for JSON
ff7228e[[Fix]] export default * are defined in lexical module scope. Fixes gh-2197
4816dbd[[FEAT]] parse and lint tagged template literals
cc8ccd7[[TEST]] fix typo in test case
278ad75Add node.js 0.12 in CI.
832f168[[DOCS]] Update link to CLA
35df49f[[FIX]] Do not crash on improper use of `delete`
b9b3a43splits eval as key tests into browser and node test runs.
0ec9e03Use double quotes in test code
b5f5d5d[[FIX]] Permit "eval" as object key
ac98a24[[FIX]] Simulate class scope for class expr names
7db4e33[[TEST]] Test linting JSON
da52aa0[[FEAT]] Implement new option `futurehostile`
d75ef69[[FIX]] Disambiguate argument
06b5d40[[FIX]] Refactor `doFunction`
a10daa1fix unit tests for adding error message. eliminate space
ca7c639fix unit tests for adding error message. eliminate space
b477896Fixing automatic tests
eb46f40informative error when jshintrc is invalid
f0bff58[[FIX]] Remove tautological condition
4e59553[[TEST]] Improve lexer test coverage
5b33e0f[[TEST]] Add test for bad option value
3b934d4[[TEST]] Test all inline "latedef" options
3f1006d[[TEST]] Add bad option test for unused
0169b9c[[TEST]] Test inline rules for shadow
2554c0b[[TEST]] Test escaped regex char ranges
71f8e0f[[TEST]] Add tests for bad unicode
83da4fd[[TEST]] Test all bitwise operators
e69acfe[[FIX]] remove unused var
7e80490[[FIX]] Remove quotmark linting for NoSubstTemplates
065961a[[FIX]] Unfollowable path in lexer.
5c9c7fd[[FIX]] Handle multi-line tokens after return or yield
20ff670[[FIX]] Templates can not be directives
4f08b74[[FIX]] Allow object-literals within template strings
3da1eaf[[FIX]] Parse nested templates
da57341[[TEST]] Upgrade JSCS and use it for indentation checking.
438d928[[FIX]] ES6 modules respect undef and unused
776ed69[[FIX]] Support more cases of ES6 module usage
33612f8[[FIX]] Fix false positives in 'nocomma' option
6003c83[[FIX]] Correct behavior of `singleGroups`
8fe6610[[FIX]] Miss xdescribe/xit/context/xcontext in mocha
e0f839b[[DOCS]] Add details relating to CLA
bc857f3[[FIX]] Correct token reported by `singleGroups`
2dc713a[[DOCS]] Switch to shields.io for the badges.
efdd4e1Test node 0.11 on appveyor/windows
4e89216[[DOCS]] Document deprecated options
437655a[[FIX]] Allow array, grouping and string form to follow spread operator in function call args.
42a6153Allow W117 and undef to be toggled per line.