Przeglądaj źródła

[eslint] no-new

tags/v0.0.2
Lyubo Marinov 8 lat temu
rodzic
commit
09aad8fc9f
2 zmienionych plików z 6 dodań i 3 usunięć
  1. 1
    0
      .eslintrc.js
  2. 5
    3
      JitsiConference.js

+ 1
- 0
.eslintrc.js Wyświetl plik

101
         'no-multi-spaces': 2,
101
         'no-multi-spaces': 2,
102
         'no-multi-str': 2,
102
         'no-multi-str': 2,
103
         'no-native-reassign': 2,
103
         'no-native-reassign': 2,
104
+        'no-new': 2,
104
         'no-new-func': 2,
105
         'no-new-func': 2,
105
         'no-octal': 2,
106
         'no-octal': 2,
106
         'no-octal-escape': 2,
107
         'no-octal-escape': 2,

+ 5
- 3
JitsiConference.js Wyświetl plik

141
     this.eventManager.setupStatisticsListeners();
141
     this.eventManager.setupStatisticsListeners();
142
 
142
 
143
     if (this.options.config.enableTalkWhileMuted) {
143
     if (this.options.config.enableTalkWhileMuted) {
144
-        new TalkMutedDetection(this, () => {
145
-            this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED);
146
-        });
144
+        // eslint-disable-next-line no-new
145
+        new TalkMutedDetection(
146
+            this,
147
+            () =>
148
+                this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED));
147
     }
149
     }
148
 };
150
 };
149
 
151
 

Ładowanie…
Anuluj
Zapisz