Bug 1303469 - Initial formautofill .eslintrc. r=rhelmer draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Fri, 16 Sep 2016 16:39:51 -0700
changeset 414671 9eee2d442bb4797dcfdf1ae189d6ca69a1b0b03a
parent 414670 a12f29071588421b0c9ac0b560008abffb827341
child 531495 9b9618790d8b8c4249a81fac491d0a8cadd64d0d
push id29734
push usermozilla@noorenberghe.ca
push dateFri, 16 Sep 2016 23:40:27 +0000
reviewersrhelmer
bugs1303469
milestone51.0a1
Bug 1303469 - Initial formautofill .eslintrc. r=rhelmer MozReview-Commit-ID: 9EwAhB3galN
browser/extensions/formautofill/.eslintrc
browser/extensions/formautofill/bootstrap.js
browser/extensions/formautofill/test/browser/.eslintrc
copy from toolkit/components/extensions/.eslintrc
copy to browser/extensions/formautofill/.eslintrc
--- a/toolkit/components/extensions/.eslintrc
+++ b/browser/extensions/formautofill/.eslintrc
@@ -1,34 +1,16 @@
 {
   "extends": "../../.eslintrc",
 
   "globals": {
-    "Cc": true,
-    "Ci": true,
     "Components": true,
-    "Cr": true,
-    "Cu": true,
     "dump": true,
     "TextDecoder": false,
     "TextEncoder": false,
-    // Specific to WebExtensions:
-    "Extension": true,
-    "ExtensionManagement": true,
-    "extensions": true,
-    "global": true,
-    "NetUtil": true,
-    "openOptionsPage": true,
-    "require": false,
-    "runSafe": true,
-    "runSafeSync": true,
-    "runSafeSyncWithoutClone": true,
-    "Services": true,
-    "TabManager": true,
-    "XPCOMUtils": true,
   },
 
   "rules": {
     // Rules from the mozilla plugin
     "mozilla/balanced-listeners": 2,
     "mozilla/mark-test-function-used": 1,
     "mozilla/no-aArgs": 1,
     "mozilla/no-cpows-in-tests": 1,
--- a/browser/extensions/formautofill/bootstrap.js
+++ b/browser/extensions/formautofill/bootstrap.js
@@ -1,10 +1,12 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
+/* exported startup, shutdown, install, uninstall */
+
 function startup() {}
 function shutdown() {}
 function install() {}
 function uninstall() {}
new file mode 100644
--- /dev/null
+++ b/browser/extensions/formautofill/test/browser/.eslintrc
@@ -0,0 +1,5 @@
+{
+  "extends": [
+    "../../../../../testing/mochitest/browser.eslintrc"
+  ]
+}