'Javascript - Which eslint jsdoc rule/setting to force either @private, @public or @protected

Is there any eslint jsdoc rule/setting to force either @private, @public or @protected? With the module eslint-plugin-jsdoc there is no rule/setting to force it.

Following example should throw a eslint jsdoc error:

/**
 * @param {string} foo
 */
function quux (foo) {

}

This jsDoc should not accepted because @private, @public or @protected are not available.

Maybe you can help me. Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source