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": {
|
2019-02-21 14:54:04 +00:00
|
|
|
"OO": "readonly",
|
|
|
|
"mw": "readonly",
|
|
|
|
"require": "readonly"
|
2017-04-11 02:30:17 +00:00
|
|
|
},
|
|
|
|
"rules": {
|
2019-06-07 19:29:23 +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`."
|
|
|
|
}
|
|
|
|
],
|
2019-06-07 19:29:23 +00:00
|
|
|
"valid-jsdoc": [
|
|
|
|
"error",
|
|
|
|
{
|
2018-07-10 22:47:31 +00:00
|
|
|
"requireParamDescription": false,
|
|
|
|
"requireReturnDescription": false,
|
|
|
|
"requireReturn": false,
|
|
|
|
"preferType": {
|
2019-06-07 19:29:23 +00:00
|
|
|
"Boolean": "boolean",
|
|
|
|
"Number": "number",
|
|
|
|
"object": "Object",
|
|
|
|
"String": "string"
|
2018-07-10 22:47:31 +00:00
|
|
|
}
|
2019-06-07 19:29:23 +00:00
|
|
|
}
|
|
|
|
],
|
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
|
|
|
}
|
|
|
|
}
|