fix: use local prettier from package.json and clean up prettierignore

- Replace mirrors-prettier alpha (v4.0.0-alpha.8) with local hook using
  the stable prettier installed via package.json
- Remove .prettierignore entries already handled by the hook's exclude pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eugene Mikhantyev
2026-03-29 13:35:26 +01:00
parent bc1e33b652
commit f39937e8b8
2 changed files with 5 additions and 7 deletions

View File

@@ -23,10 +23,13 @@ repos:
- id: isort
args: [--settings-path=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
- repo: local
hooks:
- id: prettier
name: prettier
entry: npx prettier --write --ignore-unknown
language: node
types_or: [javascript, ts, json, yaml, markdown]
exclude: ^(dist/|package-lock\.json|\.venv/|python/)
- repo: https://github.com/pycqa/flake8