Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 0, col 0, Bad option: 'esversion'. #2771

Closed
ganzux opened this issue Nov 19, 2015 · 5 comments
Closed

line 0, col 0, Bad option: 'esversion'. #2771

ganzux opened this issue Nov 19, 2015 · 5 comments

Comments

@ganzux
Copy link

ganzux commented Nov 19, 2015

Hi there!

I am using jshint v2.8.0 with node v0.12.7 and trying to use the following .jshintrc config file:

{
    "globals": {
        "jQuery": true,
        "d3": true
    },
    "browser": true,
    "boss": true,
    "curly": true,
    "eqeqeq": true,
    "eqnull": true,
    "expr": true,
    "immed": true,
    "noarg": true,
    "quotmark": "single",
    "undef": true,
    "unused": true,
    "esversion": 3,
    "devel":false,
    "jquery": true
}

I am trying to validate a .js file but I always get the error line 0, col 0, Bad option: 'esversion'.

If I remove "esversion": 3, it works perfectly, but the option "es3" is deprecated.

Thanks in advance,

@nicolo-ribaudo
Copy link
Contributor

esversion was introduced in v2.9.0

@ganzux
Copy link
Author

ganzux commented Nov 19, 2015

Thanks, @nicolo-ribaudo . Is any way to get the documentation from other release?

@nicolo-ribaudo
Copy link
Contributor

You can browse to the version of which you are looking for documentation (v2.8.0) and read the comments in src/options.js

@ganzux
Copy link
Author

ganzux commented Nov 19, 2015

Thanks a lot, @nicolo-ribaudo.

@jugglinmike
Copy link
Member

@ganzux I know that's kind of a hassle; thanks for being a good sport about it. I have hopes that the website will some day serve your use case: jshint/jshint.github.io#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants