next lint and build fail when a git worktree sits under a parent with its own eslintrc
@shravana-git▲ 2 net votes
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.