reid / node-jslint

The JavaScript Code Quality Tool — for Node.js.
http://jslint.com/
Other
491 stars 101 forks source link

Add es6 option #131

Closed emnh closed 9 years ago

emnh commented 9 years ago

Looks like es6 is supported in jslint library, but somehow it's not possible to pass it as an option.

Adding this at the top of the file:

/jslint browser: true, indent: 2, es6: true /

Gives:

index.js

1 Unexpected 'es6'.

/*jslint browser: true, indent: 2, es6: true */ // Line 1, Pos 36
smikes commented 9 years ago

Are you using --edition=es6 on the command line?

emnh commented 9 years ago

Nope. Thanks! Works now.