jshint/jshint — pull request #319 by goatslacker (2011-10-26 22:53:49+00:00)
Title: Adds const support to JSHINT

Adds const statement provided the `esnext` option is set to true. Then checks to make sure constants aren't reassigned or used in function declaration.

Also added a bonus warning, if a const is initialized like this: `const foo;` foo is practically useless, so JSHINT throws a warning.

The current implementation of `const` in Chrome's V8, Firefox7 and Node.JS has function scope instead of block scope so jshint checks for function scope.

The fixture goes into detail on what to expect when using `const` https://github.com/goatslacker/jshint/blob/const/tests/fixtures/const.js

More information on `const` in ES.Next found here: http://wiki.ecmascript.org/doku.php?id=harmony:const