Skip to content

Commit

Permalink
fix(check-template-names): stop restricting template names to singl…
Browse files Browse the repository at this point in the history
…e letters; fixes #1352

Single letters in JSDoc blocks still expected for template names in `require-template` rule.
  • Loading branch information
brettz9 committed Jan 25, 2025
1 parent a57f36e commit c283729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/checkTemplateNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default iterateJsdoc(({
type,
value,
} = /** @type {import('jsdoc-type-pratt-parser').NameResult} */ (nde);
if (type === 'JsdocTypeName' && (/^[A-Z]$/).test(value)) {
if (type === 'JsdocTypeName') {
usedNames.add(value);
}
});
Expand Down

0 comments on commit c283729

Please sign in to comment.