MyGit

prettier/prettier

Fork: 4364 Star: 49468 (更新于 2024-11-21 20:46:02)

license: MIT

Language: JavaScript .

Prettier is an opinionated code formatter.

最后发布版本: 3.3.3 ( 2024-07-13 20:27:31)

官方网址 GitHub网址

Prettier Banner

Opinionated Code Formatter

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 weekly downloads from npm code style: prettier Follow Prettier on Twitter

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.

最近版本更新:(数据更新于 2024-08-23 11:14:24)

2024-07-13 20:27:31 3.3.3

2024-06-11 14:08:14 3.3.2

2024-06-05 17:11:57 3.3.1

2024-06-02 01:04:14 3.3.0

2024-02-04 13:38:35 3.2.5

2024-01-17 18:25:15 3.2.4

2024-01-17 11:30:50 3.2.3

2024-01-14 11:08:25 3.2.2

2024-01-13 03:17:29 3.2.1

2024-01-13 00:25:18 3.2.0

主题(topics):

angular, ast, css, flow, formatter, graphql, html, javascript, json, jsx, less, markdown, prettier, printer, scss, typescript, vue, yaml

prettier/prettier同语言 JavaScript最近更新仓库

2024-11-21 22:46:48 MHSanaei/3x-ui

2024-11-21 07:00:59 nodejs/node

2024-11-21 00:49:46 FortAwesome/Font-Awesome

2024-11-18 14:26:02 projectdiscovery/nuclei-templates

2024-11-17 14:42:23 koodo-reader/koodo-reader

2024-11-16 02:31:01 bia-pain-bache/BPB-Worker-Panel