beautifier/js-beautify

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

開放

#741 建立於 2015年7月20日

 (12 則留言) (10 個反應) (0 位負責人)JavaScript (1,460 個分叉)batch import
good first issuetype: enhancement

倉庫指標

星標
 (8,342 顆星)
PR 合併指標
 (平均合併 51天 1小時) (30 天內合併 16 個 PR)

描述

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.

貢獻者指南