2017-04-11 02:30:17 +00:00
|
|
|
{
|
2018-10-05 16:22:11 +00:00
|
|
|
"root": true,
|
2018-11-27 12:20:16 +00:00
|
|
|
"extends": [
|
|
|
|
"wikimedia/client",
|
|
|
|
"wikimedia/jquery"
|
|
|
|
],
|
2017-04-11 02:30:17 +00:00
|
|
|
"globals": {
|
|
|
|
"OO": false,
|
|
|
|
"mw": false,
|
|
|
|
"Hogan": false,
|
|
|
|
"require": false
|
|
|
|
},
|
|
|
|
"rules": {
|
2019-01-09 13:57:26 +00:00
|
|
|
"no-restricted-properties": [ "error",
|
2018-08-22 00:16:09 +00:00
|
|
|
{
|
|
|
|
"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
|
|
|
"object-property-newline": "error",
|
2019-01-09 13:57:26 +00:00
|
|
|
"no-use-before-define": "off",
|
|
|
|
"no-underscore-dangle": "off"
|
2017-04-11 02:30:17 +00:00
|
|
|
}
|
|
|
|
}
|