Skip to content

Commit

Permalink
fix: make name required on @template for non-JSDoc modes
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jun 25, 2023
1 parent 1008047 commit 467441b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/getDefaultTagStructureForMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ const getDefaultTagStructureForMode = (mode) => {
'namepathRole', isJsdoc ? 'text' : 'namepath-referencing',
],

[
'nameRequired', !isJsdoc,
],

// Though defines `namepathRole: 'namepath-defining'` in a sense, it is
// not parseable in the same way for template (e.g., allowing commas),
// so not adding
Expand Down

0 comments on commit 467441b

Please sign in to comment.