-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check-template-names
reports on @template names that are not a single capital letter
#1352
Comments
I believe the culprit is this RegEx, https://github.com/gajus/eslint-plugin-jsdoc/blob/main/src/rules/checkTemplateNames.js#L40 Many people name their type variables with a single capital letter, which would match this RegEx. However I find such variables very hard to read and so prefer to use more descriptive type names. Oddly, it looks like descriptive template names are allowed but only in Typescript files: |
…e letters; fixes gajus#1352 Single letters in JSDoc blocks still expected for template names in `require-template` rule.
…e letters; fixes #1352 Single letters in JSDoc blocks still expected for template names in `require-template` rule.
🎉 This issue has been resolved in version 50.6.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This should now be fixed. Note that when using templates within JSDoc types, the |
Holy cow, that was fast! Thanks! |
ESLint sample
Expected behavior
Expected no errors.
Actual behavior
check-template-names
reports:@template Input is not in use
ESLint Config
Environment
eslint-plugin-jsdoc
version: 50.6.2The text was updated successfully, but these errors were encountered: