Skip to content

A platform for community discussion. Free, open, simple.

DEV: Skip ESLint on polyfill

David Taylore955a1f24b22
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 */