This repository was archived by the owner on Aug 31, 2023. It is now read-only.
Support for type information in lint rules? #3965
JoshuaKGoldberg
started this conversation in
Suggestions
Replies: 1 comment
-
Yes, this is something we plan to explore in the following months as we expand our analysis infrastructure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Many of the rules from typescript-eslint use TypeScript type checking APIs to make inferences on code that wouldn't have been possible from just syntax alone [Linting with Type Information docs). Rules that use type information are generally slower than pure-AST-based ones for having to query the type checker, but can be quite powerful as a result. For example,
@typescript-eslint/await-thenable
detectsawait
s on values that are not Thenable.Are there any plans to try to make that classification of rules available in Rome? Say, calling Rust-to-JS to ask the TypeScript type checker for node information?
Beta Was this translation helpful? Give feedback.
All reactions