eslint-plugin-export-scope icon indicating copy to clipboard operation
eslint-plugin-export-scope copied to clipboard

@scope doesn't affect abstract class

Open Granshmeyr opened this issue 6 months ago • 0 comments

Given this code:

/** @scope . */
export abstract class RottenApple {
  public abstract foobar: string;
}

/** @scope . */
export class SadBanana {
  public foobar = "foobar";
}

/** @scope * */
export class CleanOrange {
  public foobar = "foobar";
}

RottenApple is auto-completed and importable from outside the defined scope. SadBanana is not importable. CleanOrange is importable.

The following code change results in RottenApple becoming not importable (desired behavior):

/** @scope . */
export { RottenApple };

abstract class RottenApple {
  public abstract foobar: string;
}

Granshmeyr avatar Apr 11 '25 23:04 Granshmeyr