Skip to content
Browse files

Shell

Sets shell variable to true and merges cmd into single strings to be more readable and ensure paths are always wrapped in quotes.
  • Loading branch information...
1 parent e5f45ad commit f7bdf85050a79e64643e6132a735ae9c121161a3 Jamie Hoover ⚔ committed Apr 18, 2012
Showing with 5 additions and 40 deletions.
  1. +1 −1 .jshintrc
  2. +4 −2 JSHint.sublime-build
  3. +0 −37 package.json
View
2 .jshintrc
@@ -13,7 +13,7 @@
"noempty": true,
"nonew": true,
"plusplus": true,
- "regexp": false, // These are only build/test scripts. Security is not an issue.
+ "regexp": false, // This is only a build script. Security is not an issue.
"undef": true,
"strict": true,
"trailing": true,
View
6 JSHint.sublime-build
@@ -1,7 +1,9 @@
{
"selector": "source.js",
- "cmd": ["jshint", "$file", "--reporter", "${packages}/JSHint/reporter.js"],
+ "shell": true,
+
+ "cmd": ["jshint \"${file}\" --reporter \"${packages}/JSHint/reporter.js\""],
"file_regex": "file:\\s(.+)\\]",
"line_regex": "(\\d+),(\\d+)",
@@ -11,6 +13,6 @@
},
"windows": {
- "cmd": ["jshint.cmd", "$file", "--reporter", "${packages}/JSHint/reporter.js"]
+ "cmd": ["jshint \"${file}\" --reporter \"${packages}\\JSHint\\reporter.js\""]
}
}
View
37 package.json
@@ -1,37 +0,0 @@
-{
- "name": "sublime-jshint",
- "version": "0.3.4",
-
- "description": "the best JavaScript syntax checker for the best text editor",
- "keywords": ["sublime", "text", "2", "jshint"],
-
- "homepage": "https://github.com/uipoet/sublime-jshint/",
- "repository": {
- "type": "git",
- "url": "https://github.com/ninja/sublime-jshint.git"
- },
- "bugs": {
- "url" : "https://github.com/ninja/sublime-jshint/issues"
- },
-
- "author": {
- "name": "Jamie R. Hoover",
- "email": "dont.tase@me.com",
- "url": "http://uipoet.com"
- },
-
- "engines": {
- "node": "0.6 || 0.7 || 0.8",
- "npm": "1"
- },
- "dependencies": {
- "jshint": "0.6.x"
- },
-
- "licenses": [
- {
- "type": "Apache 2",
- "url": "http://github.com/ninja/ui/raw/master/LICENSE.txt"
- }
- ]
-}

0 comments on commit f7bdf85

Please sign in to comment.
Something went wrong with that request. Please try again.