diff --git a/lefthook.yml b/lefthook.yml index 60c6539c..911d33e3 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -38,9 +38,11 @@ pre-commit: Запусти `npm run lint:md:fix` или поправь руками. # 3. cspell — орфография на staged .md + # --no-gitignore: staged-файлы по определению tracked; без флага cspell + # (useGitignore:true) игнорирует worktree-коммиты под gitignored .claude/worktrees/. - name: cspell glob: "*.md" - run: npx cspell --no-progress --no-summary {staged_files} + run: npx cspell --no-progress --no-summary --no-gitignore {staged_files} fail_text: | cspell нашёл слова, отсутствующие в словаре. Если это валидное слово проекта — добавь в cspell-words.txt.