With Synatastic, it’s possible to use eslint with an .eslintrc if it exists in the current or parent director(y/ies), and if not, revert to some other linter (e.g. Standard) (see this issue).
Is this possible to do with Neomake? I’ve read through the docs to check, but to be honest I’m still a little new to customising plugins in Vim/NeoVim.
Thanks in advance!
This just requires a small change to the suggestion in the linked syntastic issue:
if findfile('.eslintrc', '.;') ==# ''
let g:neomake_javascript_enabled_makers = ['standard']
endif
See :h g:neomake_<ft>_enabled_makers for the docs on that config variable.
Edit: A handful of updates to make it more terse. Since eslint is enabled by default, you just have to set the enabled makers for javascript to a list that doesn't include eslint to disable it.
Perfect! Thanks a ton, @benekastah — and for your work on Neomake.
You're welcome :)
Most helpful comment
This just requires a small change to the suggestion in the linked syntastic issue:
See
:h g:neomake_<ft>_enabled_makersfor the docs on that config variable.Edit: A handful of updates to make it more terse. Since eslint is enabled by default, you just have to set the enabled makers for javascript to a list that doesn't include eslint to disable it.