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
+4 -1
View File
@@ -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
+13 -13
View File
@@ -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_',
];
/**