ESlint n-loop-func, yoda

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:00:29 -07:00
parent 04bb6513b0
commit a0a50677da
6 changed files with 21 additions and 22 deletions

View File

@@ -5,7 +5,7 @@
var fs;
var XRegExp;
if ('undefined' === typeof window) {
if (typeof window === 'undefined') {
fs = require('fs');
XRegExp = require('xregexp');
@@ -448,7 +448,7 @@
},
};
if ('undefined' !== typeof window) {
if (typeof window !== 'undefined') {
window.utils = module.exports;
}
@@ -479,7 +479,7 @@
return this.replace(/\s+$/g, '');
};
}
}('undefined' === typeof module ? {
}(typeof module === 'undefined' ? {
module: {
exports: {},
},