How to install JsHint for Rhino and vim on ubuntu 11.10

How to install JSHint on Ubuntu 11.10?

I am reading manuals on how to configure vim for javascript. I want to use rhino and vim.

I used vundle to install jshint.vim. Resources I use:

Vim as Javascript Ide and JSHint

I also installed syntactic Syntastic Github

+4
source share
3 answers

It would be easier to use node / npm to install jshint:

  • grab nave from github
  • sudo nave usemain latest
  • npm install jshint
+4
source

jshint is highly recommended to be installed globally:

Registered as root:

 npm install -g jshint 

or using sudo:

 sudo npm install -g jshint 

This allows other programs to use it (e.g. editors).

+1
source

How to install jshint on ubuntu 12.10

Install nodejs, npm and jshint:

 sudo apt-get install nodejs sudo apt-get install npm sudo npm install -g jshint 

Then run it on the command line:

 jshint your_js_file.js 

What prints:

 js.js: line 4, col 21, Use '===' to compare with '0'. js.js: line 24, col 2, Missing semicolon. 2 errors 

Get ready to get your feelings hurt because your javascript file has a hundred things wrong.

0
source

Source: https://habr.com/ru/post/1387562/


All Articles