Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSHint error: "E001 - Bad option"

I'm working on some ES6 javascript code, and linter-jshint keeps throwing this error.

Error E001 Bad Option

I tried looking up all JSHint options. At first I added {"esversion": 6} to a .jshintrc file on my user directory. This was when the error started to appear. Then I tried going for the deprecated {"esnext": true}. The error just changed to another one, so I went back.

This option should work, I don't get why it's showing this error. It's a valid option, isn't it?

By the way, I'm using Atom.

like image 376
Fabio Bracht Avatar asked Nov 23 '15 15:11

Fabio Bracht


1 Answers

I had one line with

// jshint ignore:line //and wanted to add some more information in the comment

removing the additional comment fixed the error.

like image 172
Timar Ivo Batis Avatar answered Sep 27 '22 21:09

Timar Ivo Batis