JavaScript
· TypeScript
· Flow
· JSX
· JSON
CSS
· SCSS
· Less
HTML
· Vue
· Angular
GraphQL
· Markdown
· YAML
Your favorite language?
An unofficial fork of the Prettier code formatter, intended to provide some additional options to help more customize prettier options.
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne()
);
Quick CLI usage:
prettier <options> <file(s)>
--array-bracket-spacing
(arrayBracketSpacing: true
): Put spaces between array brackets (similar to the corresponding eslint option). Status: experimental, with limited testing.--break-before-else
(breakBeforeElse: true
): Always add a line break before else.--break-long-method-chains
(breakLongMethodChains: true
): Break method chains with more than 3 method calls, like Prettier 1.x.--no-indent-chains
(indentChains: false
): Disable indents at the start of chained calls.
See CONTRIBUTING.md.