Ver código fonte

[eslint] max-statements-per-line

dev1
Lyubo Marinov 8 anos atrás
pai
commit
2b4caa585d
2 arquivos alterados com 3 adições e 1 exclusões
  1. 1
    0
      .eslintrc.js
  2. 2
    1
      doc/example/example.js

+ 1
- 0
.eslintrc.js Ver arquivo

@@ -146,6 +146,7 @@ module.exports = {
146 146
         'max-lines': 0,
147 147
         'max-nested-callbacks': 2,
148 148
         'max-statements': 0,
149
+        'max-statements-per-line': 2,
149 150
         'multiline-ternary': 0,
150 151
         'new-cap': 2,
151 152
         'new-parens': 2,

+ 2
- 1
doc/example/example.js Ver arquivo

@@ -126,7 +126,8 @@ function onConnectionSuccess() {
126 126
     });
127 127
     room.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED, onConferenceJoined);
128 128
     room.on(JitsiMeetJS.events.conference.USER_JOINED, id => {
129
-        console.log('user join'); remoteTracks[id] = [];
129
+        console.log('user join');
130
+        remoteTracks[id] = [];
130 131
     });
131 132
     room.on(JitsiMeetJS.events.conference.USER_LEFT, onUserLeft);
132 133
     room.on(JitsiMeetJS.events.conference.TRACK_MUTE_CHANGED, track => {

Carregando…
Cancelar
Salvar