2017-04-11 02:30:17 +00:00
|
|
|
{
|
|
|
|
"extends": "wikimedia",
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2018-09-11 13:13:41 +00:00
|
|
|
"jquery": true
|
2017-04-11 02:30:17 +00:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"OO": false,
|
|
|
|
"mw": false,
|
|
|
|
"Hogan": false,
|
|
|
|
"require": false
|
|
|
|
},
|
|
|
|
"rules": {
|
2018-08-22 00:16:09 +00:00
|
|
|
"no-restricted-properties": [2,
|
|
|
|
{
|
|
|
|
"property": "done",
|
|
|
|
"message": "The method `done` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "fail",
|
|
|
|
"message": "The method `fail` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "always",
|
|
|
|
"message": "The method `always` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`."
|
|
|
|
}
|
|
|
|
],
|
2018-07-10 22:47:31 +00:00
|
|
|
"valid-jsdoc": ["error", {
|
|
|
|
"requireParamDescription": false,
|
|
|
|
"requireReturnDescription": false,
|
|
|
|
"requireReturn": false,
|
|
|
|
"preferType": {
|
|
|
|
"Boolean": "boolean",
|
|
|
|
"Number": "number",
|
|
|
|
"object": "Object",
|
|
|
|
"String": "string"
|
|
|
|
}
|
|
|
|
}],
|
2017-04-11 02:30:17 +00:00
|
|
|
"dot-notation": [ "error", { "allowKeywords": true } ],
|
|
|
|
"object-property-newline": "error",
|
|
|
|
"computed-property-spacing": 0,
|
|
|
|
"no-use-before-define": 0,
|
|
|
|
"no-underscore-dangle": 0
|
|
|
|
}
|
|
|
|
}
|