ESlint no-unneeded-ternary

and no-extend-native, no-sequences
This commit is contained in:
Peter Jaszkowiak
2017-02-18 12:59:46 -07:00
parent 64a6322002
commit c4bdb72941
15 changed files with 24 additions and 23 deletions

View File

@@ -448,6 +448,11 @@
},
};
if ('undefined' !== typeof window) {
window.utils = module.exports;
}
/* eslint "no-extend-native": "off" */
if (typeof String.prototype.startsWith !== 'function') {
String.prototype.startsWith = function (prefix) {
if (this.length < prefix.length) {
@@ -474,10 +479,6 @@
return this.replace(/\s+$/g, '');
};
}
if ('undefined' !== typeof window) {
window.utils = module.exports;
}
}('undefined' === typeof module ? {
module: {
exports: {},