Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit b09ef84

Browse files
committed
[Fix] Remaining style issues
1 parent 9ce5130 commit b09ef84

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

lib/js-file.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,10 @@ JsFile.prototype = {
561561
},
562562

563563
/**
564-
* Is tokens on the same line
565-
* @param {object} tokenBefore
566-
* @param {object} tokenAfter
564+
* Are tokens on the same line.
565+
*
566+
* @param {Element} tokenBefore
567+
* @param {Element} tokenAfter
567568
* @return {Boolean}
568569
*/
569570
isOnTheSameLine: function(tokenBefore, tokenAfter) {

lib/pragma-index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function parseRuleNames(text, enabled) {
3030
* Pragma index implementation.
3131
* Checks if rule is enabled or disabled for the specified element.
3232
*
33-
* @param firstToken
33+
* @param {Element} firstToken
3434
* @constructor
3535
*/
3636
function PragmaIndex(firstToken) {

lib/rules/require-var-decl-first.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ function isScopeElement(elem) {
118118
}
119119

120120
/**
121-
* Checks for allowed elements before variable declaration
121+
* Checks for allowed elements before variable declaration.
122+
*
122123
* @param {Object} elem
123124
* @returns {Boolean}
124125
*/

lib/rules/validate-indentation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function isBlockOnTheSameLineWithCase(element) {
273273
* Returns true for situations like `if ... else`, `try ... catch`.
274274
* I.e. two blocks within one statement.
275275
*
276-
* @param blockStatement
276+
* @param {Element} blockStatement
277277
* @returns {*}
278278
*/
279279
function hasFollowingClause(blockStatement) {
@@ -397,7 +397,7 @@ module.exports.prototype = {
397397
* Returns indentation for specified element if element is indented.
398398
*
399399
* @param {Node} node
400-
* @returns {Number}
400+
* @returns {Number|null}
401401
* @private
402402
*/
403403
_getElementDirectIndent: function(node) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"glob": "^5.0.1",
7070
"htmlparser2": "3.8.3",
7171
"js-yaml": "~3.4.0",
72-
"jscs-jsdoc": "git://github.com/jscs-dev/jscs-jsdoc.git#3",
72+
"jscs-jsdoc": "^2.0.0",
7373
"jscs-preset-wikimedia": "~1.0.0",
7474
"jsonlint": "~1.6.2",
7575
"lodash": "~3.10.0",

0 commit comments

Comments
 (0)