beautifier/js-beautify

Add option to run js-beautify as check with fail on change

Open

#741 建立於 2015年7月20日

在 GitHub 查看
 (12 留言) (10 反應) (0 負責人)JavaScript (8,342 star) (1,460 fork)batch import
good first issuetype: enhancement

描述

In order to run js-beautify as a non-intrusive pre-commit hook in git (or any other place where you wish to check that the code is beautified, but not actually change it), it would help immensely to have an option not to actually save the beautified version of a file anywhere, but to just have js-beautify fail with a non-zero exit code and some reasonable message.

貢獻者指南