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 - id: isort
args: [--settings-path=pyproject.toml] args: [--settings-path=pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-prettier - repo: local
rev: v4.0.0-alpha.8
hooks: hooks:
- id: prettier - 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/) exclude: ^(dist/|package-lock\.json|\.venv/|python/)
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8

View File

@@ -1,9 +1,4 @@
dist/
node_modules/
coverage.xml coverage.xml
htmlcov/ htmlcov/
data/ data/
*.kicad_* *.kicad_*
python/
package-lock.json
.venv/