Bug 1686610 [wpt PR 27178] - Update <link> pseudo selector WPTs, a=testonly
[gecko.git] / devtools / .eslintrc.mochitests.js
blob0e3b4c8ee4f5e1c511aa00f946d9dfa3f9eb517d
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 "use strict";
7 // Parent config file for all devtools browser mochitest files.
8 module.exports = {
9   extends: ["plugin:mozilla/browser-test"],
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   },