Prettier 是一个“有主见”的代码格式化工具,能够使输出代码保持风格一致。支持列表:
本次更新内容如下:
- API: Fix
prettier.getSupportInfo()
reporting babel parser for older versions of Prettier. (#5826 by @azz)In version
1.16.0
of Prettier, thebabylon
parser was renamed tobabel
. Unfortunately this lead to a minor breaking change:prettier.getSupportInfo('1.15.0')
would report that it supportedbabel
, notbabylon
, which breaks text-editor integrations. This has now been fixed.
转自 https://www.oschina.net/news/104192/prettier-1-16-4-released