Ⅰ. 插件描述
Vim compiler plugin for ESLintⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'salomvary/vim-eslint-compiler'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/salomvary/vim-eslint-compiler
Ⅳ. 文档说明
## Vim ESLint Compiler
Installation
Install ESLint (0.5.1 or later)
If you are using pathogen:
cd ~/.vim/bundle
git clone https://github.com/salomvary/vim-eslint-compiler.gitIf not, simply save compiler/eslint.vim to your
.vim/compiler folder.
Usage
The primary purpose of this script is to validate multiple files or folders
recursively and help fixing issues from the quickfix window.
:compiler eslint
"Validate current folder recursively:
:make .
"Validate current file:
:make %
"Validate a folder:
:make app
"Show reults in quickfix window
:copenFurther information:
:help compiler
:help make
:help quickfixNote: if you rather need inline ESLint feedback while editing or never
want to check multiple files or whole projects a better option is
Syntastic which has built-in ESLint
support.