mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Merge "build: Enable jscs jsDoc rule 'checkTypes' and make pass"
This commit is contained in:
commit
0b0e17591c
1
.jscsrc
1
.jscsrc
|
@ -10,6 +10,7 @@
|
|||
"see": true
|
||||
}
|
||||
},
|
||||
"checkTypes": "strictNativeCase",
|
||||
"checkParamNames": true,
|
||||
"checkRedundantAccess": true,
|
||||
"checkRedundantReturns": true,
|
||||
|
|
|
@ -253,7 +253,7 @@ ve.dm.MWReferenceNode.static.remapInternalListKeys = function ( dataElement, int
|
|||
* @static
|
||||
* @param {Object} dataElement Element data
|
||||
* @param {ve.dm.InternalList} internalList Internal list
|
||||
* @return {Number} Index
|
||||
* @return {number} Index
|
||||
*/
|
||||
ve.dm.MWReferenceNode.static.getIndex = function ( dataElement, internalList ) {
|
||||
var listIndex = dataElement.attributes.listIndex,
|
||||
|
@ -313,7 +313,7 @@ ve.dm.MWReferenceNode.prototype.getInternalItem = function () {
|
|||
/**
|
||||
* Gets the index for the reference
|
||||
*
|
||||
* @return {Number} Index
|
||||
* @return {number} Index
|
||||
*/
|
||||
ve.dm.MWReferenceNode.prototype.getIndex = function () {
|
||||
return this.constructor.static.getIndex( this.element, this.getDocument().getInternalList() );
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* @abstract
|
||||
* @extends OO.ui.PopupTool
|
||||
* @constructor
|
||||
* @param {String} title Title
|
||||
* @param {string} title Title
|
||||
* @param {OO.ui.ToolGroup} toolGroup
|
||||
* @param {Object} [config]
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue