-
Notifications
You must be signed in to change notification settings - Fork 80
/
.eslintrc.json
60 lines (59 loc) · 1.3 KB
/
.eslintrc.json
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
{
"extends": [
"wikimedia/client/es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"env": {
"browser": true,
"jquery": true
},
"globals": {
"AFCH": "writable",
"Hogan": "readonly",
"importScript": "readonly",
"mediaWiki": "writable",
"mw": "writable",
"OO": "readonly"
},
"overrides": [
{
"files": [
"tests/*"
],
"parserOptions": {
"ecmaVersion": 6
}
}
],
"rules": {
"camelcase": "off",
"max-len": "off",
"no-console": "off",
"no-jquery/no-class-state": "off",
"no-jquery/no-extend": "off",
"no-jquery/no-global-selector": "off",
"no-prototype-builtins": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"unicorn/prefer-string-slice": "off",
"eqeqeq": "warn",
"es-x/no-array-prototype-includes": "warn",
"es-x/no-object-values": "warn",
"es-x/no-regexp-s-flag": "warn",
"no-global-assign": "warn",
"no-implicit-globals": "warn",
"no-jquery/no-animate": "warn",
"no-jquery/no-each-util": "warn",
"no-jquery/no-grep": "warn",
"no-jquery/no-in-array": "warn",
"no-jquery/no-map-util": "warn",
"no-jquery/no-sizzle": "warn",
"no-jquery/no-slide": "warn",
"no-jquery/no-trim": "warn",
"no-undef": "warn",
"prefer-const": "warn"
}
}