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

Make janus.js pass linter #2772

Merged
merged 13 commits into from
Sep 27, 2021
Merged

Make janus.js pass linter #2772

merged 13 commits into from
Sep 27, 2021

Conversation

davel
Copy link
Contributor

@davel davel commented Sep 20, 2021

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.

@lminiero
Copy link
Member

I have no idea what linter is, so I'll leave considerations to younger folks like @atoppi 🙂

Copy link
Member

@atoppi atoppi left a 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.

.eslintrc.js Outdated Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
package.json Show resolved Hide resolved
html/janus.js Outdated Show resolved Hide resolved
html/janus.js Outdated Show resolved Hide resolved
html/janus.js Show resolved Hide resolved
@atoppi atoppi requested a review from lminiero September 22, 2021 11:24
Copy link
Member

@lminiero lminiero left a 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.

.github/workflows/janus-ci.yml Show resolved Hide resolved
html/janus.js Show resolved Hide resolved
html/janus.js Show resolved Hide resolved
html/janus.js Outdated Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
@atoppi
Copy link
Member

atoppi commented Sep 27, 2021

All right, LGTM 👍

@atoppi atoppi requested a review from lminiero September 27, 2021 09:56
@lminiero
Copy link
Member

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 🤣

@atoppi
Copy link
Member

atoppi commented Sep 27, 2021

merging...
image

@atoppi atoppi merged commit e93e03e into meetecho:master Sep 27, 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

Successfully merging this pull request may close these issues.

4 participants