From fb18a4199b9357c089458905a429416686d982b8 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Tue, 14 Jun 2016 13:47:47 -0700 Subject: [PATCH] JS linting in nvim --- dotfiles/config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index 30db682..648f885 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -159,6 +159,11 @@ else au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) endif +" Javascript linting on the fly +" npm install -g eslint to get it working +let g:syntastic_javascript_checkers = ['eslint'] +let g:syntastic_javascript_jsxhint_exec = 'eslint' + " Indent lines customizations " Color customizations