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

feat: lint blocking calls #180

Merged
merged 1 commit into from
Dec 17, 2023
Merged

feat: lint blocking calls #180

merged 1 commit into from
Dec 17, 2023

Conversation

sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Sep 15, 2023

No description provided.

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Sep 15, 2023

Not sure what you think about this but I add this lint a while back and the idea come from dax.

It caught mostly tests which is not that important, but it caught one usage inside cat command, fixing this lint would allow to programmatically stop introducing such things in the codebase again.

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Sep 15, 2023

Btw on another note I just noticed that the lint name is not in harmony with the others.

seems like it should be sync-fn-inside-async-fn like the other rule that describe the issue not the solution.

Copy link
Owner

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't really matter for the tests, but this is good for the library itself. Thanks!

@dsherret dsherret merged commit e6534ae into dsherret:main Dec 17, 2023
3 checks passed
@sigmaSd
Copy link
Contributor Author

sigmaSd commented Dec 17, 2023

Thanks @dsherret maybe if you have time , you can checkout denoland/deno_lint#1199 do you think that the idea there is correct ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants