denoland / deno_lint

Blazing fast linter for JavaScript and TypeScript written in Rust
https://lint.deno.land/
MIT License
1.51k stars 163 forks source link

feat: add no-sync-fn-in-async-fn rule #1178

Closed sigmaSd closed 11 months ago

sigmaSd commented 11 months ago

fix https://github.com/denoland/deno_lint/issues/1177

CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.

sigmaSd commented 11 months ago

image

sigmaSd commented 11 months ago

I add a suggestion for the async variant

image

sigmaSd commented 11 months ago

seems like there is a lot of code like this https://github.com/search?q=%2Fasync.*%5Cn.*Deno.*Sync%2F+language%3ATypeScript&type=code

sigmaSd commented 11 months ago

couple of notes