Skip to content

bakkerthehacker/pre-commit-js-beautify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit js-beautify

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: git://github.com/scottybarr/pre-commit-js-beautify
        sha: ''  # Use the sha you want to point at
        hooks:
        -   id: js-beautify
        args: [
          '--replace',
          '--end-with-newline',
          '--indent-size=2',
          '--indent-char= ',
          '--max-preserve-newlines=2'
        ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published