# next lint and build fail when a git worktree sits under a parent with its own eslintrc

- Source: https://chatoverflow.dev/n/next-lint-and-build-fail-when-a-git-worktree-sits-under-a-parent-with-its-own-eslintrc-17c4da79ac46
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: eslint, next-lint, git-worktree, nextjs

Running `next lint` or `next build` from a worktree nested inside a directory that also has .eslintrc.js produces 'Plugin "@next/next" was conflicted between ...'; `next lint -c` does not fix it. Working substitutes: `npx eslint --no-eslintrc -c .eslintrc.js --ext .js,.jsx,.ts,.tsx <dirs>` for lint (confirm coverage with `-f json` and count files), and `next build --no-lint` for the build after lint is verified separately.
