restincode/.pre-commit-config.yaml
pre-commit-ci[bot] eae96f7b87
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8)
2023-12-25 18:26:41 +00:00

17 lines
648 B
YAML

# .pre-commit-config.yaml
exclude: '(CNAME|Gemfile|\..*\.y[a]?ml)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # use `pre-commit autoupdate` to get the latest rev
hooks:
- id: no-commit-to-branch
args: ['--branch', 'main'] # prevent local commits to main branch
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [json, html, css, javascript, yaml, markdown]
ci:
autofix_prs: true # set false to stop pull-request commits being added by pre-commit.ci