codenothing / jsonlint

JSON Linter that allows comments
http://codenothing.github.com/jsonlint/
MIT License
32 stars 12 forks source link

jsonlint suggests a comment as a valid correction, even when comments are disabled #6

Open abovethewater opened 7 years ago

abovethewater commented 7 years ago
 const lint = JSONLint('}', {comments: false})

Populates lint.error with:

Unknown character '}', expecting opening block '{' or '[', or maybe a comment

As comments are disabled the 'or maybe a comment' is incorrect