3.2.5 • Published 3 months ago

prettier-elastic v3.2.5

Weekly downloads
21
License
MIT
Repository
github
Last release
3 months ago

prettier-elastic

Fork of a Prettier tweaked to provide alternative formatting for var, let and const declarations and other improvements

Installation

$ npm install prettier-elastic

Usage

var prettier = require("prettier-elastic");

// Same as with original prettier
prettier.format(src, options);

Examples

Test

$ npm test

Prettier Banner

Intro

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

Input

foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());

Output

foo(
  reallyLongArg(),
  omgSoManyParameters(),
  IShouldRefactorThis(),
  isThereSeriouslyAnotherOne(),
);

Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!


Documentation

Install · Options · CLI · API

Playground


Badge

Show the world you're using Prettiercode style: prettier

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Contributing

See CONTRIBUTING.md.

3.2.2

3 months ago

3.2.1

3 months ago

3.2.0

3 months ago

3.2.5

3 months ago

3.2.4

3 months ago

3.2.3

3 months ago

3.1.1

3 months ago

3.1.0

3 months ago

3.0.3

3 months ago

3.0.2

3 months ago

3.0.1

3 months ago

3.0.0

3 months ago

2.8.1

4 months ago

2.8.0

4 months ago

2.7.0

4 months ago

2.7.1

4 months ago

2.8.3

4 months ago

2.8.2

4 months ago

2.8.5

4 months ago

2.8.4

4 months ago

2.8.7

4 months ago

2.8.6

4 months ago

2.8.8

4 months ago

2.6.2

4 months ago

2.6.1

4 months ago

2.6.0

4 months ago

2.4.1

5 months ago

2.5.0

5 months ago

2.5.1

5 months ago

2.4.0

5 months ago

2.3.0

5 months ago

2.3.2

5 months ago

2.3.1

5 months ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.5

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.19.1

4 years ago

1.19.0

4 years ago

1.18.2

5 years ago

1.18.1

5 years ago

1.18.0

5 years ago

1.17.1

5 years ago

1.17.0

5 years ago

1.16.4

5 years ago

1.16.3

5 years ago

1.16.2

5 years ago

1.16.1

5 years ago

1.16.0

5 years ago

1.15.3

5 years ago

1.15.2

5 years ago

1.15.1

5 years ago

1.15.0

5 years ago

1.14.3

5 years ago

1.14.2

6 years ago

1.14.1

6 years ago

1.14.0

6 years ago

1.13.7

6 years ago

1.13.6

6 years ago

1.13.5

6 years ago

1.13.4

6 years ago

1.13.3

6 years ago

1.13.2

6 years ago

1.13.1

6 years ago

1.13.0

6 years ago

1.12.1

6 years ago

1.12.0

6 years ago