I tried:
/*jshint esversion: 6 */
but got an error when running grunt:
This is supposed to be the preferred method as esnext
is being deprecated. See here - http://jshint.com/docs/options/#esnext
In order to disable jshint for a workspace specify "jshint. enable" : false in the workspace settings. jshint is enabled by default.
In October 2013 jshint added a way to ignore blocks of code like this: // Code here will be linted with JSHint. /* jshint ignore:start */ // Code here will be ignored by JSHint. /* jshint ignore:end */ // Code here will be linted with JSHint. Show activity on this post. Show activity on this post.
JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module.
You can set the 'esversion' option in your gruntfile.js, like so:
jshint: {
files: ['dist/*.js'],
options: {
'esversion': 6,
}
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With