Skip to content

Commit

Permalink
eslint: update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Jun 13, 2024
1 parent 5463656 commit b649cff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import js from '@eslint/js';
export default [
{
files: [
'.src/**/*.js',
'.examples/**/*.js'
'src/**/*.js',
'examples/**/*.js'
],
ignores: [
'.examples/browser/*'
'examples/browser/**/*'
],
languageOptions: {
ecmaVersion: 'latest',
Expand Down
1 change: 1 addition & 0 deletions examples/audiobridge/html/audiobridge-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getId() {
}

function getURLParameter(name) {
// eslint-disable-next-line no-sparse-arrays
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ''])[1].replace(/\+/g, '%20')) || null;
}

Expand Down
2 changes: 2 additions & 0 deletions examples/streaming/html/streaming-client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable multiline-comment-style */
/* global io */

'use strict';
Expand All @@ -24,6 +25,7 @@ function getId() {
}

function getURLParameter(name) {
// eslint-disable-next-line no-sparse-arrays
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ''])[1].replace(/\+/g, '%20')) || null;
}

Expand Down
1 change: 1 addition & 0 deletions examples/videoroom/html/videoroom-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function getId() {
}

function getURLParameter(name) {
// eslint-disable-next-line no-sparse-arrays
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ''])[1].replace(/\+/g, '%20')) || null;
}

Expand Down

0 comments on commit b649cff

Please sign in to comment.