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

Commit

Permalink
[Fix] Remaining style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevils committed Apr 14, 2016
1 parent 9ce5130 commit b09ef84
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions lib/js-file.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/pragma-index.js
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/require-var-decl-first.js
Expand Up @@ -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}
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/validate-indentation.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit b09ef84

Please sign in to comment.