-
Notifications
You must be signed in to change notification settings - Fork 152
/
.eslintrc.json
64 lines (62 loc) · 1.82 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
61
62
63
64
{
"extends": [
"wikimedia/client/es6",
"wikimedia/jquery",
"wikimedia/mediawiki"
],
"root": true,
"globals": {
"jQuery": "readonly",
"mw": "readonly",
"Map": "readonly"
},
"rules": {
"array-bracket-spacing": "off",
"computed-property-spacing": "off",
"es-x/no-array-prototype-includes": "off",
"indent": "off",
"jsdoc/require-param": "off",
"jsdoc/require-returns": "off",
"max-len": "off",
"no-alert": "off",
"no-jquery/no-class-state": "off",
"no-jquery/no-global-selector": "off",
"no-shadow": "off",
"object-curly-spacing": "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"template-curly-spacing": "off",
"no-nested-ternary": "error",
"no-restricted-syntax": [
"warn",
{
"message": "Using .done() is discouraged. See https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Asynchronous_code",
"selector": "MemberExpression > Identifier[name=\"done\"]"
},
{
"message": "Using .fail() is discouraged. See https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Asynchronous_code",
"selector": "MemberExpression > Identifier[name=\"fail\"]"
}
],
"unicorn/prefer-includes": "error",
"camelcase": ["warn", {"properties": "never"}],
"es-x/no-object-values": "warn",
"mediawiki/class-doc": "warn",
"new-cap": "warn",
"no-jquery/no-constructor-attributes": "warn",
"no-jquery/no-each-util": "warn",
"no-jquery/no-extend": "warn",
"no-jquery/no-grep": "warn",
"no-jquery/no-in-array": "warn",
"no-jquery/no-map-util": "warn",
"no-jquery/no-parse-html-literal": "warn",
"no-jquery/no-sizzle": "warn",
"no-loop-func": "warn",
"no-new": "warn",
"no-script-url": "warn",
"no-unused-expressions": "warn",
"no-use-before-define": "warn",
"no-var": "warn",
"unicorn/prefer-string-slice": "warn"
}
}