JSLint does not currently have any support for any of the specced or proposed ES6 features. JSHint does have a basic level of support for some ES6 features, and is gaining more support fairly regularly:
- Destructuring
- Rest parameters/spread operator
- Generator functions
- Block scoping (including constants and
let
) - Classes
- The
for-of
loop - Modules
Note that you will have to activate this behaviour in JSHint, by setting the esnext
option to true
.