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
[flat config] ecmaVersion: "latest"
#15366
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
Projects
Comments
mdjermanovic
added
enhancement
This change enhances an existing feature of ESLint
core
Relates to ESLint's core APIs and features
labels
Nov 28, 2021
16 tasks
Good call. Is there any discussion we need to have here before marking as accepted and moving to Ready to Implement? |
Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update. |
@nzakas what do you think about this? |
nzakas
added
the
accepted
There is consensus among the team that this change meets the criteria for inclusion
label
Mar 8, 2022
Good idea. 👍 |
1 task
@mdjermanovic Would you like to submit a PR for this change? |
I'm working on this now. |
mdjermanovic
added a commit
that referenced
this issue
Jan 5, 2024
1 task
nzakas
pushed a commit
that referenced
this issue
Jan 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
ESLint version
flat-config-linter
branchWhat problem do you want to solve?
ref: #15185 (comment)
With this configuration, ESLint will use
espree.latestEcmaVersion
as ecmaVersion:What do you think is the correct solution?
ESLint should maintain its own
latestEcmaVersion
instead of usingespree.latestEcmaVersion
.languageOptions.ecmaVersion
is an ESLint option, and it is used not only for parsing.An in-range version of
espree
can supportecmaVersion
that is not supported by currently used version of ESLint. If we useespree.latestEcmaVersion
, parsing will work well, but other features that are based onecmaVersion
may not. For example, in the mentioned scenario, ESLint will not add any ES globals.Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: