feat(eslint): tame the beast

This commit is contained in:
Saúl Ibarra Corretgé
2018-10-10 18:07:36 +02:00
committed by Saúl Ibarra Corretgé
parent 4424c456a9
commit 2ae2f04f0a
6 changed files with 27 additions and 22 deletions
+2 -1
View File
@@ -112,7 +112,7 @@ function initCommands() {
const { name } = request;
switch (name) {
case 'invite': // eslint-disable-line no-case-declarations
case 'invite': {
const { invitees } = request;
if (!Array.isArray(invitees) || invitees.length === 0) {
@@ -143,6 +143,7 @@ function initCommands() {
});
});
break;
}
case 'is-audio-muted':
callback(APP.conference.isLocalAudioMuted());
break;
+5 -4
View File
@@ -114,10 +114,10 @@ function parseArguments(args) {
switch (typeof firstArg) {
case 'string': // old arguments format
case undefined: // eslint-disable-line no-case-declarations
// not sure which format but we are trying to parse the old
// format because if the new format is used everything will be undefined
// anyway.
case undefined: {
// Not sure which format but we are trying to parse the old
// format because if the new format is used everything will be undefined
// anyway.
const [
roomName,
width,
@@ -141,6 +141,7 @@ function parseArguments(args) {
jwt,
onload
};
}
case 'object': // new arguments format
return args[0];
default: