Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Usability Improvements

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...
commit 4dc6c110706568c9abd6ef849890864ebbb87de3 1 parent 3639e2f
Jamie Hoover ⚔ authored
View
3  .gitignore
@@ -1 +1,2 @@
-.DS_Store
+.DS_Store
+JSHint.pyc
View
5 Context.sublime-menu
@@ -0,0 +1,5 @@
+[{
+ "id": "jshint",
+ "caption": "JSHint",
+ "command": "jshint"
+}]
View
5 Default.sublime-commands
@@ -0,0 +1,5 @@
+[{
+ "id": "jshint",
+ "caption": "JSHint",
+ "command": "jshint"
+}]
View
3  Default.sublime-keymap
@@ -0,0 +1,3 @@
+[{
+ "keys": ["ctrl+j"], "command": "jshint"
+}]
View
8 JSHint.py
@@ -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')
View
10 Main.sublime-menu
@@ -0,0 +1,10 @@
+[{
+ "caption": "Tools",
+ "mnemonic": "t",
+ "id": "tools",
+ "children": [{
+ "id": "jshint",
+ "caption": "JSHint",
+ "command": "jshint"
+ }]
+}]
View
13 jshint.sublime-build
@@ -5,16 +5,13 @@
"osx": {
"path": "/usr/local/bin"
- }
+ },
- /*
- , "linux": {
- "path": ""
- }
- */
+ "linux": {
+ "path": "/usr/local/bin"
+ }/*,
- /*
- , "windows": {
+ "windows": {
"path": ""
}*/
}
View
5 package-metadata.json
@@ -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"
+}
Please sign in to comment.
Something went wrong with that request. Please try again.