Comparing version 0.5.8 to 0.5.9
@@ -6,2 +6,7 @@ var fs = require('fs'), | ||
function existsSync() { | ||
var obj = fs.existsSync ? fs : path; | ||
return obj.existsSync.apply(obj, arguments); | ||
} | ||
function _help() { | ||
@@ -23,3 +28,3 @@ process.stdout.write(fs.readFileSync(__dirname + "/../HELP", "utf-8")); | ||
function _loadAndParseConfig(filePath) { | ||
return path.existsSync(filePath) ? | ||
return existsSync(filePath) ? | ||
JSON.parse(_removeJsComments(fs.readFileSync(filePath, "utf-8"))) : {}; | ||
@@ -126,3 +131,3 @@ } | ||
if (path.existsSync(pathsToIgnore)) { | ||
if (existsSync(pathsToIgnore)) { | ||
ignore = fs.readFileSync(pathsToIgnore, "utf-8").split("\n").map(function (line) { | ||
@@ -129,0 +134,0 @@ return line.trim(); |
{ | ||
"name": "jshint", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "A CLI for JSHint", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/jshint/node-jshint", |
@@ -7,3 +7,3 @@ # node-jshint | ||
To use jshint from any location (for npm v1.x) you need to install using the global (-g) flag. | ||
To use jshint from any location (for npm v1.x) you need to install using the global (-g) flag. | ||
@@ -28,2 +28,3 @@ npm install -g jshint | ||
* [vim syntastic](https://github.com/scrooloose/syntastic) - Run node-jshint at each file save. | ||
* [sublime-jshint](https://github.com/uipoet/sublime-jshint) - `F7` or `command-B` on any .js file. `F4` next error line,column. `shift-F4` previous error line,column. | ||
@@ -30,0 +31,0 @@ ## Custom Reporters |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
175618
4301
72
0