Browse Source

[eslint] no-trailing-spaces

master
Lyubo Marinov 8 years ago
parent
commit
a09abf6f59

+ 1
- 0
.eslintrc.js View File

@@ -148,6 +148,7 @@ module.exports = {
148 148
         'no-plusplus': 0,
149 149
         'no-restricted-syntax': 0,
150 150
         'no-ternary': 0,
151
+        'no-trailing-spaces': 2,
151 152
         'no-underscore-dangle': 0,
152 153
         'no-unneeded-ternary': 2,
153 154
         'no-whitespace-before-property': 2,

+ 1
- 1
doc/example/example.js View File

@@ -260,7 +260,7 @@ JitsiMeetJS.init(initOptions).then(function() {
260 260
 if (JitsiMeetJS.mediaDevices.isDeviceChangeAvailable('output')) {
261 261
     JitsiMeetJS.mediaDevices.enumerateDevices(function(devices) {
262 262
         var audioOutputDevices = devices.filter(function(d) {
263
-            return d.kind === 'audiooutput'; 
263
+            return d.kind === 'audiooutput';
264 264
         });
265 265
 
266 266
         if (audioOutputDevices.length > 1) {

+ 4
- 4
karma.conf.js View File

@@ -26,7 +26,7 @@ module.exports = function(config) {
26 26
 
27 27
 
28 28
     // preprocess matching files before serving them to the browser
29
-    // available preprocessors: 
29
+    // available preprocessors:
30 30
     //  https://npmjs.org/browse/keyword/karma-preprocessor
31 31
         preprocessors: {
32 32
             './JitsiMeetJS.js': ['webpack'],
@@ -49,18 +49,18 @@ module.exports = function(config) {
49 49
 
50 50
 
51 51
     // level of logging
52
-    // possible values: config.LOG_DISABLE || config.LOG_ERROR || 
52
+    // possible values: config.LOG_DISABLE || config.LOG_ERROR ||
53 53
     //  config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
54 54
         logLevel: config.LOG_INFO,
55 55
 
56 56
 
57
-    // enable / disable watching file and executing tests whenever 
57
+    // enable / disable watching file and executing tests whenever
58 58
     // any file changes
59 59
         autoWatch: false,
60 60
 
61 61
 
62 62
     // start these browsers
63
-    // available browser launchers: 
63
+    // available browser launchers:
64 64
     // https://npmjs.org/browse/keyword/karma-launcher
65 65
         browsers: ['Chrome'],
66 66
 

+ 2
- 2
modules/transcription/word.js View File

@@ -1,6 +1,6 @@
1 1
 /**
2 2
  * An object representing a transcribed word, with some additional information
3
- * @param word the word 
3
+ * @param word the word
4 4
  * @param begin the time the word was started being uttered
5 5
  * @param end the time the word stopped being uttered
6 6
  */
@@ -15,7 +15,7 @@ var Word = function(word, begin, end) {
15 15
  * @returns {*} the word as a string
16 16
  */
17 17
 Word.prototype.getWord = function() {
18
-    return this.word;  
18
+    return this.word;
19 19
 };
20 20
 
21 21
 /**

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

@@ -903,7 +903,7 @@ export default class JingleSessionPC extends JingleSession {
903 903
                             this.peerconnection.setLocalDescription(
904 904
                                 answer,
905 905
                                 () => {
906
-                                    resolve(); 
906
+                                    resolve();
907 907
                                 },
908 908
                                 error => {
909 909
                                     reject(
@@ -912,13 +912,13 @@ export default class JingleSessionPC extends JingleSession {
912 912
                             );
913 913
                         },
914 914
                         error => {
915
-                            reject('createAnswer failed: ' + error); 
915
+                            reject('createAnswer failed: ' + error);
916 916
                         },
917 917
                         media_constraints
918 918
                     );
919 919
                 },
920 920
                 error => {
921
-                    reject('setRemoteDescription failed: ' + error); 
921
+                    reject('setRemoteDescription failed: ' + error);
922 922
                 }
923 923
             );
924 924
         });

+ 1
- 1
modules/xmpp/RtxModifier.spec.js View File

@@ -107,7 +107,7 @@ describe ('RtxModifier', function() {
107 107
                 let fidGroup = getVideoGroups(newSdp, 'FID')[0];
108 108
                 const fidGroupRtxSsrc = SDPUtil.parseGroupSsrcs(fidGroup)[1];
109 109
 
110
-          // Now pass the original sdp through again 
110
+          // Now pass the original sdp through again
111 111
                 newSdpStr = this.rtxModifier.modifyRtxSsrcs(this.transform.write(this.singleVideoSdp));
112 112
                 newSdp = transform.parse(newSdpStr);
113 113
                 fidGroup = getVideoGroups(newSdp, 'FID')[0];

+ 1
- 1
modules/xmpp/SDPUtil.spec.js View File

@@ -14,7 +14,7 @@ describe('SDPUtil', function() {
14 14
             const sdp = SampleSdpStrings.multiCodecVideoSdp;
15 15
             const videoMLine = sdp.media.find(m => m.type === 'video');
16 16
             SDPUtil.preferVideoCodec(videoMLine, 'H264');
17
-            const newPayloadTypesOrder 
17
+            const newPayloadTypesOrder
18 18
                 = videoMLine.payloads.split(' ').map(ptStr => parseInt(ptStr));
19 19
             expect(newPayloadTypesOrder[0]).toEqual(126);
20 20
         });

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

@@ -93,7 +93,7 @@ export default class XMPP extends Listenable {
93 93
     }
94 94
 
95 95
     getConnection() {
96
-        return this.connection; 
96
+        return this.connection;
97 97
     }
98 98
 
99 99
     /**

Loading…
Cancel
Save