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

Introduce asynchronous methods to deno-lint #650

Open
prantlf opened this issue Sep 27, 2022 · 0 comments
Open

Introduce asynchronous methods to deno-lint #650

prantlf opened this issue Sep 27, 2022 · 0 comments

Comments

@prantlf
Copy link
Contributor

prantlf commented Sep 27, 2022

Checking the sources can take a long time. Blocking the whole JavaScript VM should be avoided. The API could be changed to support asynchronous execution and let retain the synchronous methods with the well-known Sync suffix. For example:

function lint(filepath: string, source: string, enableAllRules?: boolean): Promise<string[]>
function lintSync(filepath: string, source: string, enableAllRules?: boolean): string[]

function denolint(dirname: string, configPath: string): Promise<boolean>
function denolintSync(dirname: string, configPath: string): boolean

Would you be interested in such improvement?

@prantlf prantlf changed the title Introduce asynchronous methods Introduce asynchronous methods to deno-lint Sep 27, 2022
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

No branches or pull requests

1 participant