From a2a39b9e5e8dec5b9d5ff346e075f6e6a507981c Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Sat, 15 Feb 2020 18:52:29 -0500 Subject: [PATCH] Disabled ESlint for search suggestions since it is on ES6 --- resources/scripts/typeahead-init.js | 3 +-- resources/scripts/wm-typeahead.js | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/scripts/typeahead-init.js b/resources/scripts/typeahead-init.js index 7ac11b88..328405ab 100644 --- a/resources/scripts/typeahead-init.js +++ b/resources/scripts/typeahead-init.js @@ -2,8 +2,7 @@ * Based on https://gerrit.wikimedia.org/g/wikimedia/portals/+/refs/heads/master * See T219590 for more details */ - -/* eslint-env node, es6 */ +/* eslint-disable */ /* global WMTypeAhead, _, addEvent */ ( function ( WMTypeAhead ) { diff --git a/resources/scripts/wm-typeahead.js b/resources/scripts/wm-typeahead.js index 8cba7430..99ebb2ba 100644 --- a/resources/scripts/wm-typeahead.js +++ b/resources/scripts/wm-typeahead.js @@ -2,14 +2,10 @@ * Based on https://gerrit.wikimedia.org/g/wikimedia/portals/+/refs/heads/master * See T219590 for more details */ - -/* eslint-env node, es6 */ - /** * Below are additional dependency extracted from polyfills.js * TODO: Optimize and clear unneeded code */ - /** * Detects reported or approximate device pixel ratio. * * 1.0 means 1 CSS pixel is 1 hardware pixel @@ -20,6 +16,7 @@ * * @return {number} Device pixel ratio */ + /* eslint-disable */ function getDevicePixelRatio() { if ( window.devicePixelRatio !== undefined ) {