no-native-reassign -> no-global-assign

This commit is contained in:
Bryan Housel
2016-10-29 14:42:04 -04:00
parent f1896355ba
commit b2c8f72c95
3 changed files with 5 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-global-assign": "error",
"no-implied-eval": "error",
"no-invalid-this": "off",
"no-iterator": "error",
@@ -35,7 +36,6 @@
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-multi-str": "error",
"no-native-reassign": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",

View File

@@ -15,7 +15,7 @@ describe('iD.serviceMapillary', function() {
mapillary = iD.services.mapillary;
mapillary.reset();
/* eslint-disable no-native-reassign */
/* eslint-disable no-global-assign */
/* mock userAgent */
if (isPhantom) {
orig = navigator;
@@ -35,7 +35,7 @@ describe('iD.serviceMapillary', function() {
} else {
navigator.__defineGetter__('userAgent', orig);
}
/* eslint-enable no-native-reassign */
/* eslint-enable no-global-assign */
});

View File

@@ -5,7 +5,7 @@ describe('iD.uiCmd', function () {
uaMock = function () { return ua; };
beforeEach(function() {
/* eslint-disable no-native-reassign */
/* eslint-disable no-global-assign */
/* mock userAgent */
if (isPhantom) {
orig = navigator;
@@ -23,7 +23,7 @@ describe('iD.uiCmd', function () {
} else {
navigator.__defineGetter__('userAgent', orig);
}
/* eslint-enable no-native-reassign */
/* eslint-enable no-global-assign */
});
it('does not overwrite mac keybindings', function () {