ts-standard icon indicating copy to clipboard operation
ts-standard copied to clipboard

add pre-commit-hooks file

Open jaredforth opened this issue 2 years ago • 5 comments

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [ ] Bug fix [X] New feature [ ] Other, please explain:

What changes did you make? (Give an overview)

This PR adds a .pre-commit-hooks.yaml to this repository.

Which issue (if any) does this pull request address?

This allows it to be used like standard. Once merged, a repository with a .pre-commit-hooks.yaml of:

  - repo: https://github.com/standard/ts-standard
    rev: master
    hooks:
      - id: ts-standard

will have a working ts-standard pre-commit hook.

Is there anything you'd like reviewers to focus on?

Confirm that the YAML is formatted correctly and works as expected.

jaredforth avatar Mar 22 '23 15:03 jaredforth

🙌 Thanks for opening this pull request! You're awesome.

welcome[bot] avatar Mar 22 '23 15:03 welcome[bot]

Any plans to merge this? A pre-commit hook would be great. Btw, @jaredforth, shouldn't this also run on .js and .jsx files?

itaiperi avatar Jun 24 '24 08:06 itaiperi