Open kitsonk opened 3 years ago
This is not possible without type information.
How so? swc bundling tracks symbols across modules without type information, so the swc parser is aware of what symbols are used where and what JSDoc is associated with them.
The linter operates on single files though, not on an entire graph. We don't have info about any symbols outside of the file being linted.
At the moment, and that is different than requiring type information.
FYI: https://github.com/denoland/deno/issues/7982#issuecomment-909906237
Annex B will be annotated as
@deprecated
in TypeScript 4.5 and later, it will may be possible to prevent it from being used. microsoft/TypeScript#43709
This would be an amazing addition to the linter. Is this now possible?
deno_lint should be able to parse the JSDoc for symbols and identify ones that have the
@deprecated
flag and issue a diagnostic if the@deprecated
APIs are being used.