Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(eslint): use 'npx eslint' when local binary is missing #748

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markuskreukniet
Copy link

Fixes #747
Resolves #747
Closes #747

Description

This fixes an issue where nvim-lint fails to find ESLint if it's not installed globally.

  • Previously, the command used "eslint", which fails if it's not in PATH.
  • Now, it falls back to "npx eslint", which correctly finds either the local or global version.

Why This Fix?

  • npx eslint works even if eslint is not globally installed.
  • This prevents silent failures and makes nvim-lint more reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint not working in nvim-lint, but eslint_d works
1 participant