Comparing version 2.1.9 to 2.1.10
{ | ||
"name": "jshint", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"homepage": "http://jshint.com/", | ||
@@ -28,7 +28,7 @@ "description": "Static analysis tool for JavaScript", | ||
"build": "node make.js build", | ||
"test": "nodeunit tests tests/stable/regression tests/stable/unit", | ||
"pretest": "jshint --config=jshint.json src" | ||
"test": "nodeunit tests tests/regression tests/unit", | ||
"pretest": "jshint src" | ||
}, | ||
"main": "./src/stable/jshint.js", | ||
"main": "./src/jshint.js", | ||
@@ -52,2 +52,16 @@ "dependencies": { | ||
"jshintConfig": { | ||
"boss": true, | ||
"node": true, | ||
"strict": true, | ||
"white": true, | ||
"smarttabs": true, | ||
"maxlen": 100, | ||
"newcap": false, | ||
"undef": true, | ||
"unused": true, | ||
"onecase": true, | ||
"indent": 2 | ||
}, | ||
"licenses": [ | ||
@@ -54,0 +68,0 @@ { |
@@ -12,2 +12,3 @@ /*jshint boss: true, rhino: true, unused: true, undef: true, white: true, quotmark: double */ | ||
var opts = {}; | ||
var globals = {}; | ||
var retval = 0; | ||
@@ -84,3 +85,3 @@ | ||
opts.predef = opts.globals || {}; | ||
globals = opts.globals || {}; | ||
delete(opts.globals); | ||
@@ -91,3 +92,3 @@ | ||
var global = arg.split("="); | ||
opts.predef[global[0]] = global[1] === "true" ? true : false; | ||
globals[global[0]] = global[1] === "true" ? true : false; | ||
}); | ||
@@ -104,3 +105,3 @@ } | ||
if (!JSHINT(input, opts)) { | ||
if (!JSHINT(input, opts, globals)) { | ||
for (var i = 0, err; err = JSHINT.errors[i]; i += 1) { | ||
@@ -111,3 +112,3 @@ print(err.reason + " (" + name + ":" + err.line + ":" + err.character + ")"); | ||
} | ||
retval = 1; | ||
retval = 2; | ||
} | ||
@@ -114,0 +115,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
217889
20
7369
0
1