Licence
MIT
Version
0.2.0
Deps
0
Size
15.0 MB
Vulns
0
Weekly
0
prettier-m - a less opinionated fork of Prettier
JavaScript
· TypeScript
· Flow
· JSX
· JSON
CSS
· SCSS
· Less
HTML
· Vue
· Angular
GraphQL
· Markdown
· YAML
Your favorite language?
Intro
An unofficial fork of the Prettier code formatter, intended to provide some additional options to help more customize prettier options.
Input
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
Output
foo(
reallyLongArg(),
omgSoManyParameters(),
IShouldRefactorThis(),
isThereSeriouslyAnotherOne()
);
CLI Usage
Quick CLI usage:
prettier <options> <file(s)>
Additional prettier-m options
--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.
Contributing
See CONTRIBUTING.md.