Does the code not actually execute for you then? I just tried it on a recent Espruino build and it seems to work fine.
Or is the issue that the Web IDE puts the red mark next to the line? Because even though it is saying that, it should upload and work just fine.
I'd rather not totally remove the check because it probably helps detect a bunch of actual coding errors, but I guess there should really be a way to disable linting because a few people have complained about the linter objecting to other valid (but not normal) JS code.
+1 for an option to disable linting or having a dialog like "Linter detected code issues, but if you're sure the code is correct, upload anyway?". I was in the same situation as jtrick just recently.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks!
Does the code not actually execute for you then? I just tried it on a recent Espruino build and it seems to work fine.
Or is the issue that the Web IDE puts the red mark next to the line? Because even though it is saying that, it should upload and work just fine.
I'd rather not totally remove the check because it probably helps detect a bunch of actual coding errors, but I guess there should really be a way to disable linting because a few people have complained about the linter objecting to other valid (but not normal) JS code.