mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-18 02:00:53 +00:00
69efbfc377
Let's improve our documentation by linting it and ensuring it is complete and matches guidelines This fixes offenders Change-Id: I7c829b375705e763085cf731e9a77cc14339af67
47 lines
871 B
JSON
47 lines
871 B
JSON
{
|
|
"extends": "wikimedia",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": "6"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jquery": true,
|
|
"commonjs": true,
|
|
"qunit": true
|
|
},
|
|
"globals": {
|
|
"mediaWiki": false,
|
|
"OO": false,
|
|
"moment": false,
|
|
"Redux": false,
|
|
"ReduxThunk": false
|
|
},
|
|
"rules": {
|
|
"no-prototype-builtins": 0,
|
|
"no-restricted-properties": [2,
|
|
{
|
|
"object": "$",
|
|
"property": "each",
|
|
"message": "Please use Array.forEach"
|
|
}
|
|
],
|
|
"valid-jsdoc": ["error", {
|
|
"requireParamDescription": false,
|
|
"requireReturnDescription": false,
|
|
"preferType": {
|
|
"Boolean": "boolean",
|
|
"Number": "number",
|
|
"object": "Object",
|
|
"String": "string"
|
|
}
|
|
}],
|
|
"dot-notation": [ 2, { "allowKeywords": true } ],
|
|
"no-use-before-define": 0,
|
|
"no-var": 2,
|
|
"prefer-const": 1,
|
|
"prefer-template": 1,
|
|
"one-var": 0
|
|
}
|
|
}
|