JS Beautify for pre-commit>=2.7.1.
For pre-commit: see https://github.com/pre-commit/pre-commit
For JS Beautify: see https://github.com/beautify-web/js-beautify
Add this to your .pre-commit-config.yaml
:
- repo: https://github.com/aufdenpunkt/pre-commit-js-beautify
rev: 1.13.0 # represents the used version of JS Beautify as well
hooks:
- id: js-beautify
args: [] # list of arguments like '--editorconfig', '--end-with-newline', '--wrap-attributes=auto', '--wrap-line-length=120'