eslint-plugin-deprecation icon indicating copy to clipboard operation
eslint-plugin-deprecation copied to clipboard

Ignores `@inheritDoc` declarations

Open mydea opened this issue 1 year ago • 1 comments

I noticed this more or less accidentally - if you e.g. have code like this:

interface MyInterface {
  /**
   * This is old!
   * @deprecated Do not use this anymore.
   */
   oldProp?: string;
}

class MyClass implements MyInterface {
  /** @inheritDoc /*
  oldProp?: string;
}

const obj = new MyClass();
obj.oldProp = 'xx'; // does not raise an eslint error :(

Honestly I am not sure how easy it is to fix this, but got bitten by this quite a bit because I expected this to work 😅

mydea avatar Jan 08 '24 08:01 mydea