microsoft / vscode-jshint

VSCode extension to integrate jshint into VSCode
https://marketplace.visualstudio.com/items?itemName=dbaeumer.jshint
MIT License
72 stars 58 forks source link

eversion 8 not accepted? #74

Closed rchrdnsh closed 5 years ago

rchrdnsh commented 5 years ago

like the issue says. Trying to change the JSHint version to 8 and it says that only 3 5 and 6 are accepted?

darrenbrett commented 5 years ago

I'm running into the very same problem. According to the default documentation (https://jshint.com/docs/options/) we should be able to enable versions 8 or 9. But in my settings.json file, I get a green squiggly under 8, and when hovered over it reads:

The ECMAScript version to which the code must adhere Value is not accepted. Valid values: 3, 5, 6.

My full settings.json file looks like this:

{
  "jshint.enable": true,
  "jshint.options": {
    "esversion": 8,
    "moz": true,
    "supernew": true
  },
  "git.ignoreLimitWarning": true,
  "editor.tabSize": 2,
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "prettier.printWidth": 300,
  "javascript.suggestionActions.enabled": false,
  "workbench.colorCustomizations": {
    "tab.unfocusedActiveBorder": "#fff0"
  }
}
stormwild commented 5 years ago

Same here:

Screen Shot 2019-07-27 at 3 55 19 PM

RMacfarlane commented 5 years ago

Thanks for reporting this! This should be fixed in the newest version of the extension, 0.10.21.