@@ -105,7 +105,7 @@ module.exports = {
105
105
/**
106
106
* Responsible for fixing the indentation issue fix
107
107
* @param {ASTNode } node Node violating the indent rule
108
- * @param {Number } needed Expected indentation character count
108
+ * @param {number } needed Expected indentation character count
109
109
* @returns {Function } function to be executed by the fixer
110
110
* @private
111
111
*/
@@ -146,8 +146,8 @@ module.exports = {
146
146
/**
147
147
* Reports a given indent violation and properly pluralizes the message
148
148
* @param {ASTNode } node Node violating the indent rule
149
- * @param {Number } needed Expected indentation character count
150
- * @param {Number } gotten Indentation character count in the actual node/code
149
+ * @param {number } needed Expected indentation character count
150
+ * @param {number } gotten Indentation character count in the actual node/code
151
151
* @param {Object } [loc] Error line and column location
152
152
*/
153
153
function report ( node , needed , gotten , loc ) {
@@ -168,9 +168,9 @@ module.exports = {
168
168
/**
169
169
* Get node indent
170
170
* @param {ASTNode } node Node to examine
171
- * @param {Boolean } [byLastLine] get indent of node's last line
172
- * @param {Boolean } [excludeCommas] skip comma on start of line
173
- * @return {Number } Indent
171
+ * @param {boolean } [byLastLine] get indent of node's last line
172
+ * @param {boolean } [excludeCommas] skip comma on start of line
173
+ * @return {number } Indent
174
174
*/
175
175
function getNodeIndent ( node , byLastLine , excludeCommas ) {
176
176
let src = getText ( context , node , node . loc . start . column + extraColumnStart ) ;
@@ -197,7 +197,7 @@ module.exports = {
197
197
/**
198
198
* Check if the node is the right member of a logical expression
199
199
* @param {ASTNode } node The node to check
200
- * @return {Boolean } true if its the case, false if not
200
+ * @return {boolean } true if its the case, false if not
201
201
*/
202
202
function isRightInLogicalExp ( node ) {
203
203
return (
@@ -212,7 +212,7 @@ module.exports = {
212
212
/**
213
213
* Check if the node is the alternate member of a conditional expression
214
214
* @param {ASTNode } node The node to check
215
- * @return {Boolean } true if its the case, false if not
215
+ * @return {boolean } true if its the case, false if not
216
216
*/
217
217
function isAlternateInConditionalExp ( node ) {
218
218
return (
@@ -227,7 +227,7 @@ module.exports = {
227
227
/**
228
228
* Check if the node is within a DoExpression block but not the first expression (which need to be indented)
229
229
* @param {ASTNode } node The node to check
230
- * @return {Boolean } true if its the case, false if not
230
+ * @return {boolean } true if its the case, false if not
231
231
*/
232
232
function isSecondOrSubsequentExpWithinDoExp ( node ) {
233
233
/*
@@ -298,8 +298,8 @@ module.exports = {
298
298
/**
299
299
* Check indent for nodes list
300
300
* @param {ASTNode } node The node to check
301
- * @param {Number } indent needed indent
302
- * @param {Boolean } [excludeCommas] skip comma on start of line
301
+ * @param {number } indent needed indent
302
+ * @param {boolean } [excludeCommas] skip comma on start of line
303
303
*/
304
304
function checkNodesIndent ( node , indent , excludeCommas ) {
305
305
const nodeIndent = getNodeIndent ( node , false , excludeCommas ) ;
@@ -318,7 +318,7 @@ module.exports = {
318
318
/**
319
319
* Check indent for Literal Node or JSXText Node
320
320
* @param {ASTNode } node The node to check
321
- * @param {Number } indent needed indent
321
+ * @param {number } indent needed indent
322
322
*/
323
323
function checkLiteralNodeIndent ( node , indent ) {
324
324
const value = node . value ;
0 commit comments