mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
af89d945a6
Bug: T188937 Change-Id: I3279963d9f97a03b49c88f7c549330e3202d727f
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"extends": "wikimedia",
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"qunit": true
|
|
},
|
|
"globals": {
|
|
"OO": false,
|
|
"mw": false,
|
|
"Hogan": false,
|
|
"require": false
|
|
},
|
|
"rules": {
|
|
"no-restricted-properties": [2,
|
|
{
|
|
"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"
|
|
}
|
|
}],
|
|
"dot-notation": [ "error", { "allowKeywords": true } ],
|
|
"object-property-newline": "error",
|
|
"computed-property-spacing": 0,
|
|
"no-use-before-define": 0,
|
|
"no-underscore-dangle": 0
|
|
}
|
|
}
|