summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/extensions/parent/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to 'comm/mail/components/extensions/parent/.eslintrc.js')
-rw-r--r--comm/mail/components/extensions/parent/.eslintrc.js81
1 files changed, 81 insertions, 0 deletions
diff --git a/comm/mail/components/extensions/parent/.eslintrc.js b/comm/mail/components/extensions/parent/.eslintrc.js
new file mode 100644
index 0000000000..73279358eb
--- /dev/null
+++ b/comm/mail/components/extensions/parent/.eslintrc.js
@@ -0,0 +1,81 @@
+"use strict";
+
+module.exports = {
+ globals: {
+ // These are defined in the WebExtension script scopes by ExtensionCommon.jsm.
+ // From toolkit/components/extensions/.eslintrc.js.
+ ExtensionAPI: true,
+ ExtensionAPIPersistent: true,
+ ExtensionCommon: true,
+ ExtensionUtils: true,
+ extensions: true,
+ global: true,
+ Services: true,
+
+ // From toolkit/components/extensions/parent/.eslintrc.js.
+ CONTAINER_STORE: true,
+ DEFAULT_STORE: true,
+ EventEmitter: true,
+ EventManager: true,
+ InputEventManager: true,
+ PRIVATE_STORE: true,
+ TabBase: true,
+ TabManagerBase: true,
+ TabTrackerBase: true,
+ WindowBase: true,
+ WindowManagerBase: true,
+ WindowTrackerBase: true,
+ getContainerForCookieStoreId: true,
+ getUserContextIdForCookieStoreId: true,
+ getCookieStoreIdForOriginAttributes: true,
+ getCookieStoreIdForContainer: true,
+ getCookieStoreIdForTab: true,
+ isContainerCookieStoreId: true,
+ isDefaultCookieStoreId: true,
+ isPrivateCookieStoreId: true,
+ isValidCookieStoreId: true,
+
+ // These are defined in ext-mail.js.
+ ADDRESS_BOOK_WINDOW_URI: true,
+ COMPOSE_WINDOW_URI: true,
+ MAIN_WINDOW_URI: true,
+ MESSAGE_WINDOW_URI: true,
+ MESSAGE_PROTOCOLS: true,
+ NOTIFICATION_COLLAPSE_TIME: true,
+ ExtensionError: true,
+ Tab: true,
+ TabmailTab: true,
+ Window: true,
+ TabmailWindow: true,
+ clickModifiersFromEvent: true,
+ convertFolder: true,
+ convertAccount: true,
+ traverseSubfolders: true,
+ convertMailIdentity: true,
+ convertMessage: true,
+ folderPathToURI: true,
+ folderURIToPath: true,
+ getNormalWindowReady: true,
+ getRealFileForFile: true,
+ getTabBrowser: true,
+ getTabTabmail: true,
+ getTabWindow: true,
+ messageListTracker: true,
+ messageTracker: true,
+ nsDummyMsgHeader: true,
+ spaceTracker: true,
+ tabGetSender: true,
+ tabTracker: true,
+ windowTracker: true,
+
+ // ext-browserAction.js
+ browserActionFor: true,
+ },
+ rules: {
+ // From toolkit/components/extensions/.eslintrc.js.
+ // Disable reject-importGlobalProperties because we don't want to include
+ // these in the sandbox directly as that would potentially mean the
+ // imported properties would be instantiated up-front rather than lazily.
+ "mozilla/reject-importGlobalProperties": "off",
+ },
+};