2023-04-11 17:06:04 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"extends": [
|
|
|
|
"wikimedia/client",
|
|
|
|
"wikimedia/jquery",
|
|
|
|
"wikimedia/mediawiki"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"commonjs": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"require": "readonly"
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-restricted-properties": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"property": "mobileFrontend",
|
|
|
|
"message": "Minerva should only make use of core code. Any code using mobileFrontend should be placed inside the MobileFrontend extension"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"property": "define",
|
|
|
|
"message": "The method `define` if used with mw.mobileFrontend is deprecated. Please use `module.exports`."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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`."
|
|
|
|
}
|
|
|
|
],
|
2023-08-01 00:12:59 +00:00
|
|
|
"unit-disallowed-list": "off",
|
2023-04-11 17:06:04 +00:00
|
|
|
"object-property-newline": "error",
|
|
|
|
"mediawiki/class-doc": "off",
|
|
|
|
"no-use-before-define": "off",
|
|
|
|
"no-underscore-dangle": "off",
|
2023-05-15 22:02:49 +00:00
|
|
|
"jsdoc/no-undefined-types": "off",
|
|
|
|
"no-var": "warn"
|
2023-04-11 17:06:04 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [ ".eslintrc.json" ],
|
|
|
|
"extends": "wikimedia/server",
|
|
|
|
"rules": {
|
|
|
|
"compat/compat": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|