-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Expected behavior
Not to give off a warning saying "Invalid JSDoc tag (preference). Replace "constructor" JSDoc tag with "class"." when I set
"settings": { "jsdoc": { "tagNamePreference": { "constructor": "constructor" } }
For other tag aliases, like the one proposed in the README "return", it works fine.
Actual behavior
ESLint Config
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"jsdoc"
],
"rules": {
"jsdoc/check-tag-names": "warn"
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"constructor": "constructor"
}
}
},
"ignorePatterns": [
"build",
"dist",
"**/*.d.ts"
]
}ESLint sample
/**
* @constructor
*/
constructor() {}Environment
- Node version: 14.17.1
- ESLint version: 7.32.0
eslint-plugin-jsdocversion: 36.1.0
