Relative Content

Tag Archive for typescripteslintabstract-syntax-tree

Custom typescript-eslintrule: How to get nodes for type and interfaces exports

Currently using typescript-eslint, when defining a custom rule, I capture named and default declarations; however, those nodes do not seem to capture instances when I export an interface or export a type via Typescript. Is there any mechanism with typescript eslint to capture the instances when I am exporting either an interface or type? Likewise, the goal of the eslint rule is to count the number of total exports and enforce that it contains at most 1.