Commit 23b4bfa 1 parent 60d4d4b commit 23b4bfa Copy full SHA for 23b4bfa
File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -216,5 +216,10 @@ function quux () {
216
216
* @returns {string[]} The array of nodes.
217
217
*/
218
218
function quux () {}
219
+
220
+ /** Application boot function.
221
+ @async
222
+ @private **/
223
+ function quux () {}
219
224
````
220
225
Original file line number Diff line number Diff line change @@ -42,9 +42,12 @@ export default iterateJsdoc(({
42
42
settings . mode !== 'closure' && emptyIfNotClosure . has ( tagName ) ;
43
43
} ) ;
44
44
45
- for ( const tag of emptyTags ) {
45
+ for ( const [ key , tag ] of emptyTags . entries ( ) ) {
46
46
const content = tag . name || tag . description || tag . type ;
47
- if ( content . trim ( ) ) {
47
+ if ( content . trim ( ) && (
48
+ // Allow for JSDoc-block final asterisks
49
+ key !== emptyTags . length - 1 || ! ( / ^ \s * \* + $ / u) . test ( content )
50
+ ) ) {
48
51
const fix = ( ) => {
49
52
// By time of call in fixer, `tag` will have `line` added
50
53
utils . setTag (
Original file line number Diff line number Diff line change @@ -308,5 +308,13 @@ export default /** @type {import('../index.js').TestCases} */ ({
308
308
function quux () {}
309
309
` ,
310
310
} ,
311
+ {
312
+ code : `
313
+ /** Application boot function.
314
+ @async
315
+ @private **/
316
+ function quux () {}
317
+ ` ,
318
+ } ,
311
319
] ,
312
320
} ) ;
You can’t perform that action at this time.
0 commit comments