mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 08:40:56 +00:00
Bug 1328798 - Enable the no-delete-var rule for eslint and fix the one error spotted by the rule. r=jkt
MozReview-Commit-ID: 5wKobd1ehAu --HG-- extra : rebase_source : 0737687ad78e796b5d97be45a2b564db97c371b5
This commit is contained in:
parent
03a9b9a558
commit
f0942cd4b3
@ -6664,8 +6664,8 @@ var gIdentityHandler = {
|
||||
return this._identityBox = document.getElementById("identity-box");
|
||||
},
|
||||
get _identityPopupMultiView() {
|
||||
delete _identityPopupMultiView;
|
||||
return document.getElementById("identity-popup-multiView");
|
||||
delete this._identityPopupMultiView;
|
||||
return this._identityPopupMultiView = document.getElementById("identity-popup-multiView");
|
||||
},
|
||||
get _identityPopupContentHosts() {
|
||||
delete this._identityPopupContentHosts;
|
||||
|
@ -66,6 +66,9 @@ module.exports = {
|
||||
// Disallow the use of debugger
|
||||
"no-debugger": "error",
|
||||
|
||||
// Disallow deleting variables
|
||||
"no-delete-var": "error",
|
||||
|
||||
// No duplicate arguments in function declarations
|
||||
"no-dupe-args": "error",
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user