forked from cliqz-oss/browser-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
70 lines (69 loc) · 1.73 KB
/
.eslintrc
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"commonjs": false,
"es6": true,
"mocha": true,
"node": true,
"shared-node-browser": true,
"webextensions": true,
"worker": true
},
"globals": {
"Components": {},
"Services": {},
"dump": {},
"System": {},
"Cc": {},
"Ci": {},
"Promise": {},
"setTimeout": {},
"setInterval": {},
"clearTimeout": {}
},
"plugins": [
"compat",
"class-property"
],
"rules": {
"no-control-regex": "off",
"compat/compat": "error",
"import/extensions": "off",
"class-methods-use-this": "off",
"no-restricted-syntax": [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"functions": "ignore",
}],
"react/require-default-props": "off",
"react/prop-types": "off",
// Rules to keep
"no-underscore-dangle": "off",
"import/no-unresolved": "off",
"no-restricted-globals": ["error", "Worker"]
},
"overrides": [
{
"files": [
"modules/**/tests/**/*.*",
"modules/**/*tests.bundle.*",
"modules/**/*helpers.*"
],
"rules": {
"import/no-extraneous-dependencies": "off",
"func-names": ["error", "never"],
"prefer-arrow-callback": "off",
"no-unused-expressions": "off",
"object-shorthand": "off",
}
}
]
}