Prettier:自动化代码格式化软件
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.
偏前端方向,扩展支持动态语言。
支持语言
- JavaScript
JSX
Flow
TypeScript
JSON
- HTML
Vue
Angular
Ember / Handlebars
- CSS
Less
SCSS
styled-components 💅
styled-jsx
- GraphQL
GraphQL Schemas
- Markdown
CommonMark
GitHub-Flavored Markdown
MDX
- YAML
- Community Plugins
Apex
Elm (via elm-format)
Java
PHP
Ruby
TOML
XML