Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Explore ESLint's new Languages API#11390

SukkaW started this conversation inTechnical Discussions
Jul 10, 2025· 1 comments· 1 reply
Discussion options

Body

Internally,typescript-eslint converts TypeScript AST into ESTree-like AST for ESLint.

With ESLint 9.6.0+ introducing the new ESLint Languages API, it is now possible to register a new language with ESLint, which ESLint will then consume the custom AST structure and make it available for the custom rules.

Willtypescript-eslint follow this route in the future? Will using ESLint's Languages API eliminate the overhead of the AST conversion?

Additional Info

https://eslint.org/docs/latest/extend/languages

Before you submit your discussion, please confirm the following. If any of these required steps are not taken, we may not be able to review your RFC. Help us to help you!

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Nope we will not.
We don't want to be a new language with a new AST because TS is a superset of JS.

If we don't produce an ESTree AST then all the existing core lint rules will not work with TS code and we would have to rewrite them all from scratch. Which would obviously be a massive maintenance cost.

Ultimately the cost of the conversion is small and barely a blip in the grand scale of an entire lint run. Doubly true if you do type-aware linting.

You must be logged in to vote
1 reply
@kirkwaiblinger
Comment options

Just to add to that, my understanding of Nzakas's comment ineslint/rfcs#135 (comment) is that we are expected to use"js/js"

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
3 participants
@SukkaW@bradzacher@kirkwaiblinger

[8]ページ先頭

©2009-2025 Movatter.jp