Tools like prettier have gone a long way to standardizing formatting in JS.
It lets you choose quote character, indentation size, and that basically it.
> --single-quote
I mentioned.
> --use-tabs
Relates to the "indentation width."
> --print-width
Yes, that's another big user-configurable parameter.
> --trailing-comma
This exists only for JS version compatibility.
> --no-semi
> --no-bracket-spacing
> --arrow-parens
Yeah, those are there too.
---
But that's really it for JavaScript formatting options. Like I said, this produces very standardized code in the ecosystem.
Compare to clang-format (which suports JavaScript): http://releases.llvm.org/5.0.0/tools/clang/docs/ClangFormatS...