Support for `ecmaVersion: latest`
See original GitHub issueCurrently ESLint resolves ecmaVersion: latest
only when using espree, so"latest"
is passed to eslint-scope when using a different parser.
I want eslint-scope to support ecmaVersion: "latest"
.
(Should I open this issue in the ESLint repo?)
Related to https://github.com/vuejs/vue-eslint-parser/issues/135
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Allow setting ecmaVersion to latest #7528 - eslint/eslint - GitHub
TSC Summary: The proposal is to add ecmaVersion: latest , which would always point to the highest available ECMAScript version ESLint supports.
Read more >Language Options - ESLint - Pluggable JavaScript Linter
Each of these can have different supported syntax and global variables. ESLint lets you configure language options specific to the JavaScript used in...
Read more >"es6" | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >ECMAScript 6 compatibility table
Feature name▻ Current browser 98% ES6 Trans‑ piler 25% Trace...
Optimisation Optimisation Optimisation Optimi...
§proper tail calls (tail call optimisation)▻ 0/2 0/2 0/2
§direct recursionc No...
Read more >eslint Parsing error: ecmaVersion must be 3, 5, 6, or 7
ESLint currently supports versions 3, 5, 6 (es2015), 7(es2016) and 8(es2017). ... The valid versions are 3 to 12 or latest.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was wrong. There are some other differences between ecmaVersion 5 and 6, so we can’t just set it to 6. However, this is a problem we should address in ESLint rather than on eslint-scope. Thanks!
Thank you for your opinion! I will open an issue in ESLint repo later.