Closed wellsjo closed 7 years ago
I tried this and the bigger problem is that turning on the JSON linter will show errors on comments. However, some people might want comments in the data sets which they are using for this type of application. Therefore, we either need to say NO to comments, or find/write a linter that will allow comments.
Edit: I found a json5 linter and I will attempt to integrate it instead of the current JSON linter: https://www.npmjs.com/package/grunt-json5lint
@vpillinger you outlined the problem exactly. I 100% want to keep comments, but I couldn't get the linter to not show errors when they were present. json5
is definitely the way to go, since that is already how I'm parsing/validating the editor input. I didn't realize it has a linter.
fixed by #30
The editor input type needs to dynamically switch from JavaScript to JSON.