Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Explore ESLint's new Languages API#11390
-
BodyInternally, 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. Will Additional Infohttps://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!
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Nope we will not. 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. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
Just to add to that, my understanding of Nzakas's comment ineslint/rfcs#135 (comment) is that we are expected to use |
BetaWas this translation helpful?Give feedback.