From 8cb9833be0876fc74f12a4e912e0c90e9001cc82 Mon Sep 17 00:00:00 2001 From: yurydelendik Date: Tue, 5 Feb 2013 09:11:27 -0800 Subject: [PATCH] replacing gjslint tp jshint --- Contributing.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Contributing.md b/Contributing.md index 0ad1c4f..e003000 100644 --- a/Contributing.md +++ b/Contributing.md @@ -17,8 +17,6 @@ An overview how to contribute code to the pdf.js project. The basic workflow: * github account * [python](http://www.python.org/download/) * [node](http://nodejs.org/) -* [gjslint](https://developers.google.com/closure/utilities/docs/linter_howto) - _Use version 2.3.5_ - * [easy_install on Ubuntu](http://www.hacksparrow.com/ubuntu-how-to-install-easy_install.html) * (for Windows, see [[Setting up pdf.js Development Environment for Windows]]) **Before you make any changes to the code you'll probably want jump down to [Generating Reference Images](#ref-images) to create the reference snapshot images so you can run the test framework and check for regressions.** @@ -56,11 +54,12 @@ Make sure your code follows our style guides, run from the pdf.js folder: ``` node make lint ``` +First time you run the command above, the jshint will be automatically installed in the pdf.js folder. ***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`: ``` -let g:syntastic_javascript_checker = "gjslint" +let g:syntastic_javascript_checker = "jshint" ``` Now you have automatic linting of your changes to javascript files whenever you save.