feat(eslint): tame the beast
This commit is contained in:
parent
4424c456a9
commit
2ae2f04f0a
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -87,6 +87,7 @@ class Etherpad extends LargeContainer {
|
|||
this.container.appendChild(iframe);
|
||||
|
||||
iframe.onload = function() {
|
||||
// eslint-disable-next-line no-self-assign
|
||||
document.domain = document.domain;
|
||||
bubbleIframeMouseMove(iframe);
|
||||
|
||||
|
|
|
@ -4,5 +4,8 @@ module.exports = {
|
|||
'eslint-config-jitsi/jsdoc',
|
||||
'eslint-config-jitsi/react',
|
||||
'.eslintrc-react-native.js'
|
||||
]
|
||||
],
|
||||
'rules': {
|
||||
'react/no-deprecated': 0
|
||||
}
|
||||
};
|
||||
|
|
|
@ -219,7 +219,7 @@ class SessionManager {
|
|||
|
||||
for (let i = 0; i < sessionTokens.length; ++i) {
|
||||
const thisSession = this._sessionsMetadata[sessionTokens[i]];
|
||||
const newSessionInfo : SessionInfo = {
|
||||
const newSessionInfo: SessionInfo = {
|
||||
start: thisSession.events[0].timestamp,
|
||||
format: thisSession.format,
|
||||
sessionToken: sessionTokens[i],
|
||||
|
@ -348,8 +348,7 @@ class SessionManager {
|
|||
|
||||
const output = [];
|
||||
let sessionStartTime = null;
|
||||
let currentSegment : SegmentInfo = {
|
||||
};
|
||||
let currentSegment: SegmentInfo = {};
|
||||
|
||||
/**
|
||||
* Helper function for adding a new {@code SegmentInfo} object to the
|
||||
|
|
|
@ -172,32 +172,32 @@ const PATTERNS = [
|
|||
'_ADJECTIVE__PLURALNOUN__VERB__ADVERB_'
|
||||
|
||||
// BeautifulFungiOrSpaghetti
|
||||
// '_ADJECTIVE__PLURALNOUN__CONJUNCTION__PLURALNOUN_',
|
||||
// '_ADJECTIVE__PLURALNOUN__CONJUNCTION__PLURALNOUN_',
|
||||
|
||||
// AmazinglyScaryToy
|
||||
// '_ADVERB__ADJECTIVE__NOUN_',
|
||||
// '_ADVERB__ADJECTIVE__NOUN_',
|
||||
|
||||
// NeitherTrashNorRifle
|
||||
// 'Neither_NOUN_Nor_NOUN_',
|
||||
// 'Either_NOUN_Or_NOUN_',
|
||||
// 'Neither_NOUN_Nor_NOUN_',
|
||||
// 'Either_NOUN_Or_NOUN_',
|
||||
|
||||
// EitherCopulateOrInvestigate
|
||||
// 'Either_VERB_Or_VERB_',
|
||||
// 'Neither_VERB_Nor_VERB_',
|
||||
// 'Either_VERB_Or_VERB_',
|
||||
// 'Neither_VERB_Nor_VERB_',
|
||||
|
||||
// 'The_ADJECTIVE__ADJECTIVE__NOUN_',
|
||||
// 'The_ADVERB__ADJECTIVE__NOUN_',
|
||||
// 'The_ADVERB__ADJECTIVE__NOUN_s',
|
||||
// 'The_ADVERB__ADJECTIVE__PLURALNOUN__VERB_',
|
||||
// 'The_ADJECTIVE__ADJECTIVE__NOUN_',
|
||||
// 'The_ADVERB__ADJECTIVE__NOUN_',
|
||||
// 'The_ADVERB__ADJECTIVE__NOUN_s',
|
||||
// 'The_ADVERB__ADJECTIVE__PLURALNOUN__VERB_',
|
||||
|
||||
// WolvesComputeBadly
|
||||
// '_PLURALNOUN__VERB__ADVERB_',
|
||||
// '_PLURALNOUN__VERB__ADVERB_',
|
||||
|
||||
// UniteFacilitateAndMerge
|
||||
// '_VERB__VERB_And_VERB_',
|
||||
// '_VERB__VERB_And_VERB_',
|
||||
|
||||
// NastyWitchesAtThePub
|
||||
// '_ADJECTIVE__PLURALNOUN_AtThe_PLACE_',
|
||||
// '_ADJECTIVE__PLURALNOUN_AtThe_PLACE_',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue