Open mikeharder opened 1 year ago
Recent spec where this would have helped:
When reporting diagnostic for the unused stuff, please make sure DiagnosticTag .Unnecessary
tag is added.
https://vscode-api.js.org/enums/vscode.DiagnosticTag.html#Unnecessary
I have seen many typespec files which import packages they don't actually need, like Azure/azure-rest-api-specs-pr#12933 which was importing
@azure-tools/typespec-providerhub-controller
.Could we add a linter rule or compiler warnings for imports that are not reference in the typespec (or imports that have no typespec exports)?