This is what ESLint will tell you, you got errors but you may have no clue what they mean:
5922:39 error 'x:' is defined but never used no-unused-labels
5922:39 error This line has 2 statements. Maximum allowed is 1 max-statements-per-line
5922:42 error Missing semicolon semi
You may think that this actually doesn't matter much, because it never happen in real code, but this is really important for arrow functions:
this is a function that return
undefined
not object, because it's block with label and no return.Good linters will tell.
This is what ESLint will tell you, you got errors but you may have no clue what they mean:
ohhh... good to know. Thank you!