Bug 1439315 - 4 - Make ESLint happy. r=standard8 draft
authorMarco Bonardo <mbonardo@mozilla.com>
Wed, 28 Feb 2018 15:27:04 +0100
changeset 761872 a78d1513e46f85375e4e75377550940d40c25b70
parent 761871 e215b0a8890b3dc2169d82fbf63ba2fba4e65b4f
child 761873 a72bbdee84965d716b14d5ddbb020579cdc83f8c
push id101023
push usermak77@bonardo.net
push dateThu, 01 Mar 2018 15:34:13 +0000
reviewersstandard8
bugs1439315
milestone60.0a1
Bug 1439315 - 4 - Make ESLint happy. r=standard8 MozReview-Commit-ID: I4Hz0V9UGvI
tools/lint/eslint/eslint-plugin-mozilla/lib/environments/places-overlay.js
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/places-overlay.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/places-overlay.js
@@ -15,33 +15,32 @@
 // -----------------------------------------------------------------------------
 var path = require("path");
 var helpers = require("../helpers");
 var globals = require("../globals");
 var modules = helpers.modulesGlobalData;
 
 const placesOverlayFiles = [
   "toolkit/content/globalOverlay.js",
-  "browser/base/content/utilityOverlay.js",
-  "browser/components/places/content/controller.js",
-  "browser/components/places/content/treeView.js"
+  "browser/base/content/utilityOverlay.js"
 ];
 
 const extraPlacesDefinitions = [
-  // Straight definitions.
-  {name: "Cc", writable: false},
-  {name: "Ci", writable: false},
-  {name: "Cr", writable: false},
-  {name: "Cu", writable: false},
-  // Via Components.utils / XPCOMUtils.defineLazyModuleGetter (and map to
+  // Via Components.utils, defineModuleGetter, defineLazyModuleGetters or
+  // defineLazyScriptGetter (and map to
   // single) variable.
   {name: "XPCOMUtils", writable: false},
   {name: "Task", writable: false},
   {name: "PlacesUIUtils", writable: false},
-  {name: "PlacesTransactions", writable: false}
+  {name: "PlacesTransactions", writable: false},
+  {name: "ForgetAboutSite", writable: false},
+  {name: "PlacesTreeView", writable: false},
+  {name: "PlacesInsertionPoint", writable: false},
+  {name: "PlacesController", writable: false},
+  {name: "PlacesControllerDragHelper", writable: false}
 ];
 
 const placesOverlayModules = [
   "PlacesUtils.jsm"
 ];
 
 function getScriptGlobals() {
   let fileGlobals = [];