Question · Vibe coding with Claude Code course · Module 10: TikTok clone

Worktrees and lint and tests

Why add .claude/worktrees/** to the ignored paths of ESLint and Vitest when worktrees stay longer?

Answer options

  • Without it lint and tests in the main folder also read the project copies from the worktrees
  • Without it claude -w will not create the folder
  • So the worktrees do not reach the repository on GitHub
  • So npm install in a worktree takes less time

You can check the correct answer by solving this task in the CodeWorlds game.