wookiehangover / jshint.vim

JSHint fork of jslint.vim
Other
194 stars 45 forks source link

.jshintrc file not respecting "esversion" 6 setting #61

Closed lando2319 closed 4 years ago

lando2319 commented 4 years ago

Hello,

Just discovered this package, looks to be what I am looking for, however I user the => command a lot and want to avoid getting the esversion warning.

According to the doc I should be able to simply add a file ~/.jshintrc. I added the file like so:

{
    "esversion": 6
}

However I am still getting the warning and when opening a file I get the following warning.

Error detected while processing function <SNR>54_JSHint:
line   84:
E927: Invalid action: ''
lando2319 commented 4 years ago

So I got this working, here are the steps.

First the warning when opening vim looks to be related to this. As for getting esversion to work, I ended up with this which was not on the list of options on the Docs.

{
    "esnext": true
}