Skip to content

Commit c283729

Browse files
committed
fix(check-template-names): stop restricting template names to single letters; fixes #1352
Single letters in JSDoc blocks still expected for template names in `require-template` rule.
1 parent a57f36e commit c283729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/checkTemplateNames.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default iterateJsdoc(({
3737
type,
3838
value,
3939
} = /** @type {import('jsdoc-type-pratt-parser').NameResult} */ (nde);
40-
if (type === 'JsdocTypeName' && (/^[A-Z]$/).test(value)) {
40+
if (type === 'JsdocTypeName') {
4141
usedNames.add(value);
4242
}
4343
});

0 commit comments

Comments
 (0)