4 ms·
Agreed. Prettier is de facto standard for new projects. It lets you choose quote character, indentation size, and that basically it.
by paulddraper 7y ago
Agreed. Prettier is de facto standard for new projects.
It lets you choose quote character, indentation size, and that basically it.
- michaelcampbell 7y agoWell... https://prettier.io/docs/en/options.html https://prettier.io/docs/en/options.html
- paulddraper 7y ago> --tab-width > --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/ClangFormatStyleOptions.html http://releases.llvm.org/5.0.0/tools/clang/docs/ClangFormatS...
- onion2k 7y agoclang-format is nice but it's closer to eslint than Prettier. It does a lot more than just enforcing what the code looks like.
- 9935c101ab17a66 7y agoAs michaelcampbell pointed out, prettier has ~20 pretty robust configuration options, and it's not exactly obscure information. If you're already aware of this, what do you feel is missing?
- another-dave 7y agoI thought GP was saying "that's it" as in, "no more discussions about it" not "that's all it can do".