mirror of
https://github.com/restincode/restincode.git
synced 2026-06-11 08:15:18 +02:00
updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
17 lines
648 B
YAML
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: v6.0.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
|