prettier

Prettier is an opinionated code formatter.

Github星跟踪图

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.

概览

名称与所有者prettier/prettier
主编程语言JavaScript
编程语言JavaScript (语言数: 10)
平台
许可证MIT License
发布数152
最新版本名称3.2.5 (发布于 2024-02-04 14:35:44)
第一版名称0.0.1 (发布于 )
创建于2016-11-29 17:13:37
推送于2024-05-13 14:10:58
最后一次提交
星数48.4k
关注者数421
派生数4.1k
提交数9.3k
已启用问题?
问题数6514
打开的问题数1100
拉请求数7979
打开的拉请求数247
关闭的拉请求数1243
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?
去到顶部