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 (1,460 fork)batch import
good first issuetype: enhancement

仓库指标

Star
 (8,342 star)
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.

贡献者指南