Skip to content

Set Neomake to use the local project's eslint when available for javascript files

License

Notifications You must be signed in to change notification settings

jaawerth/neomake-local-eslint-first

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

neomake-local-eslint-first

Set Neomake to use the local project's eslint when available for javascript files

Install

Must already have neomake set up. This will automatically set eslint as a maker on top of setting its executable path for Neomake. Using vim-plug:

Plug 'jaawerth/neomake-local-eslint-first'

Nwhich('command')

This ftplugin will expose an "Nwhich" function, which will start with the current path, and traverse up a directory until it finds a package.json and ./node_modules/.bin/<command arg>. It will fall back to which if it hits your root or home directory.

About

Set Neomake to use the local project's eslint when available for javascript files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages