summaryrefslogtreecommitdiffstats
path: root/testing/xpcshell/xpcshell.eslintrc.js
blob: 4f8fc3d5185f8f7b7a2c416a7a660abc669e3a5d (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Parent config file for all xpcshell files.
module.exports = {
  rules: {
    "mozilla/import-headjs-globals": "warn",
    "mozilla/mark-test-function-used": "warn",
    "no-shadow": "error",
  },

  // All globals made available in the test environment.
  "globals": {
    "add_task": false,
    "add_test": false,
    "Assert": false,
    "deepEqual": false,
    "do_check_eq": false,
    "do_check_false": false,
    "do_check_matches": false,
    "do_check_neq": false,
    "do_check_null": false,
    "do_check_true": false,
    "do_execute_soon": false,
    "do_get_cwd": false,
    "do_get_file": false,
    "do_get_idle": false,
    "do_get_profile": false,
    "do_get_tempdir": false,
    "do_load_manifest": false,
    "do_load_module": false,
    "do_parse_document": false,
    "do_print": false,
    "do_register_cleanup": false,
    "do_report_unexpected_exception": false,
    "do_test_finished": false,
    "do_test_pending": false,
    "do_throw": false,
    "do_timeout": false,
    "equal": false,
    "greater": false,
    "greaterOrEqual": false,
    "less": false,
    "lessOrEqual": false,
    "load": false,
    "mozinfo": false,
    "notDeepEqual": false,
    "notEqual": false,
    "notStrictEqual": false,
    "ok": false,
    "run_next_test": false,
    "run_test": false,
    "run_test_in_child": false,
    "strictEqual": false,
    "throws": false,
    "todo": false,
    "todo_check_false": false,
    "todo_check_true": false,
  }
};