2023-04-11 17:06:04 +00:00
|
|
|
{
|
|
|
|
"root": true,
|
|
|
|
"extends": [
|
2023-11-07 16:29:17 +00:00
|
|
|
"wikimedia/client-es6",
|
2023-04-11 17:06:04 +00:00
|
|
|
"wikimedia/jquery",
|
|
|
|
"wikimedia/mediawiki"
|
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"commonjs": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"require": "readonly"
|
|
|
|
},
|
|
|
|
"rules": {
|
2024-03-24 18:45:54 +00:00
|
|
|
"jsdoc/no-undefined-types": "off",
|
2024-03-24 18:49:09 +00:00
|
|
|
"max-len": "error",
|
2024-03-24 18:45:54 +00:00
|
|
|
"mediawiki/class-doc": "off",
|
2023-04-11 17:06:04 +00:00
|
|
|
"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": "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`."
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-underscore-dangle": "off",
|
2024-03-24 20:53:43 +00:00
|
|
|
"no-var": "error",
|
2024-03-24 18:45:54 +00:00
|
|
|
"object-property-newline": "error",
|
|
|
|
"unit-disallowed-list": "off"
|
2023-04-11 17:06:04 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"extends": "wikimedia/server",
|
2024-03-24 18:45:54 +00:00
|
|
|
"files": [ ".eslintrc.json" ],
|
2023-04-11 17:06:04 +00:00
|
|
|
"rules": {
|
|
|
|
"compat/compat": "off"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|