Browse Source

[eslint] no-unused-expressions

release-8443
Lyubo Marinov 8 years ago
parent
commit
eacd244218
4 changed files with 7 additions and 5 deletions
  1. 7
    0
      .eslintrc.js
  2. 0
    1
      JitsiConference.js
  3. 0
    3
      modules/settings/Settings.js
  4. 0
    1
      modules/xmpp/moderator.js

+ 7
- 0
.eslintrc.js View File

112
         'no-self-compare': 2,
112
         'no-self-compare': 2,
113
         'no-sequences': 2,
113
         'no-sequences': 2,
114
         'no-unmodified-loop-condition': 2,
114
         'no-unmodified-loop-condition': 2,
115
+        'no-unused-expressions': [
116
+            'error',
117
+            {
118
+                'allowShortCircuit': true,
119
+                'allowTernary': true
120
+            }
121
+        ],
115
         'no-unused-labels': 2,
122
         'no-unused-labels': 2,
116
         'no-useless-call': 2,
123
         'no-useless-call': 2,
117
         'no-void': 2,
124
         'no-void': 2,

+ 0
- 1
JitsiConference.js View File

59
     this.dtmfManager = null;
59
     this.dtmfManager = null;
60
     this.somebodySupportsDTMF = false;
60
     this.somebodySupportsDTMF = false;
61
     this.authEnabled = false;
61
     this.authEnabled = false;
62
-    this.authIdentity;
63
     this.startAudioMuted = false;
62
     this.startAudioMuted = false;
64
     this.startVideoMuted = false;
63
     this.startVideoMuted = false;
65
     this.startMutedPolicy = {audio: false, video: false};
64
     this.startMutedPolicy = {audio: false, video: false};

+ 0
- 3
modules/settings/Settings.js View File

50
 
50
 
51
 class Settings {
51
 class Settings {
52
     constructor() {
52
     constructor() {
53
-        this.userId;
54
-        this.callStatsUserName;
55
-
56
         const localStorage = getLocalStorage();
53
         const localStorage = getLocalStorage();
57
 
54
 
58
         if (localStorage) {
55
         if (localStorage) {

+ 0
- 1
modules/xmpp/moderator.js View File

46
     this.eventEmitter = emitter;
46
     this.eventEmitter = emitter;
47
 
47
 
48
     this.connection = this.xmppService.connection;
48
     this.connection = this.xmppService.connection;
49
-    this.focusUserJid;
50
     // FIXME:
49
     // FIXME:
51
     // Message listener that talks to POPUP window
50
     // Message listener that talks to POPUP window
52
     function listener(event) {
51
     function listener(event) {

Loading…
Cancel
Save