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

allowLocal should support export statements

Open cartant opened this issue 5 years ago • 0 comments

The allowLocal option in no-const-enum and prefer-interface should support export statements. For example:

type Person = { name: string; };
export { Person };

Also, with prefer-interface, allowLocal should deem indirectly exported types to be non-local, as the whole point of the rule is to avoid inlining.

cartant avatar Oct 26 '20 22:10 cartant