-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSDoc @deprecated
diagnostics
#623
Comments
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: denoland/deno#7982 (comment)
|
This would be an amazing addition to the linter. Is this now possible? |
The import/no-deprecated rule mentioned in https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md is very useful. However, it does bring additional complexity as it's difficult to effectively determine deprecation within a single file. Nevertheless, this functionality is important - if we could associate one layer of external dependencies with a single file, we could perform checks similar to import/no-deprecated. While this would inevitably increase checking time, it should be worth the trade-off. |
Perhaps it would be better to support this with |
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.The text was updated successfully, but these errors were encountered: