We use this style a lot instead of classes, primarily with Vue components but also for other purposes. However, it happens quite often that someone adds a new field to the return value but later it becomes unused. It would be awesome if knip could detect such unused fields of object literals in a return statement.
Consider the following setup function:
We use this style a lot instead of classes, primarily with Vue components but also for other purposes. However, it happens quite often that someone adds a new field to the return value but later it becomes unused. It would be awesome if knip could detect such unused fields of object literals in a return statement.