Skip to content

sobansky/prettier-m

 
 

Repository files navigation

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?

Github Actions Build Status Github Actions Build Status Github Actions Build Status Codecov Coverage Status Blazing Fast
npm version

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.

About

Prettier More is an less opinionated code formatter.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.2%
  • TypeScript 5.4%
  • CSS 3.7%
  • HTML 3.3%
  • SCSS 1.5%
  • Less 1.2%
  • Other 1.7%