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
|
"use strict";
module.exports = {
plugins: ["react"],
globals: {
exports: true,
isWorker: true,
loader: true,
module: true,
reportError: true,
require: true,
dampWindow: true,
},
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "^_", vars: "all" }],
// These are the rules that have been configured so far to match the
// devtools coding style.
// Rules from the mozilla plugin
"mozilla/no-aArgs": "error",
"mozilla/no-define-cc-etc": "off",
// See bug 1224289.
"mozilla/reject-importGlobalProperties": ["error", "everything"],
"mozilla/var-only-at-top-level": "error",
},
};
|