Skip to content

solarmonkey/commitlint-pre-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit hook for commitlint

A pre-commit hook for commitlint.

It is agnostic about rulesets, in the sense that it doesn't start out with @commitlint/config-conventional as a base per se. What you need to do besides adding this to your .pre-commit-config.yaml like so:

  - repo: https://github.com/solarmonkey/commitlint-pre-commit-hook
    rev: main
    hooks:
        - id: commitlint
          stages: [commit-msg]

is adding a commitlint.config.js file to the root of your repo. See the reference configuration for how that could look.

NOTE: if you reference any packages in that config, eg. for extends, parserPreset or formatter, you will have to add it as additional dependency to you .pre-commit-config.yaml:

    additional_dependencies: ['@commitlint/config-conventional']

About

A pre-commit hook for commitlint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published