Right now you can define an non-exported type like type MyType = string | number, fail to use it, and selene will ignore this. It would be useful if a type going unused would be linted as an unused type, since failing to use the type anywhere is likely a mistake.
Does type scoping work the same way as variables do? If so should be some elbow grease, but fairly straight forward, to add support for this in the scope manager.
Right now you can define an non-exported type like
type MyType = string | number
, fail to use it, and selene will ignore this. It would be useful if a type going unused would be linted as an unused type, since failing to use the type anywhere is likely a mistake.