sublime-jslint
JSLint support for Sublime Text 2
Details
Installs
- Total 44K
- Win 20K
- Mac 18K
- Linux 6K
Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
JSLint support for Sublime Text 2 by using jslint4java
Sublime Text 2 is a sophisticated text editor for code, HTML and prose. You'll love its slick user interface and extraordinary features.
JSLint4Java is a Java wrapper around the fabulous tool by Douglas Crockford, JSLint. It provides a simple interface for detecting potential problems in JavaScript code.
This project is a plugin to add JSLint support for Sublime Text 2.
Features
- JSLint: Run JSLint (Ctrl+J), or run JSLint on save
- JSLint: Show JSLint results
- Highlight error line by click in the result view
- Cross-platform: supports Windows, Linux and Mac OS X
Requirements
Java - also ensure that it has been added to PATH
Installation
- Using Package Control:
- Install Package: sublime-jslint
- Download and extract to Sublime Text 2 Packages folder
- Windows: %APPDATA%\Sublime Text 2\Packages
- Mac OS X: ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
- Linux: ~/.config/sublime-text-2/Packages
How to use?
Open the Command Palette (Windows and Linux: Ctrl+Shift+P, OSX: Command+Shift+P), then search for:
- JSLint: Run JSLint (Ctrl+J)
- JSLint: Show JSLint Result
Open up a .js file and hit Ctrl+J to run JSLint. An new output panel will appear giving you the JSLint results:
Screenshots
Settings
Settings can be opened via the Command Palette, or via the Preferences/Package Settings/JSLint/Settings – User menu entry.
{
//Uses system installed jslint.js (node.js based), instead of bundled JSLint jar
"use_node_jslint": false,
//Path to the jslint.js
//Leave blank to use default JSLint path
"node_jslint_path": "",
//Options passed to jslint.js
"node_jslint_options": "",
//Path to the JSLint jar.
//Leave blank to use bundled jar.
"jslint_jar": "",
//Options passed to JSLint.
"jslint_options": "",
//Errors and RegEx to be ignored
"ignore_errors":
[
//"Expected an identifier and instead saw 'undefined' \(a reserved word\)"
],
//Run JSLint on save.
"run_on_save": false,
//Debug flag.
"debug": false
}
All available jslint_options can be found here.
License
sublime-jslint is released under the New BSD License, which may be found here.