From 93281056a266b05eac1c8f4f4c555f0f0562ee86 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 16 Apr 2017 23:29:28 +0200 Subject: [PATCH] Update Vim instructions for ESLint --- Contributing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contributing.md b/Contributing.md index 31926ae..dee99e6 100644 --- a/Contributing.md +++ b/Contributing.md @@ -66,10 +66,10 @@ Make sure that your code follows our [[Style Guide]] and run from the PDF.js fol gulp lint ``` -_Protip_: If you are a Vim user, then install [Syntastic](http://www.vim.org/scripts/script.php?script_id=2736) and add the following line to your `.vimrc`: +_Protip_: If you are a Vim user, then install [Syntastic](http://www.vim.org/scripts/script.php?script_id=2736), install ESLint globally using `npm install -g eslint` and add the following line to your `.vimrc`: ``` -let g:syntastic_javascript_checkers = ['eslint'] +let g:syntastic_javascript_checkers=['eslint'] ``` Now you have automatic linting of your changes to JavaScript files whenever you save.