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
Allow no semicolons in JavaScript #1754
Comments
By the way, you can currently disable semicolon warnings by placing this comment in your code: |
or you can do:
|
Any update of this? |
Doing this didn't work: editor.session.$worker.send("changeOptions", [{asi: true}]); as Instead, this worked for me (in case someone needs it) editor.session.on('changeMode', function(e, session) {
if('ace/mode/javascript' === session.getMode().$id) {
if(!!session.$worker) {
session.$worker.send('changeOptions', [{
asi: true // disable "Missing semicolon." warning in editor for JavaScript
}])
}
}
}) |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is the default behaviour of JS linter we use, as indicated above it's possible to pass custom linting options to change that behaviour |
I really like code without semicolons. Ace is great, but the error reporting for JavaScript complains about my perfectly fine code without semicolons. Would it be possible to disable warnings about semicolons. All I'm interested in are real syntax errors, without style errors.
Sample code (JavaScript):
The text was updated successfully, but these errors were encountered: