Socket
Socket
Sign inDemoInstall

eslint-plugin-json

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-json - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

14

lib/index.js

@@ -18,3 +18,3 @@ /**

"validate": true,
"allowComments": false
"allowComments": true // setting doesn't seem to matter
});

@@ -92,8 +92,8 @@

if (typeof commentSeverity === "number") {
var message = "InvalidCommentToken: Comments are not permitted in JSON.";
jsonDocument.comments.forEach(function(c) {
addProblem(makeDiagnostic(c, message, commentSeverity, ErrorCode.CommentNotPermitted));
});
}
// if (typeof commentSeverity === "number") {
// var message = "InvalidCommentToken: Comments are not permitted in JSON.";
// jsonDocument.comments.forEach(function(c) {
// addProblem(makeDiagnostic(c, message, commentSeverity, ErrorCode.CommentNotPermitted));
// });
// }
return diagnostics;

@@ -100,0 +100,0 @@ };

{
"name": "eslint-plugin-json",
"version": "1.3.1",
"version": "1.3.2",
"description": "Lint JSON files",

@@ -5,0 +5,0 @@ "keywords": [

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