From e955a1f24b22f81fdfabe1422aa91ad8aa50f35c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 26 Oct 2018 13:54:03 +0100 Subject: [PATCH] DEV: Skip ESLint on polyfill --- app/assets/javascripts/polyfills.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/polyfills.js b/app/assets/javascripts/polyfills.js index 5bb4247296d..71ced4c904e 100644 --- a/app/assets/javascripts/polyfills.js +++ b/app/assets/javascripts/polyfills.js @@ -43,6 +43,7 @@ if (typeof Object.assign !== 'function') { } // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes#Polyfill +/* eslint-disable */ if (!Array.prototype.includes) { Object.defineProperty(Array.prototype, 'includes', { value: function(searchElement, fromIndex) { @@ -92,4 +93,5 @@ if (!Array.prototype.includes) { return false; } }); -} \ No newline at end of file +} +/* eslint-enable */