djgoku / pre-commit-js-beautify

Integration of JS Beautifier with pre-commit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS Beautify for pre-commit

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

Using JS Beautify with pre-commit

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'

About

Integration of JS Beautifier with pre-commit

License:MIT License