javascript - Where can I set the ES6 option for jshint? -
i tried:
/*jshint esversion: 6 */
but got error when running grunt:
this supposed preferred method esnext
being deprecated. see here - http://jshint.com/docs/options/#esnext
you can set 'esversion' option in gruntfile.js, so:
jshint: { files: ['dist/*.js'], options: { 'esversion': 6, } },
Comments
Post a Comment