GitXplorerGitXplorer
d

vim-eslint

public
12 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
c6113066dad454128138df598268c2f7ca040d5e

Use npx to invoke the correct eslint executable (#2)

sstephanh42 committed 6 years ago
Verified
0dc3ae761559fd34917d6445c72c6cdc7fc1508e

Pass current directory to eslint in example

ddgraham committed 6 years ago
Verified
ef7d648235d372c724c0b140016399a43d6b6976

Use standard plugin path in install instructions

ddgraham committed 7 years ago
Verified
39434f4111de78e3c0098557993b956e4838088c

Add eslint compiler plugin

ddgraham committed 7 years ago

README

The README file for this repository.

vim-eslint

A Vim plugin for ESLint.

This adds a compiler plugin for JavaScript files, which runs the eslint binary located in your project's node_modules directory.

Run eslint on all files with :make . or just the current file with :make %. Errors will appear in the quickfix window and shown with :cwindow.

Installation

git clone https://github.com/dgraham/vim-eslint.git ~/.vim/pack/plugins/start/vim-eslint

Optionally add the following key mappings to your ~/.vimrc file.

" lint current file
noremap <leader>l  :make % <cr>:cwindow<cr>:redraw!<cr>

" lint and fix current file
noremap <leader>lf :make --fix % <cr>:cwindow<cr>:redraw!<cr>

License

Distributed under the MIT license. See LICENSE for details.