javascript - Where can I set the ES6 option for jshint? -


i tried:

/*jshint esversion: 6 */ 

but got error when running grunt:

enter image description here

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -