Skip to content

Commit

Permalink
Javascript tweaks (#3211)
Browse files Browse the repository at this point in the history
* Run eslint on html files as well

* Use Maps in janus.js

* Fix always false conditional

* Use Maps for Janus.sessions in janus.js
  • Loading branch information
i8-pi committed May 8, 2023
1 parent 64a7d87 commit 29299da
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 67 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
@@ -1,4 +1,4 @@
// eslint-disable-next-line no-undef
/* global module */
module.exports = {
"env": {
"browser": true,
Expand All @@ -8,6 +8,9 @@ module.exports = {
"parserOptions": {
"ecmaVersion": 2017
},
"plugins": [
"html"
],
"extends": "eslint:recommended",
"rules": {
"no-console": "off",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/janus-ci.yml
Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Install modules
run: npm install
- name: Run ESLint
run: node_modules/.bin/eslint html
run: npm run lint
javascript-rollup:
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit 29299da

Please sign in to comment.