0.2.0 • Published 2 years ago

prettier-m v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago