A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/eslint/eslint/issues/15475 below:

allow asynchronous parser · Issue #15475 · eslint/eslint · GitHub

ESLint version

V8.0.0

What problem do you want to solve?

Eslint spent most of its time in parsing files. A javascript parser written in go or rust can potentially improve the the performance of eslint. However this is not possible now, because a parser written in go or rust can only be accessed by an asynchrous function, and eslint only accepts a synchronous parse function.

These external parsers can be accessed asynchronously by 1. Webassembly 2. Communicating to a child process using stdin/stdout or networking.

An example of parser written in rust is swc: https://docs.rs/swc_ecma_parser/latest/swc_ecma_parser/ .

What do you think is the correct solution?

Accept a parser with an asynchronous parse function.

Participation Additional comments

No response

arthurdandrea, coderaiser, jimmywarting, ild0tt0re, benmccann and 11 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4