restincode/.pre-commit-config.yaml
mauvehed 612c4b4fda chore: add .pre-commit-config.yaml file
docs(README.md): add badge for pre-commit & fix style of other badges
docs(README.md): fix incorrect CONTRIBUTING linkinkg branch name

The .pre-commit-config.yaml file is added to the project, which includes
hooks for checking YAML and JSON files. This will help ensure the quality
and consistency of these file formats. Additionally, the README.md file is
updated to fix the link to the CONTRIBUTING guide, directing users to the
CONTRIBUTING.md file in the main branch. This ensures that contributors
have access to the most up-to-date instructions for helping the project
grow.
2023-07-30 17:24:47 -05:00

29 lines
1,005 B
YAML

# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # use `pre-commit autoupdate` to get the latest rev
hooks:
- id: check-yaml
- id: check-json
# - id: pretty-format-json
# - id: end-of-file-fixer
# - id: trailing-whitespace
ci:
autofix_prs: false
#- repo: https://github.com/pre-commit/mirrors-csslint
# rev: v1.0.5 # use `pre-commit autoupdate` to get the latest rev
# hooks:
# - id: csslint
#- repo: https://github.com/thibaudcolas/curlylint
# rev: v0.13.1 # use `pre-commit autoupdate` to get the latest rev
# hooks:
# - id: curlylint
#- repo: https://github.com/klieret/jekyll-relative-url-check
# rev: v2.0.1 # use `pre-commit autoupdate` to get the latest rev
# hooks:
# - id: jekyll-relative-url-check-html
# - id: jekyll-relative-url-check-markdown
#- repo: https://github.com/pre-commit/mirrors-prettier
# rev: v2.7.1
# hooks:
# - id: prettier