DEV: Skip ESLint on polyfill

This commit is contained in:
David Taylor 2018-10-26 13:54:03 +01:00
parent af84949f25
commit e955a1f24b

View File

@ -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;
}
});
}
}
/* eslint-enable */