standard / ts-standard

Typescript style guide, linter, and formatter using StandardJS
https://www.npmjs.com/package/ts-standard
MIT License
464 stars 36 forks source link

add pre-commit-hooks file #288

Open jaredforth opened 1 year ago

jaredforth commented 1 year ago

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.

welcome[bot] commented 1 year ago

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

itaiperi commented 3 months ago

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