summaryrefslogtreecommitdiffstats
path: root/devtools/platform/tests/xpcshell/.eslintrc.js
blob: dc7f2c85c42153358b21eff2e62b981797ffd5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";

// Parent config file for all devtools xpcshell files.
module.exports = {
  extends: ["plugin:mozilla/xpcshell-test"],
  rules: {
    // Allow non-camelcase so that run_test doesn't produce a warning.
    camelcase: "off",
    // Allow using undefined variables so that tests can refer to functions
    // and variables defined in head.js files, without having to maintain a
    // list of globals in each .eslintrc file.
    // Note that bug 1168340 will eventually help auto-registering globals
    // from head.js files.
    "no-undef": "off",
    "block-scoped-var": "off",
    // Tests can always import anything.
    "mozilla/reject-some-requires": "off",
  },
};