🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

jshint-mode

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jshint-mode

JSHint

latest
npmnpm
Version
0.0.2
Version published
Maintainers
0
Created
Source

jshint-mode

Integrate jshint into emacs via a node.js server, heavily inspited by Kevin Turners lintnode much thanks.

Dependencies

node.js

Building

Install via npm $ npm install jshint-mode or you can download or clone $ git clone git://github.com/daleharvey/jshint-mode.git

Usage

If you installed via npm you need to find the path that jshint was installed to:

$ npm explore jshint-mode
Exploring /usr/local/lib/node/.npm/jshint-mode/active/package

Add this to your .emacs config file (if you didnt install via npm, replace the path):

(add-to-list 'load-path "/usr/local/lib/node/.npm/jshint-mode/active/package")
(require 'flymake-jshint)
(add-hook 'javascript-mode-hook
     (lambda () (flymake-mode t)))

;; Turns on flymake for all files which have a flymake mode
(add-hook 'find-file-hook 'flymake-find-file-hook)

To run from the command line:

$ node jshint-mode.js
$ curl --form source="<path/to/my.js" --form=filename="my.js" http://127.0.0.1:3003/jshint

FAQs

Package last updated on 22 Mar 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts