mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
5732926921
The rule is only broken once in reference to a MF class, so just switch those to inline disables. Change-Id: I96ebd7f034246da13788b8c8673bff203c18b2db
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client-es6",
|
|
"wikimedia/jquery",
|
|
"wikimedia/mediawiki"
|
|
],
|
|
"env": {
|
|
"commonjs": true
|
|
},
|
|
"globals": {
|
|
"require": "readonly"
|
|
},
|
|
"rules": {
|
|
"jsdoc/no-undefined-types": "off",
|
|
"max-len": "error",
|
|
"mediawiki/class-doc": "off",
|
|
"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`."
|
|
}
|
|
],
|
|
"object-property-newline": "error",
|
|
"unit-disallowed-list": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"extends": "wikimedia/server",
|
|
"files": [ ".eslintrc.json" ],
|
|
"rules": {
|
|
"compat/compat": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|