mirror of
https://github.com/restincode/restincode.git
synced 2026-09-11 17:19:30 +02:00
updates: - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0)
17 lines
640 B
YAML
17 lines
640 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: v3.1.0
|
|
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
|