https://github.com/sameeramin/pre-commit-hooks
`pre-commit` hooks for use with the `pre-commit` framework.
https://github.com/sameeramin/pre-commit-hooks
collaborate communityexchange github
Last synced: about 1 month ago
JSON representation
`pre-commit` hooks for use with the `pre-commit` framework.
- Host: GitHub
- URL: https://github.com/sameeramin/pre-commit-hooks
- Owner: sameeramin
- License: mit
- Created: 2023-07-11T08:35:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T06:13:09.000Z (over 2 years ago)
- Last Synced: 2025-03-02T07:29:16.509Z (over 1 year ago)
- Topics: collaborate, communityexchange, github
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# `pre-commit` Hooks
`pre-commit` hooks to use with the `pre-commit` framework. This repository contains some custom hooks which are not available in the `pre-commit` repository.
## Setup
To use these hooks, you need to install the `pre-commit` framework. See [here](https://pre-commit.com/#install) for instructions. Then, add the hooks you want to use to your `.pre-commit-config.yaml` file. See [Adding pre-commit plugins to your project](https://pre-commit.com/#3-add-a-pre-commit-configuration) for instructions.
## Available hooks
### console.log detector
This hook detects `console.log` statements in your code. If it finds any, it will fail the commit.
```yaml
- repo: https://github.com/sameeramin/pre-commit-hooks.git
rev: v1.0.1
hooks:
- id: check-console-log
```