eslint-plugin-export-scope
eslint-plugin-export-scope copied to clipboard
@scope doesn't affect abstract class
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;
}