Add .vscode to .gitignore file
[lhc/web/wiklou.git] / .eslintrc.json
1 {
2 "extends": "wikimedia",
3 "env": {
4 "browser": true
5 },
6 "globals": {
7 "require": false,
8 "module": false,
9 "mw": false,
10 "$": false,
11 "OO": false
12 },
13 "rules": {
14 "no-restricted-properties": [
15 2,
16 {
17 "object": "$",
18 "property": "map",
19 "message": "Please use Array.prototype.map instead"
20 },
21 {
22 "object": "$",
23 "property": "inArray",
24 "message": "Please use Array.prototype.indexOf instead"
25 },
26 {
27 "object": "$",
28 "property": "each",
29 "message": "Please consider different approaches to $.each, especially when using Array's. You can override this warning if necessary with eslint-disable-next-line."
30 },
31 {
32 "object": "$",
33 "property": "isArray",
34 "message": "Please use Array.isArray instead"
35 },
36 {
37 "object": "$",
38 "property": "isFunction",
39 "message": "Please use typeof (e.g. typeof e === 'function') instead"
40 },
41 {
42 "object": "$",
43 "property": "grep",
44 "message": "Please use Array.prototype.filter instead"
45 },
46 {
47 "object": "$",
48 "property": "trim",
49 "message": "Please use String.prototype.trim instead"
50 },
51 {
52 "object": "$",
53 "property": "proxy",
54 "message": "Please use Function.prototype.bind instead"
55 }
56 ],
57 "dot-notation": 0,
58 "max-len": 0
59 }
60 }