How can I configure jshint to recognize special class method syntax?

168 Views Asked by At

I'm not sure the exact name of this syntax but this is what I use as needed:

  handleChange = (event) => {

JSHint is giving me an error as it does not recognize it:

I'm not sure but I think I can set the ES version as follows:

{
  "esversion": (put version number here)
}

Will this work and how high can I set it?

Is there another way to do it.

The marked duplicated is over 3 years old and hopefully the jshint team has addressed / worked on this over the last 4+ years (similar issue reported on github).

0

There are 0 best solutions below