summaryrefslogtreecommitdiff
path: root/toolkit/components/extensions/test/mochitest/.eslintrc.js
blob: 53938410b75ee1593c2ba0e45c0889241c68340e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict";

module.exports = { // eslint-disable-line no-undef
  "extends": "../../../../../testing/mochitest/mochitest.eslintrc.js",

  "env": {
    "webextensions": true,
  },

  "globals": {
    "ChromeWorker": false,
    "onmessage": true,
    "sendAsyncMessage": false,

    "waitForLoad": true,
    "promiseConsoleOutput": true,

    "ExtensionTestUtils": false,
    "NetUtil": true,
    "webrequest_test": false,
    "XPCOMUtils": true,

    // head_webrequest.js symbols
    "addStylesheet": true,
    "addLink": true,
    "addImage": true,
    "addScript": true,
    "addFrame": true,
    "makeExtension": false,
  },

  "rules": {
    "no-shadow": 0,
  },
};