-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
const inside switch case statement is a syntax error #1805
Comments
This is a parser error, would you mind filing this at https://github.com/eslint/Espree/issues |
@nzakas I am still getting this error, here's some minimal repro code module.exports = function(a){
a.somethin = function(){
let c = ""
}
} |
@steelbrain What? Your code doesn't include const or switch. |
@michaelficarra it does include a |
The original error was
Is that the error you see? The error was also triggered by interaction with switch. Do you have a switch? |
The error I see is |
@C0deMaver1ck Can you share your .eslintrc file please? |
The previous screenshot was without one. When I used this:
I got
|
What version are you using? If you're on |
@C0deMaver1ck You are using arrow functions, so need
|
Maybe a bug with ES 6 block bindings?
The text was updated successfully, but these errors were encountered: