Bug 1647268 [wpt PR 24278] - Python 3: port xhr tests [part 6], a=testonly
[gecko.git] / devtools / .eslintrc.mochitests.js
blob2a0ce303b495f34522f5ef822ebb7b7285d2943b
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 // Parent config file for all devtools browser mochitest files.
6 module.exports = {
7   "extends": [
8     "plugin:mozilla/browser-test"
9   ],
10   // All globals made available in the test environment.
11   "globals": {
12     "DevToolsUtils": true,
13     "gDevTools": true,
14     "once": true,
15     "synthesizeKeyFromKeyTag": true,
16     "TargetFactory": true,
17     "waitForTick": true,
18     "waitUntilState": true,
19   },
21   "parserOptions": {
22     "ecmaFeatures": {
23       "jsx": true,
24     }
25   },
27   "rules": {
28     // Allow non-camelcase so that run_test doesn't produce a warning.
29     "camelcase": "off",
30     // Tests don't have to cleanup observers
31     "mozilla/balanced-observers": 0,
32     // Tests can always import anything.
33     "mozilla/reject-some-requires": 0,
34   },