This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Parsing error: The keyword 'const' is reserved #592
Comments
|
I'm closing this as I finally found that the default is still EcmaScript 5. After adding a .eslintrc file to my project and setting to ecmaVersion 6 - all's good. |
|
For those who came here figuring it out how to do this, in .eslintrc file add below |
|
Thanks @nikulkarni this worked for me! |
|
@nikulkarni @ethans Should not it be like this?
ES2015 === ES6 |
|
@mapeso Either way works, as specified in the documentation. Locking this as the original question has been resolved and several ways of configuring this have been posted 😉. |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using the latest build of atom for Windows and the latest linter-eslint (7.2.2) with my NodeJS project.
I am getting a parsing error every time I use the keyword const.
Example:
const a = 5;I get:
How come? What am I doing wrong?
Thanks,
Ethan
The text was updated successfully, but these errors were encountered: