-
-
Notifications
You must be signed in to change notification settings - Fork 169
Description
Motivation
Context:
We're mainly using JSdoc for typechecking with tsc, we're using eslint-plugin-jsdoc to enforce valid jsdoc
but we have all require- rules disabled as documentation is optional
Example:
We often find ourselves defining class properties as follows (simplified example)
constructor (options) {
...
/** @private @type {string} */
this._id = options.id
...
}
Current behavior
The aforementioned example triggers empty-tags with "@Private should be empty", to satisfy the rule we have to update the example to:
constructor (options) {
...
/**
* @private
* @type {string}
*/
this._id = options.id
...
}
Which becomes bloated for 5-10+ inline definitions
Desired behavior
Don't trigger empty tags when the following content is another tag, possibly only in the context of a single line comment
Alternatives considered
Updating our codebase to multi-line comments (4 lines instead of 1) was rejected by the team, we've decided to disable the rule for now
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.