0.2.0 • Published 2 years ago
prettier-m v0.2.0
prettier-m - a less opinionated fork of Prettier
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.