You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is no way to implement the features we have on esformatter on top of lebab.. they use https://github.com/benjamn/recast internally - which have it's own printer/formatter...
the thing about the "printer" approach is that it receives an AST as input and it decides how to convert that AST into code... so if we "reprint" the whole program, it will be a "destructive" operation (it will remove optional tokens like "()" and all whitespaces/linebreaks)
recast/lebab could reuse esformatter tho... (the same way as jsfmt does)
Lebab is another tool that does JS autofixing, but focussed on fixers like let and const
https://github.com/mohebifar/lebab
The text was updated successfully, but these errors were encountered: