mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
a44badacc8
Bug: T210552 Change-Id: I23d8923ffe82b766bbfd7505bd05834e3e6d247a
76 lines
1.7 KiB
JSON
76 lines
1.7 KiB
JSON
{
|
|
"root": true,
|
|
"extends": "wikimedia",
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"globals": {
|
|
"OO": false,
|
|
"mw": false,
|
|
"$": false,
|
|
"Hogan": false,
|
|
"require": false
|
|
},
|
|
"rules": {
|
|
"no-restricted-properties": [2,
|
|
{
|
|
"object": "$",
|
|
"property": "noop",
|
|
"message": "Use function() {}"
|
|
},
|
|
{
|
|
"object": "$",
|
|
"property": "isFunction",
|
|
"message": "Please use typeof"
|
|
},
|
|
{
|
|
"object": "$",
|
|
"property": "map",
|
|
"message": "Please use Array.prototype.map instead"
|
|
},
|
|
{
|
|
"object": "$",
|
|
"property": "isArray",
|
|
"message": "Please use Array.isArray instead"
|
|
},
|
|
{
|
|
"object": "$",
|
|
"property": "grep",
|
|
"message": "Please use Array.prototype.filter instead"
|
|
},
|
|
{
|
|
"object": "$",
|
|
"property": "trim",
|
|
"message": "Please use String.prototype.trim instead"
|
|
},
|
|
{
|
|
"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`."
|
|
}
|
|
],
|
|
"valid-jsdoc": ["error", {
|
|
"requireParamDescription": false,
|
|
"requireReturnDescription": false,
|
|
"requireReturn": false,
|
|
"preferType": {
|
|
"Boolean": "boolean",
|
|
"Number": "number",
|
|
"object": "Object",
|
|
"String": "string"
|
|
}
|
|
}],
|
|
"object-property-newline": "error",
|
|
"computed-property-spacing": 0,
|
|
"no-use-before-define": 0,
|
|
"no-underscore-dangle": 0
|
|
}
|
|
}
|