3 ms·
Well... https://prettier.io/docs/en/options.html https://prettier.io/docs/en/options.html
by michaelcampbell 7y ago
Well... 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.