beautifier/js-beautify

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

Ouverte

#741 ouverte le 20 juil. 2015

 (12 commentaires) (10 réactions) (0 personne assignée)JavaScript (1 460 forks)batch import
good first issuetype: enhancement

Métriques du dépôt

Stars
 (8 342 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur