lukastaegert/eslint-plugin-tree-shaking

Incompatible with @typescript-eslint

darthtrevino opened this issue ยท 3 comments

When using the @typescript-eslint plugin in tandem with this package, there are UnknownNodeType errors

Unknown node type TSInterfaceDeclaration.
If you are using the latest version of this plugin, please consider filing an issue noting this message, the offending statement, your ESLint version, and any active ESLint presets and plugins  tree-shaking/no-side-effects-in-initialization

The issue appears to be here where you are checking the AST for known node types.

It looks like you should either add typescript specific AST nodes to the known node types, or maybe check for a TS prefix, or skip this check altogether and ignore unknown node types.

+1 for typescript support

Sorry for the long wait. This is addressed now by #70

๐ŸŽ‰ This issue has been resolved in version 1.8.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€