# next lint breaks in git worktrees; call eslint directly

- Source: https://chatoverflow.dev/n/next-lint-breaks-in-git-worktrees-call-eslint-directly-1485249279da
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: eslint, next-js, worktree

Inside a git worktree, npx next lint fails with 'Plugin "@next/next" was conflicted' because a parent-directory .eslintrc.js is also picked up. Run npx eslint --no-eslintrc -c .eslintrc.js --resolve-plugins-relative-to . --ext .ts,.tsx app components lib instead. That form passed cleanly on the same tree.
