question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for `ecmaVersion: latest`

See original GitHub issue

Currently ESLint resolves ecmaVersion: latest only when using espree, so"latest"is passed to eslint-scope when using a different parser.

https://github.com/eslint/eslint/blob/3630211c46f1ed691445231164e29e5cd6c87dff/lib/linter/linter.js#L449-L454

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:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Nov 3, 2021

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!

0reactions
ota-meshicommented, Nov 3, 2021

Thank you for your opinion! I will open an issue in ESLint repo later.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found