Selaa lähdekoodia

fix(eslint): Add no-alert rule

dev1
hristoterezov 8 vuotta sitten
vanhempi
commit
f63b04ddab
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 1
    0
      .eslintrc.js
  2. 2
    0
      modules/RTC/ScreenObtainer.js

+ 1
- 0
.eslintrc.js Näytä tiedosto

@@ -77,6 +77,7 @@ module.exports = {
77 77
         'dot-location': [ 'error', 'property' ],
78 78
         'dot-notation': 2,
79 79
         'guard-for-in': 2,
80
+        'no-alert': 2,
80 81
         'no-caller': 2,
81 82
         'no-case-declarations': 2,
82 83
         'no-div-regex': 0,

+ 2
- 0
modules/RTC/ScreenObtainer.js Näytä tiedosto

@@ -241,9 +241,11 @@ var ScreenObtainer = {
241 241
                 failCallback);
242 242
         } else {
243 243
             if (chromeExtUpdateRequired) {
244
+                /* eslint-disable no-alert */
244 245
                 alert(
245 246
                     'Jitsi Desktop Streamer requires update. '
246 247
                     + 'Changes will take effect after next Chrome restart.');
248
+                /* eslint-enable no-alert */
247 249
             }
248 250
 
249 251
             try {

Loading…
Peruuta
Tallenna