Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sleistner/vim-jshint
A plugin that allow you to run jshint from vim.
https://github.com/sleistner/vim-jshint
Last synced: 1 day ago
JSON representation
A plugin that allow you to run jshint from vim.
- Host: GitHub
- URL: https://github.com/sleistner/vim-jshint
- Owner: sleistner
- Created: 2011-10-25T07:16:21.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-18T14:29:04.000Z (over 11 years ago)
- Last Synced: 2024-08-02T05:13:25.530Z (3 months ago)
- Language: VimL
- Homepage:
- Size: 310 KB
- Stars: 28
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-jshint
A vim plugin that automatically run [jshint](http://jshint.org/) on the current buffer.
## Usage
The content of the current buffer will be passed to the javascript jshint parser after the buffer is saved.
Lint warnings will be shown in the quickfix error window.## Installation
### Plugin
If you don't have a preferred installation method, I recommend
installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
then simply copy and paste:cd ~/.vim/bundle
git clone git://github.com/sleistner/vim-jshint.git### JavaScript runtime
#### Mac OS X
No additional installation steps required /System/Library/Frameworks/JavaScriptCore.framework/Resources/jsc
is used by default.#### Linux
Install SpiderMonkey
$ sudo apt-get install spidermonkey-bin
### Options
`.jshintrc` option files in your home and current directory will be loaded automatically.
Those files should be in JSON format.
See [JSHint docs](http://www.jshint.com/options/) for more information about option names and values.Example:
{
"expr": true,
"boss": true
}### Commands
- `:JSHint` run jshint for current file
- `:JSHintReload` reload all `.jshintrc` option files.
- `:JSHintToggle` enable or disable jshint validation
### Credits
This plugin makes heavy use of the following sources:
- [http://github.com/joestelmach/javaScriptLint.vim]()
- [http://github.com/hallettj/jslint.vim]()