MyGit

prettier/prettier

Fork: 4342 Star: 49342 (更新于 2024-10-30 08:45:05)

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-05 19:13:47 jerryc127/hexo-theme-butterfly

2024-11-05 13:53:42 LiteLoaderQQNT/LiteLoaderQQNT

2024-11-03 02:40:36 chris81605/Degrees-of-Lewdity_Cheat_Extended

2024-11-01 21:55:46 projectdiscovery/nuclei-templates

2024-11-01 19:24:44 NumberSir/DoL-I18n-Build

2024-11-01 12:25:14 midoks/mdserver-web