File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -77,21 +77,21 @@ export default iterateJsdoc(({
77
77
}
78
78
} else {
79
79
if ( mustHaveEither && ! hasEither ) {
80
- report ( `Tag @${ tag . tag } must have either a type or namepath` ) ;
80
+ report ( `Tag @${ tag . tag } must have either a type or namepath` , null , tag ) ;
81
81
82
82
return ;
83
83
}
84
84
85
85
if ( hasType ) {
86
86
validTypeParsing ( tag . type ) ;
87
87
} else if ( mustHaveType ) {
88
- report ( `Tag @${ tag . tag } must have a type` ) ;
88
+ report ( `Tag @${ tag . tag } must have a type` , null , tag ) ;
89
89
}
90
90
91
91
if ( hasNamePath ) {
92
92
validTypeParsing ( tag . name , tag . tag ) ;
93
93
} else if ( mustHaveNamepath ) {
94
- report ( `Tag @${ tag . tag } must have a namepath` ) ;
94
+ report ( `Tag @${ tag . tag } must have a namepath` , null , tag ) ;
95
95
}
96
96
}
97
97
} ) ;
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export default {
161
161
}
162
162
` ,
163
163
errors : [ {
164
- line : 2 ,
164
+ line : 3 ,
165
165
message : 'Tag @callback must have a namepath'
166
166
} ] ,
167
167
settings : {
@@ -219,7 +219,7 @@ export default {
219
219
` ,
220
220
errors : [
221
221
{
222
- line : 2 ,
222
+ line : 3 ,
223
223
message : 'Tag @extends must have either a type or namepath'
224
224
}
225
225
]
@@ -233,7 +233,7 @@ export default {
233
233
` ,
234
234
errors : [
235
235
{
236
- line : 2 ,
236
+ line : 3 ,
237
237
message : 'Tag @type must have a type'
238
238
}
239
239
]
You can’t perform that action at this time.
0 commit comments