-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make janus.js pass linter #2772
Conversation
I have no idea what linter is, so I'll leave considerations to younger folks like @atoppi 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @davel thanks for the effort.
I've left some notes, my only concern is about the rule set you are using in eslint.
What is the source / rationale of that ? It is way too large to check if any rule is really needed.
Also, move globals to configuration file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few (clueless) comments.
All right, LGTM 👍 |
I'm not knowledgeable enough on the matter to have an opinion, so I'll trust @atoppi's review and notes. I do know that I'll start insulting you all if this translates to a ton of conflicts to resolve on the multistream branch, though 🤣 |
Hello,
I have attempted to get
janus.js
to pass a JavaScript linter. The changes mostly relate to variable scope one way or the other, I hope they are improvements. I have also enabled"use strict";
as the code appears to be safe with regards to that. Testing with our application does not find any problems with these changes.I have also configured GitHub actions to automatically run eslint along with the rest of the CI process.