You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To my understanding, the TSInterfaceDeclaration context should require that interfaces have a JSDoc comment. This works just fine when used on an interface normally, i.e.:
/** * This example interface is great! */interfaceExample{/** * My super test string! */test: string}
However, when prepending the export keyword, the JSDoc comment is not detected and an error message is shown:
/** * This example interface is great! */exportinterfaceExample{/** * My super test string! */test: string}
This example results in eslint: jsdoc/require-jsdoc - Missing JSDoc comment. for the interface declaration.
Am I doing something wrong or is this a bug/oversight? It works fine with export class for example, just not with export interface.
The text was updated successfully, but these errors were encountered:
I configured the
jsdoc/require-jsdoc
rule as follows:To my understanding, the
TSInterfaceDeclaration
context should require that interfaces have a JSDoc comment. This works just fine when used on an interface normally, i.e.:However, when prepending the
export
keyword, the JSDoc comment is not detected and an error message is shown:This example results in
eslint: jsdoc/require-jsdoc - Missing JSDoc comment.
for the interface declaration.Am I doing something wrong or is this a bug/oversight? It works fine with
export class
for example, just not withexport interface
.The text was updated successfully, but these errors were encountered: