Change Request: If ecmaVersion: latest
pass ecmaVersion: 6
to eslint-scope
#15256
Closed
1 task done
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
Projects
ESLint version
v8.1.0
What problem do you want to solve?
I want to resolve a problem where a user uses a parser other than
espree
and usesecmaVersion: latest
to reject syntax such as import statements as an error.Currently vue-eslint-parser can accept and parse
ecmaVersion: latest
, but users can't actually use with ESLint because of an error in eslint-scope.Related to: vuejs/vue-eslint-parser#135, eslint/eslint-scope#78
What do you think is the correct solution?
I want to change ESLint to pass
ecmaVersion: 6
toeslint-scope
if the user setsecmaVersion: latest
.eslint/lib/linter/linter.js
Line 629 in 3630211
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: