Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jshint

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jshint - npm Package Compare versions

Comparing version 2.1.9 to 2.1.10

bin/apply

22

package.json
{
"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 @@ {

9

src/platforms/rhino.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc