@@ -107,7 +107,7 @@ function newNodeTypeTester(type: AST_NODE_TYPES): NodeTestObject {
107
107
108
108
/**
109
109
* Skips a chain expression node
110
- * @paramnode The node to test
110
+ * @param node The node to test
111
111
* @returnsA non-chain expression
112
112
* @private
113
113
*/
@@ -119,7 +119,7 @@ function skipChainExpression(node: TSESTree.Node): TSESTree.Node {
119
119
120
120
/**
121
121
* Checks the given node is an expression statement of IIFE.
122
- * @paramnode The node to check.
122
+ * @param node The node to check.
123
123
* @returns `true` if the node is an expression statement of IIFE.
124
124
* @private
125
125
*/
@@ -142,7 +142,7 @@ function isIIFEStatement(node: TSESTree.Node): boolean {
142
142
143
143
/**
144
144
* Checks the given node is a CommonJS require statement
145
- * @paramnode The node to check.
145
+ * @param node The node to check.
146
146
* @returns `true` if the node is a CommonJS require statement.
147
147
* @private
148
148
*/
@@ -169,7 +169,7 @@ function isCJSRequire(node: TSESTree.Node): boolean {
169
169
* Checks whether the given node is a block-like statement.
170
170
* This checks the last token of the node is the closing brace of a block.
171
171
* @param sourceCode The source code to get tokens.
172
- * @paramnode The node to check.
172
+ * @param node The node to check.
173
173
* @returns `true` if the node is a block-like statement.
174
174
* @private
175
175
*/
@@ -209,7 +209,7 @@ function isBlockLikeStatement(
209
209
210
210
/**
211
211
* Check whether the given node is a directive or not.
212
- * @paramnode The node to check.
212
+ * @param node The node to check.
213
213
* @param sourceCode The source code object to get tokens.
214
214
* @returns `true` if the node is a directive.
215
215
*/
@@ -230,7 +230,7 @@ function isDirective(
230
230
231
231
/**
232
232
* Check whether the given node is a part of directive prologue or not.
233
- * @paramnode The node to check.
233
+ * @param node The node to check.
234
234
* @param sourceCode The source code object to get tokens.
235
235
* @returns `true` if the node is a part of directive prologue.
236
236
*/
@@ -259,7 +259,7 @@ function isDirectivePrologue(
259
259
260
260
/**
261
261
* Checks the given node is a CommonJS export statement
262
- * @paramnode The node to check.
262
+ * @param node The node to check.
263
263
* @returns `true` if the node is a CommonJS export statement.
264
264
* @private
265
265
*/
@@ -287,7 +287,7 @@ function isCJSExport(node: TSESTree.Node): boolean {
287
287
288
288
/**
289
289
* Check whether the given node is an expression
290
- * @paramnode The node to check.
290
+ * @param node The node to check.
291
291
* @param sourceCode The source code object to get tokens.
292
292
* @returns `true` if the node is an expression
293
293
*/
@@ -310,7 +310,7 @@ function isExpression(
310
310
* foo()
311
311
* ;[1, 2, 3].forEach(bar)
312
312
* @param sourceCode The source code to get tokens.
313
- * @paramnode The node to get.
313
+ * @param node The node to get.
314
314
* @returns The actual last token.
315
315
* @private
316
316
*/
@@ -364,8 +364,8 @@ function verifyForAny(): void {
364
364
* However, if comments exist between 2 blank lines, it does not remove those
365
365
* blank lines automatically.
366
366
* @param context The rule context to report.
367
- * @param_ Unused. The previous node to check.
368
- * @paramnextNode The next node to check.
367
+ * @param _ Unused. The previous node to check.
368
+ * @param nextNode The next node to check.
369
369
* @param paddingLines The array of token pairs that blank
370
370
* lines exist between the pair.
371
371
*
@@ -409,8 +409,8 @@ function verifyForNever(
409
409
* If the `prevNode` has trailing comments, it inserts a blank line after the
410
410
* trailing comments.
411
411
* @param context The rule context to report.
412
- * @paramprevNode The previous node to check.
413
- * @paramnextNode The next node to check.
412
+ * @param prevNode The previous node to check.
413
+ * @param nextNode The next node to check.
414
414
* @param paddingLines The array of token pairs that blank
415
415
* lines exist between the pair.
416
416
*
@@ -565,6 +565,7 @@ export default util.createRule<Options, MessageIds>({
565
565
extendsBaseRule : true ,
566
566
} ,
567
567
fixable : 'whitespace' ,
568
+ hasSuggestions : true ,
568
569
schema : {
569
570
definitions : {
570
571
paddingType : {
@@ -639,7 +640,7 @@ export default util.createRule<Options, MessageIds>({
639
640
640
641
/**
641
642
* Checks whether the given node matches the given type.
642
- * @paramnode The statement node to check.
643
+ * @param node The statement node to check.
643
644
* @param type The statement type to check.
644
645
* @returns `true` if the statement node matched the type.
645
646
* @private
@@ -714,7 +715,7 @@ export default util.createRule<Options, MessageIds>({
714
715
715
716
/**
716
717
* Verify padding lines between the given node and the previous node.
717
- * @paramnode The node to verify.
718
+ * @param node The node to verify.
718
719
*
719
720
* @private
720
721
*/
@@ -748,7 +749,7 @@ export default util.createRule<Options, MessageIds>({
748
749
/**
749
750
* Verify padding lines between the given node and the previous node.
750
751
* Then process to enter to new scope.
751
- * @paramnode The node to verify.
752
+ * @param node The node to verify.
752
753
*
753
754
* @private
754
755
*/
0 commit comments