File tree Expand file tree Collapse file tree 2 files changed +84
-14
lines changed Expand file tree Collapse file tree 2 files changed +84
-14
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,31 @@ The following patterns are considered problems:
338
338
* @param {Number} foo
339
339
*/
340
340
function quux (foo ) {
341
+ // with spaces
342
+ }
343
+ // Message: Expected JSDoc block to be aligned.
344
+
345
+ /**
346
+ * @param {Number} foo
347
+ */
348
+ function quux (foo ) {
349
+ // with tabs
350
+ }
351
+ // Message: Expected JSDoc block to be aligned.
341
352
353
+ /**
354
+ * @param {Number} foo
355
+ */
356
+ function quux (foo ) {
357
+ // with spaces
358
+ }
359
+ // Message: Expected JSDoc block to be aligned.
360
+
361
+ /**
362
+ * @param {Number} foo
363
+ */
364
+ function quux (foo ) {
365
+ // with spaces
342
366
}
343
367
// Message: Expected JSDoc block to be aligned.
344
368
Original file line number Diff line number Diff line change @@ -24,15 +24,14 @@ export default {
24
24
}
25
25
` ,
26
26
} ,
27
- /* eslint-disable no-tabs */
28
27
{
29
28
code : `
30
- /**
31
- * @param {Number} foo
32
- */
33
- function quux (foo) {
34
- // with tabs
35
- }
29
+ \t\t\t\t /**
30
+ \t\t\t\t * @param {Number} foo
31
+ \t\t\t\t */
32
+ \t\t\t\tfunction quux (foo) {
33
+ \t\t\t\t\t // with tabs
34
+ \t\t\t\t }
36
35
` ,
37
36
errors : [
38
37
{
@@ -41,15 +40,62 @@ export default {
41
40
} ,
42
41
] ,
43
42
output : `
44
- /**
45
- * @param {Number} foo
46
- */
47
- function quux (foo) {
48
- // with tabs
49
- }
43
+ \t\t\t\t/**
44
+ \t\t\t\t * @param {Number} foo
45
+ \t\t\t\t */
46
+ \t\t\t\tfunction quux (foo) {
47
+ \t\t\t\t\t// with tabs
48
+ \t\t\t\t}
49
+ ` ,
50
+ } ,
51
+ {
52
+ code : `
53
+ /**
54
+ * @param {Number} foo
55
+ */
56
+ function quux (foo) {
57
+ // with spaces
58
+ }
59
+ ` ,
60
+ errors : [
61
+ {
62
+ line : 3 ,
63
+ message : 'Expected JSDoc block to be aligned.' ,
64
+ } ,
65
+ ] ,
66
+ output : `
67
+ /**
68
+ * @param {Number} foo
69
+ */
70
+ function quux (foo) {
71
+ // with spaces
72
+ }
73
+ ` ,
74
+ } ,
75
+ {
76
+ code : `
77
+ /**
78
+ * @param {Number} foo
79
+ */
80
+ function quux (foo) {
81
+ // with spaces
82
+ }
83
+ ` ,
84
+ errors : [
85
+ {
86
+ line : 3 ,
87
+ message : 'Expected JSDoc block to be aligned.' ,
88
+ } ,
89
+ ] ,
90
+ output : `
91
+ /**
92
+ * @param {Number} foo
93
+ */
94
+ function quux (foo) {
95
+ // with spaces
96
+ }
50
97
` ,
51
98
} ,
52
- /* eslint-enable no-tabs */
53
99
{
54
100
code : `
55
101
/**
You can’t perform that action at this time.
0 commit comments