Prettier 是一个“有主见”的代码格式化工具,能够使输出代码保持风格一致。支持列表:
JavaScript,包括 ES2017
JSX
Flow
TypeScript
CSS、LESS 和 SCSS
JSON
GraphQL
Prettier 1.6.0 更新亮点:
Configuration
Implement cosmiconfig for workspace configuration
Support .prettierignore files
JSX
Improve JSX Formatting
Inline single expressions in JSX
Ensure there is a line break after leading JSX white space
软件详情:https://github.com/prettier/prettier/releases
下载地址:https://github.com/prettier/prettier/archive/1.6.0.zip
来自:开源中国社区

