diff --git a/lib/js-file.js b/lib/js-file.js index cd2617a9d..e4905270f 100644 --- a/lib/js-file.js +++ b/lib/js-file.js @@ -561,9 +561,10 @@ JsFile.prototype = { }, /** - * Is tokens on the same line - * @param {object} tokenBefore - * @param {object} tokenAfter + * Are tokens on the same line. + * + * @param {Element} tokenBefore + * @param {Element} tokenAfter * @return {Boolean} */ isOnTheSameLine: function(tokenBefore, tokenAfter) { diff --git a/lib/pragma-index.js b/lib/pragma-index.js index 90c16835e..737fa56af 100644 --- a/lib/pragma-index.js +++ b/lib/pragma-index.js @@ -30,7 +30,7 @@ function parseRuleNames(text, enabled) { * Pragma index implementation. * Checks if rule is enabled or disabled for the specified element. * - * @param firstToken + * @param {Element} firstToken * @constructor */ function PragmaIndex(firstToken) { diff --git a/lib/rules/require-var-decl-first.js b/lib/rules/require-var-decl-first.js index c1da7b89b..e38c1c61a 100644 --- a/lib/rules/require-var-decl-first.js +++ b/lib/rules/require-var-decl-first.js @@ -118,7 +118,8 @@ function isScopeElement(elem) { } /** - * Checks for allowed elements before variable declaration + * Checks for allowed elements before variable declaration. + * * @param {Object} elem * @returns {Boolean} */ diff --git a/lib/rules/validate-indentation.js b/lib/rules/validate-indentation.js index 3b9205bca..75b46be32 100644 --- a/lib/rules/validate-indentation.js +++ b/lib/rules/validate-indentation.js @@ -273,7 +273,7 @@ function isBlockOnTheSameLineWithCase(element) { * Returns true for situations like `if ... else`, `try ... catch`. * I.e. two blocks within one statement. * - * @param blockStatement + * @param {Element} blockStatement * @returns {*} */ function hasFollowingClause(blockStatement) { @@ -397,7 +397,7 @@ module.exports.prototype = { * Returns indentation for specified element if element is indented. * * @param {Node} node - * @returns {Number} + * @returns {Number|null} * @private */ _getElementDirectIndent: function(node) { diff --git a/package.json b/package.json index 54b516abe..f7318cc67 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "glob": "^5.0.1", "htmlparser2": "3.8.3", "js-yaml": "~3.4.0", - "jscs-jsdoc": "git://github.com/jscs-dev/jscs-jsdoc.git#3", + "jscs-jsdoc": "^2.0.0", "jscs-preset-wikimedia": "~1.0.0", "jsonlint": "~1.6.2", "lodash": "~3.10.0",