Browse Source

chore(lint) tame the new linter

tags/v0.0.2
Saúl Ibarra Corretgé 3 years ago
parent
commit
526bd5a94c
39 changed files with 12 additions and 63 deletions
  1. 1
    1
      JitsiConference.js
  2. 0
    2
      JitsiConferenceEventManager.js
  3. 0
    2
      JitsiMeetJS.js
  4. 1
    1
      JitsiTrackError.js
  5. 0
    2
      modules/RTC/JitsiLocalTrack.js
  6. 0
    1
      modules/RTC/JitsiTrack.js
  7. 0
    2
      modules/RTC/RTC.js
  8. 0
    8
      modules/RTC/RTCUtils.js
  9. 1
    1
      modules/RTC/TPCUtils.js
  10. 0
    2
      modules/RTC/TraceablePeerConnection.js
  11. 0
    1
      modules/connectivity/IceFailedHandling.js
  12. 0
    2
      modules/connectivity/IceFailedHandling.spec.js
  13. 0
    1
      modules/connectivity/ParticipantConnectionStatus.js
  14. 1
    1
      modules/e2ee/E2EEContext.js
  15. 0
    2
      modules/e2ee/KeyHandler.js
  16. 0
    2
      modules/e2ee/ManagedKeyHandler.js
  17. 1
    1
      modules/e2ee/OlmAdapter.js
  18. 0
    1
      modules/e2eping/e2eping.js
  19. 0
    2
      modules/event/Jvb121EventGenerator.js
  20. 0
    2
      modules/sdp/LocalSdpMunger.js
  21. 0
    2
      modules/sdp/RtxModifier.js
  22. 0
    2
      modules/sdp/SdpConsistency.js
  23. 0
    1
      modules/statistics/AvgRTPStatsReporter.js
  24. 0
    2
      modules/transcription/audioRecorder.js
  25. 0
    2
      modules/util/AsyncQueue.js
  26. 0
    4
      modules/webaudio/AudioMixer.js
  27. 1
    1
      modules/xmpp/ChatRoom.js
  28. 2
    1
      modules/xmpp/JingleHelperFunctions.js
  29. 0
    1
      modules/xmpp/JingleSession.js
  30. 1
    1
      modules/xmpp/JingleSessionPC.js
  31. 0
    2
      modules/xmpp/SignalingLayerImpl.js
  32. 1
    1
      modules/xmpp/moderator.js
  33. 1
    1
      modules/xmpp/strophe.jingle.js
  34. 0
    1
      modules/xmpp/strophe.util.js
  35. 1
    0
      package.json
  36. 0
    1
      service/RTC/BridgeVideoType.js
  37. 0
    1
      service/RTC/CodecMimeType.js
  38. 0
    1
      service/RTC/MediaDirection.js
  39. 0
    1
      service/RTC/VideoType.js

+ 1
- 1
JitsiConference.js View File

@@ -1,4 +1,4 @@
1
-/* global __filename, $, Promise */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import EventEmitter from 'events';

+ 0
- 2
JitsiConferenceEventManager.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 import { Strophe } from 'strophe.js';
5 3
 

+ 0
- 2
JitsiMeetJS.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import Logger from '@jitsi/logger';
4 2
 
5 3
 import * as JitsiConferenceErrors from './JitsiConferenceErrors';

+ 1
- 1
JitsiTrackError.js View File

@@ -132,7 +132,7 @@ function JitsiTrackError(error, options, devices) {
132 132
         throw new Error('Invalid arguments');
133 133
     }
134 134
 
135
-    this.stack = error.stack || (new Error()).stack;
135
+    this.stack = error.stack || new Error().stack;
136 136
 }
137 137
 
138 138
 JitsiTrackError.prototype = Object.create(Error.prototype);

+ 0
- 2
modules/RTC/JitsiLocalTrack.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename, Promise */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import JitsiTrackError from '../../JitsiTrackError';

+ 0
- 1
modules/RTC/JitsiTrack.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename, module */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 import EventEmitter from 'events';
4 3
 

+ 0
- 2
modules/RTC/RTC.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';

+ 0
- 8
modules/RTC/RTCUtils.js View File

@@ -1,11 +1,3 @@
1
-/* global
2
-          __filename,
3
-          MediaStreamTrack,
4
-          RTCIceCandidate: true,
5
-          RTCPeerConnection,
6
-          RTCSessionDescription: true
7
-*/
8
-
9 1
 import { getLogger } from '@jitsi/logger';
10 2
 import EventEmitter from 'events';
11 3
 import clonedeep from 'lodash.clonedeep';

+ 1
- 1
modules/RTC/TPCUtils.js View File

@@ -124,7 +124,7 @@ export class TPCUtils {
124 124
                 group.ssrcs
125 125
                     .split(' ')
126 126
                     .filter(Boolean)
127
-                    .forEach(ssrc => ssrcs.add(ssrc)),
127
+                    .forEach(ssrc => ssrcs.add(ssrc))
128 128
             );
129 129
 
