Skip to content
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

Add inter-file rules #454

Open
ebebbington opened this issue Oct 27, 2020 · 2 comments
Open

Add inter-file rules #454

ebebbington opened this issue Oct 27, 2020 · 2 comments
Labels
design limitation Currently this is a limitation of the design feature a new feature requires type checking Implementation of this rule requires access to type checking information from TSC

Comments

@ebebbington
Copy link

ebebbington commented Oct 27, 2020

This feature requests stems from the request of a lint rule to not allow (or i guess allow if // ... allow-... is used) async methods that aren't awaited.

Related issues:
#303
#270
#43

But these rely on inter-file rules, which means the checking and grabbing of other files, so we can check if a method is async or not, and only then can we determine if a promise is unhandled.

Though personally, i would have no clue how this would be implemented

@RDambrosio016
Copy link

This is impossible without type checking.

@ebebbington
Copy link
Author

I should note then, it relies on the roadmap for swc to enable type checking in rust

@bartlomieju bartlomieju added the feature a new feature label Nov 1, 2020
@bartlomieju bartlomieju added design limitation Currently this is a limitation of the design requires type checking Implementation of this rule requires access to type checking information from TSC labels Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design limitation Currently this is a limitation of the design feature a new feature requires type checking Implementation of this rule requires access to type checking information from TSC
Projects
None yet
Development

No branches or pull requests

3 participants