summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/chrome.eslintrc.js
blob: 1084846ea027c86852170f96e76f3706daed9ab0 (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
36
37
38
39
// Parent config file for all mochitest files.
module.exports = {
  rules: {
    "mozilla/import-headjs-globals": "warn",
    "mozilla/mark-test-function-used": "warn",
  },

  "env": {
    "browser": true,
  },

  // All globals made available in the test environment.
  "globals": {
    "add_task": false,
    "Assert": false,
    "EventUtils": false,
    "executeSoon": false,
    "export_assertions": false,
    "finish": false,
    "getRootDirectory": false,
    "getTestFilePath": false,
    "gTestPath": false,
    "info": false,
    "is": false,
    "isnot": false,
    "ok": false,
    "promise": false,
    "registerCleanupFunction": false,
    "requestLongerTimeout": false,
    "SimpleTest": false,
    "SpecialPowers": false,
    "todo": false,
    "todo_is": false,
    "todo_isnot": false,
    "waitForClipboard": false,
    "waitForExplicitFinish": false,
    "waitForFocus": false,
  }
};