2016-12-16 11:11:54 +00:00
|
|
|
{
|
2018-10-05 16:24:24 +00:00
|
|
|
"root": true,
|
2018-12-13 03:09:26 +00:00
|
|
|
"extends": "wikimedia/client",
|
2017-07-28 17:32:46 +00:00
|
|
|
"parserOptions": {
|
2017-08-30 11:47:49 +00:00
|
|
|
"sourceType": "module",
|
2018-05-01 19:17:08 +00:00
|
|
|
"ecmaVersion": "6"
|
2017-07-28 17:32:46 +00:00
|
|
|
},
|
2016-12-16 11:11:54 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"jquery": true,
|
2018-09-11 11:53:15 +00:00
|
|
|
"commonjs": true
|
2016-12-16 11:11:54 +00:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"mediaWiki": false,
|
|
|
|
"OO": false,
|
|
|
|
"moment": false,
|
|
|
|
"Redux": false,
|
|
|
|
"ReduxThunk": false
|
|
|
|
},
|
|
|
|
"rules": {
|
2018-07-06 15:41:19 +00:00
|
|
|
"no-prototype-builtins": 0,
|
2018-03-20 18:03:13 +00:00
|
|
|
"no-restricted-properties": [2,
|
|
|
|
{
|
|
|
|
"object": "$",
|
|
|
|
"property": "each",
|
|
|
|
"message": "Please use Array.forEach"
|
|
|
|
}
|
|
|
|
],
|
2018-07-09 16:56:45 +00:00
|
|
|
"valid-jsdoc": ["error", {
|
|
|
|
"requireParamDescription": false,
|
|
|
|
"requireReturnDescription": false,
|
|
|
|
"preferType": {
|
|
|
|
"Boolean": "boolean",
|
|
|
|
"Number": "number",
|
|
|
|
"object": "Object",
|
|
|
|
"String": "string"
|
|
|
|
}
|
|
|
|
}],
|
2018-03-19 19:44:14 +00:00
|
|
|
"dot-notation": [ 2, { "allowKeywords": true } ],
|
2018-01-18 18:48:16 +00:00
|
|
|
"no-use-before-define": 0,
|
2018-03-15 16:30:11 +00:00
|
|
|
"no-var": 2,
|
2018-03-19 19:39:41 +00:00
|
|
|
"prefer-const": 1,
|
2018-03-20 17:01:18 +00:00
|
|
|
"prefer-template": 1,
|
2018-07-06 15:41:19 +00:00
|
|
|
"one-var": 0
|
2016-12-16 11:11:54 +00:00
|
|
|
}
|
|
|
|
}
|