Skip to content

Bug: Parsing error: The keyword 'const' is reserved #16174

Discussion options

You must be logged in to vote

the default ecmaVersion is 5, you'll need to config it >=6, to use the features like let/const.

https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-parser-options

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nzakas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue asks a question about ESLint
2 participants
Converted from issue

This discussion was converted from issue #16172 on August 01, 2022 21:44.