Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds JSHint command for changing build system to JSHint and building in on step. Adds control-J shortcut and JSHint to Tools menu, contextual menu and Command Palette. Adds package metadata JSON for indexing within Sublime Package Control.
- Loading branch information
Jamie Hoover ⚔
committed
Feb 19, 2012
1 parent
3639e2f
commit 4dc6c11
Showing
8 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,2 @@ | |||
.DS_Store | .DS_Store | ||
JSHint.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
[{ | |||
"id": "jshint", | |||
"caption": "JSHint", | |||
"command": "jshint" | |||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
[{ | |||
"id": "jshint", | |||
"caption": "JSHint", | |||
"command": "jshint" | |||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
[{ | |||
"keys": ["ctrl+j"], "command": "jshint" | |||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
import sublime, sublime_plugin | |||
|
|||
class JshintCommand(sublime_plugin.WindowCommand): | |||
def run(self): | |||
self.window.run_command('set_build_system', { | |||
'file': 'Packages/JSHint/JSHint.sublime-build' | |||
}) | |||
self.window.run_command('build') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
[{ | |||
"caption": "Tools", | |||
"mnemonic": "t", | |||
"id": "tools", | |||
"children": [{ | |||
"id": "jshint", | |||
"caption": "JSHint", | |||
"command": "jshint" | |||
}] | |||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
{ | |||
"version": "0.2.0", | |||
"url": "https://github.com/uipoet/sublime-jshint", | |||
"description": "node-jshint current JavaScript file in Sublime Text 2" | |||
} |