eslint-plugin-json
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -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": [ |
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
8224