Prettier enforces a consistent code
style (i.e. code formatting that won’t affect the AST) across your entire codebase because it disregards the original styling
* by parsing it away and re-printing the parsed AST with its own rules that take the maximum line length into account, wrapping code when necessary.
If you want to change selection, open document below and click on "Move attachment"
What is Prettier? · Prettiers too long. Prettier is going to do the painstaking work of reprinting it like that for you: foo( reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne(), ); <span>Prettier enforces a consistent code style (i.e. code formatting that won’t affect the AST) across your entire codebase because it disregards the original styling* by parsing it away and re-printing the parsed AST with its own rules that take the maximum line length into account, wrapping code when necessary. If you want to learn more, these two conference talks are great introductions: Footnotes * Well actually, some original styling is preserved when practical—see empty lines and multi-lin Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details