-
-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
Description
Hi there!
I have the following eslint config:
extends: [
'plugin:jsdoc/recommended-typescript-error'
]
And the following code:
export class A {
/**
* @param {string} paramA
*/
public methodA(paramA: string) {
// ...
}
}
no-types
is warning me not to use types in my JSdoc (as expected):
If however, I don't declare a class
, but an interface
, like so:
export interface B {
/**
* @param {string} paramA
*/
methodB(paramB: string): void
}
The rule no longer reports a violation.
Is this expected behavior? I would expect it to report a violation on interfaces as well.
Thanks a lot in advance!
Environment
- Node version: 18
- ESLint version 8.57.0
eslint-plugin-jsdoc
version: 48.2.13