From 3d8163dcf6070a9e73fa1e8e31a65375ff5770d2 Mon Sep 17 00:00:00 2001 From: Brandon Labuschagne Date: Thu, 13 Jun 2019 19:15:25 +0000 Subject: Disable unnecessary ESLint i18n offences Unnecessary offences include false positives as well as flagged errors which have follow up issues in order to be addressed. Not all issues have been addressed before this being submitted in the spirit of results and iteration. --- app/assets/javascripts/lib/utils/notify.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/assets/javascripts/lib/utils/notify.js') diff --git a/app/assets/javascripts/lib/utils/notify.js b/app/assets/javascripts/lib/utils/notify.js index d93873e0214..e7f6255e5f1 100644 --- a/app/assets/javascripts/lib/utils/notify.js +++ b/app/assets/javascripts/lib/utils/notify.js @@ -12,6 +12,7 @@ function notificationGranted(message, opts, onclick) { } function notifyPermissions() { + /* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ if ('Notification' in window) { return Notification.requestPermission(); } @@ -24,6 +25,7 @@ function notifyMe(message, body, icon, onclick) { icon: icon, }; // Let's check if the browser supports notifications + /* eslint-disable-next-line @gitlab/i18n/no-non-i18n-strings */ if (!('Notification' in window)) { // do nothing } else if (Notification.permission === 'granted') { -- cgit v1.2.1