Beautifier Pipeline: Multiple/cascading beautifiers per language
Glavin001 opened this issue ยท 5 comments
Glavin001 commented
See the original issue for more details.
- Options values will determine the default beautifiers chosen
- This allows configuration files, such as
.jsbeautifyrc
to contain a fielddefault_beautifiers
and therefore be automatically configurable while switching different projects. - See Glavin001/atom-beautify#1041
- This allows configuration files, such as
-
default_beautifiers
will accept an array (of course) and process the text sequentially.
eivindml commented
Any progress on this? Been looking for a feature like this for quite some time. :)
Glavin001 commented
No progress yet, however I just finished my final exams for University yesterday! So now I have a little more time to get us back on track
Glavin001 commented
Going to use option key beautifiers
instead of default_beautifiers
.
Glavin001 commented
Published to v0.5.0!
See tests: https://github.com/Unibeautify/unibeautify/blob/master/test/beautifier/pipeline.ts
Glavin001 commented
Example .unibeautifyrc.json
file:
{
"JavaScript": {
"beautifiers": ["Pretty Diff", "JS-Beautify", "Prettier"]
}
}