首  页  |   网址分类 地区分类 实用网址 最新网址 推荐网址 快审网址 随机网址
当前位置: 首页 > 网址分类 > 网络科技 > 应用工具 > Prettier

Prettier

网站信息更新日期:2026-11-10
网站名称:Prettier 网站语言:英语
网站域名:prettier.io网站直达
网站分类: 网络科技 > 应用工具所属地区:国外
网站简介

Prettier is an opinionated code formatter that supports JavaScript, TypeScript, JSX, CSS, SCSS, Less, HTML, JSON, Markdown, YAML, GraphQL and a growing list of languages through plugins. Instead of tweaking dozens of style rules, a team installs it once and lets it parse source files into an abstract syntax tree and reprint them in a single canonical layout.

The official site documents installation, the command line interface, configuration through .prettierrc and .prettierignore, editor integrations for VS Code, JetBrains and Vim, pre-commit hooks, and the playground where you can paste code and immediately see how each option changes the output. A rationale page explains why the option set is deliberately small.

It suits frontend and backend teams that want consistent diffs in pull requests, open-source maintainers who receive patches from many contributors, educators teaching a uniform style, and continuous integration pipelines that need a fast, deterministic check before code is merged.

Compared with configurable linters it focuses purely on layout rather than code quality, so the two are commonly used together; compared with editor-native formatters it behaves identically on every machine and in every CI job, though its fixed choices can be frustrating for teams with strong house conventions.

Add a format script and a pre-commit hook early so formatting happens before review, commit the configuration file so every contributor shares it, and run Prettier once across the whole repository in a dedicated commit to avoid mixing formatting noise with functional changes.

本页地址:https://www.torv.cn/1815.html收录日期:2026-11-10
特别提示:
本网页并非Prettier官网,页面内容是由酷站导航编录于互联网,只作展示之用;酷站导航与Prettier无任何关系;如果有与Prettier相关业务事宜,请访问其网站获取联系方式。
最新网站
推荐网站

407106872@qq.com

黔ICP备2026000007号-3

Copyright © 2026 Torv.cn All Rights Reserved.