mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-25 03:53:09 +00:00
8ef144f936
Change-Id: I5aa3ab891890b52057a5fc855315e5b1b2203037
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"wikimedia/client-es6",
|
|
"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": "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`."
|
|
}
|
|
],
|
|
"unit-disallowed-list": "off",
|
|
"object-property-newline": "error",
|
|
"mediawiki/class-doc": "off",
|
|
"no-underscore-dangle": "off",
|
|
"jsdoc/no-undefined-types": "off",
|
|
"no-var": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [ ".eslintrc.json" ],
|
|
"extends": "wikimedia/server",
|
|
"rules": {
|
|
"compat/compat": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|