Skip to content
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

Javascript Lint Show Error When Using Async and/or Await #6857

Closed
ProdigyView opened this issue Dec 30, 2021 · 1 comment
Closed

Javascript Lint Show Error When Using Async and/or Await #6857

ProdigyView opened this issue Dec 30, 2021 · 1 comment

Comments

@ProdigyView
Copy link

ProdigyView commented Dec 30, 2021

I am using await and async in my Javascript code, and I am getting this "error" (its not, but its being reported as such.

https://drive.google.com/file/d/1PUCal959jFAMA3UgQlTcx7TKhfhHrBw2/view?usp=sharing

async_error

And my Javascript is such:

javacriptCodeEditor = window.CodeMirror.fromTextArea(document.getElementById('widget-javascript-container'), {
                        lineNumbers: true,
                        extraKeys: {
                            "Ctrl-Space": "autocomplete"
                        },
                        mode: {
                            name: "javascript",
                            globalVars: true
                        },
                        matchBrackets: true,
                        gutters: ["CodeMirror-lint-markers"],
                        autoCloseBrackets: true,
                        lint: {
                            esversion: 6
                        }
                    });

Is this a bug or am I doing something wrong?

@marijnh
Copy link
Member

marijnh commented Dec 30, 2021

Use a newer version of jshint, I guess? I've upgraded the demo in attached patch.

@marijnh marijnh closed this as completed Dec 30, 2021
marijnh added a commit that referenced this issue Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants