standard / standard-engine

:fire_engine: The guts of `standard` modularized for reuse
MIT License
145 stars 39 forks source link

Move APIs to Promise #249

Closed theoludwig closed 3 years ago

theoludwig commented 3 years ago

Instead of having sync or callback versions of our APIs, we could migrate them to Promises. By doing this, it makes #234 simpler to solve, as the "new" ESLint class API use Promises.

We will remove Linter.lintTextSync method.

Note: It is a BREAKING CHANGE

voxpelli commented 3 years ago

An extra, probably needless, clarification: We will probably mainly do this through async / await rather than creating Promises directly ourselves 👍