Ⅰ. 插件描述
Set Neomake to use the local project's eslint when available for javascript filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jaawerth/neomake-local-eslint-first'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jaawerth/neomake-local-eslint-first'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jaawerth/neomake-local-eslint-first'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jaawerth/neomake-local-eslint-first
Ⅳ. 文档说明
# 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.