standard / standard-engine

:fire_engine: The guts of `standard` modularized for reuse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add lintTextSync method?

tunnckoCore opened this issue · comments

It's not cool that .lintText requires a callback and ESLint's method is synchronous, but we here force cb for no reason. Or okey, at least add .lintTextSync method?

There is existing problem for https://github.com/dtinth/atom-prettier-standard-formatter, which is based on https://github.com/dtinth/prettier-standard-formatter, which uses promises, exactly because the standards lintText method.

ping @dtinth, stay tuned :)

Fair point. There's no need for this to be async. PR here: #157

cool, thanks

FYI, this PR affects the lintText method: #159