130 130
             ssrcs.forEach(ssrc => {

+ 0
- 2
modules/RTC/TraceablePeerConnection.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename, RTCSessionDescription */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 import { Interop } from '@jitsi/sdp-interop';
5 3
 import transform from 'sdp-transform';

+ 0
- 1
modules/connectivity/IceFailedHandling.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 
4 3
 import * as JitsiConferenceErrors from '../../JitsiConferenceErrors';

+ 0
- 2
modules/connectivity/IceFailedHandling.spec.js View File

@@ -1,5 +1,3 @@
1
-/* global */
2
-
3 1
 import Listenable from '../util/Listenable';
4 2
 import { nextTick } from '../util/TestUtils';
5 3
 

+ 0
- 1
modules/connectivity/ParticipantConnectionStatus.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 
4 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';

+ 1
- 1
modules/e2ee/E2EEContext.js View File

@@ -1,4 +1,4 @@
1
-/* global __filename, RTCRtpScriptTransform */
1
+/* global RTCRtpScriptTransform */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 

+ 0
- 2
modules/e2ee/KeyHandler.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';

+ 0
- 2
modules/e2ee/ManagedKeyHandler.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 import debounce from 'lodash.debounce';
5 3
 

+ 1
- 1
modules/e2ee/OlmAdapter.js View File

@@ -1,4 +1,4 @@
1
-/* global __filename, Olm */
1
+/* global Olm */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import base64js from 'base64-js';

+ 0
- 1
modules/e2eping/e2eping.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 
4 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';

+ 0
- 2
modules/event/Jvb121EventGenerator.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';

+ 0
- 2
modules/sdp/LocalSdpMunger.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import MediaDirection from '../../service/RTC/MediaDirection';

+ 0
- 2
modules/sdp/RtxModifier.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import SDPUtil from './SDPUtil';

+ 0
- 2
modules/sdp/SdpConsistency.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 
5 3
 import {

+ 0
- 1
modules/statistics/AvgRTPStatsReporter.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 import isEqual from 'lodash.isequal';
4 3
 

+ 0
- 2
modules/transcription/audioRecorder.js View File

@@ -1,5 +1,3 @@
1
-/* global MediaRecorder, MediaStream */
2
-
3 1
 const RecordingResult = require('./recordingResult');
4 2
 
5 3
 /**

+ 0
- 2
modules/util/AsyncQueue.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 import async from 'async';
5 3
 

+ 0
- 4
modules/webaudio/AudioMixer.js View File

@@ -1,7 +1,3 @@
1
-/* global
2
-    __filename
3
-*/
4
-
5 1
 import { getLogger } from '@jitsi/logger';
6 2
 
7 3
 import { createAudioContext } from './WebAudioUtils';

+ 1
- 1
modules/xmpp/ChatRoom.js View File

@@ -1,4 +1,4 @@
1
-/* global $, __filename */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import isEqual from 'lodash.isequal';

+ 2
- 1
modules/xmpp/JingleHelperFunctions.js View File

@@ -1,6 +1,7 @@
1
-/* global $, $build, __filename */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4
+import { $build } from 'strophe.js';
4 5
 
5 6
 import * as MediaType from '../../service/RTC/MediaType';
6 7
 import FeatureFlags from '../flags/FeatureFlags';

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

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 import { getLogger } from '@jitsi/logger';
3 2
 
4 3
 import Listenable from '../util/Listenable';

+ 1
- 1
modules/xmpp/JingleSessionPC.js View File

@@ -1,4 +1,4 @@
1
-/* global __filename, $ */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import { $iq, Strophe } from 'strophe.js';

+ 0
- 2
modules/xmpp/SignalingLayerImpl.js View File

@@ -1,5 +1,3 @@
1
-/* global __filename */
2
-
3 1
 import { getLogger } from '@jitsi/logger';
4 2
 import { Strophe } from 'strophe.js';
5 3
 

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

@@ -1,4 +1,4 @@
1
-/* global $, Promise */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import { $iq, Strophe } from 'strophe.js';

+ 1
- 1
modules/xmpp/strophe.jingle.js View File

@@ -1,4 +1,4 @@
1
-/* global $, __filename */
1
+/* global $ */
2 2
 
3 3
 import { getLogger } from '@jitsi/logger';
4 4
 import { $iq, Strophe } from 'strophe.js';

+ 0
- 1
modules/xmpp/strophe.util.js View File

@@ -1,4 +1,3 @@
1
-/* global __filename */
2 1
 /**
3 2
  * Strophe logger implementation. Logs from level WARN and above.
4 3
  */

+ 1
- 0
package.json View File

@@ -57,6 +57,7 @@
57 57
   },
58 58
   "scripts": {
59 59
     "lint": "eslint .",
60
+    "lint-fix": "eslint . --fix",
60 61
     "postinstall": "webpack",
61 62
     "test": "karma start karma.conf.js",
62 63
     "test-watch": "karma start karma.conf.js --no-single-run",

+ 0
- 1
service/RTC/BridgeVideoType.js View File

@@ -1,4 +1,3 @@
1
-/* global module */
2 1
 /**
3 2
  * Enumeration of the video types that are signaled to the bridge
4 3
  * @type {{CAMERA: string, DESKTOP: string, DESKTOP_HIGH_FPS: string, NONE: string}}

+ 0
- 1
service/RTC/CodecMimeType.js View File

@@ -1,4 +1,3 @@
1
-/* global module */
2 1
 /**
3 2
  * Enumeration of the codec mime types
4 3
  * @type {{H264: string, OPUS: string, VP8: string, VP9: string}}

+ 0
- 1
service/RTC/MediaDirection.js View File

@@ -1,4 +1,3 @@
1
-/* global module */
2 1
 /**
3 2
  * Enumeration of the media direction types.
4 3
  * @type {{INACTIVE: string, RECVONLY: string, SENDONLY: string, SENDRECV: string}}

+ 0
- 1
service/RTC/VideoType.js View File

@@ -1,4 +1,3 @@
1
-/* global module */
2 1
 /**
3 2
  * Enumeration of the video types
4 3
  * @type {{CAMERA: string, DESKTOP: string}}

Loading…
Cancel
Save