-
-
Notifications
You must be signed in to change notification settings - Fork 169
Description
Motivation
Hey everyone, been digging around the issues with regards to rules that relates to @typedef, but I don't see one so far or I might have missed it. If there is an issue already resolved or closed, would be happy to be linked to that. For now, I would like to open a feature request for the following.
At the moment, there's no way to check if an imported @typedef is no longer in use from existing rules in the plugin that's similar to an unused declared variable or unused library/package. ESLint does not produces no warnings or errors for @typedefs. Thus it up to the developer to manually spot and remove code that's no longer in use.
Current behavior
Currently, there are no warnings/errors for unused @typedefs from ESLint.
Desired behavior
With this new feature, it'll produce a warning or error for unused @typedefs from ESLint.
Alternatives considered
Creating a custom rule (no-unused-typedefs) specifically for @typedef