Open core-ai-bot opened 3 years ago
Comment by PortPixel Sunday Dec 08, 2019 at 14:11 GMT
Add /*eslint-env es6*/
to the top of the file(s)
Comment by pixel3rr0r Wednesday Jan 01, 2020 at 19:04 GMT
Thanks, that worked! And sorry for the late reply!
Comment by pixel3rr0r Thursday Jan 02, 2020 at 19:13 GMT
It worked for a while, but then I started getting errors like these:
Is it because of Node not starting?
Comment by PortPixel Thursday Jan 02, 2020 at 19:49 GMT
No, it's because its not defined anywhere jslint can see, add /*global require*/
to the top of the file(s) to tell jslint it's defined elsewhere.
Comment by anna-rosew Monday Nov 30, 2020 at 10:25 GMT
Hi,
I've had exactly the same issue but it doesn't work to insert /*global require*/
to the top of the file having added /eslint-env es6/S
, I didn't know if there was an issues with my placement? I'm attempting to create a basic voice recognition app and I;m new to .js so could use some help.
Issue by pixel3rr0r Monday Nov 11, 2019 at 18:07 GMT Originally opened as https://github.com/adobe/brackets/issues/14960
Prerequisites
Debug -> Reload Without Extensions
?Description
I've started a new project only containing three files, HTML, CSS and JS. HTML works fine, CSS works fine, but I just can't get the JavaScript to work. I've only written
I then get three JSLint Errors and one ESLint Errors:
Apparently Brackets does not support ES6. Since I have never worked with JSLint, I have absolutely no idea what to do.
Is there a global fix that works for new projects as well?
Steps to Reproduce
Expected behavior: Accept ES6 code
Actual behavior: Outputing warnings and an error.
Versions
I'm running Brackets Release 1.14 build 1.14.0-17740 (release 329d08ffc) on Windows 10