-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (48 loc) · 1.09 KB
/
.eslintrc.js
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
"use strict";
/* eslint-env node */
/* eslint sort-keys: "error" */
module.exports = {
"env": {
"browser": true,
"es6": true,
},
// "globals": {
// },
"extends": [
"plugin:mozilla/recommended",
"plugin:react/recommended",
],
"overrides": [{
// This marks exported symbols as used for our modules.
"files": [
"addon/modules/**/*.js",
],
"rules": {
"mozilla/mark-exported-symbols-as-used": "error",
},
}],
"plugins": [
"mozilla",
"html",
"react",
],
"rules": {
// XXX These are all rules that mozilla/recommended set, but we currently
// don't pass. We should enable these over time.
"complexity": ["error", 34],
// For now, turn this off, since we want to support TB 60 (only added in 62).
"mozilla/use-chromeutils-generateqi": "off",
"mozilla/use-ownerGlobal": "off",
"no-undef": "error",
// We want to check the global scope everywhere.
"no-unused-vars": ["error", {
"args": "none",
"vars": "all",
}],
},
"settings": {
"react": {
"version": "16.0",
},
},
};