Bug 1303469 - Initial formautofill .eslintrc. r=rhelmer
MozReview-Commit-ID: 9EwAhB3galN
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"
+ ]
+}