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

g:ale_javascript_eslint_executable is ignored if .yarn/sdks/eslint/bin/eslint.js is found. #4903

Open
LvChengbin opened this issue Feb 6, 2025 · 0 comments
Labels

Comments

@LvChengbin
Copy link

Information

VIM version

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Jan 23 2025 19:05:29)
macOS version - arm64

Operating System: MacOS 15.3

What went wrong

The g:ale_javascript_eslint_executable settings is ignored if .yarn/sdks/eslint/bin/eslint.js exists.

It's working as expected after I remove the first item from s:executables in autoload/ale/handlers/eslint.vim.

let s:executables = [
\   '.yarn/sdks/eslint/bin/eslint.js',
\   'node_modules/.bin/eslint_d',
\   'node_modules/eslint/bin/eslint.js',
\   'node_modules/.bin/eslint',
\]

I think the custom variables in ~.vimrc should not be overridden.

Reproducing the bug

Using ale inside a project with .yarn/sdks.

:ALEInfo

Expand
@LvChengbin LvChengbin added the bug label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant