Add JSON syntax linting to CodeMirror v6 editor#3825
Add JSON syntax linting to CodeMirror v6 editor#3825Geethegreat wants to merge 1 commit intoprocessing:develop-codemirror-v6from
Conversation
|
🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. |
|
@Geethegreat Thanks for adding JSON linting — this definitely improves parity with JS/CSS Since we’re already on CodeMirror v6, we could potentially leverage @codemirror/lang-json’s syntax tree and surface diagnostics from error nodes instead. This would give more accurate ranges and a smoother typing experience, closer to what users expect from modern editors. @raclim WDYT? |
|
@Jatin24062005 Thanks for the feedback that’s a very fair point. Leveraging Curious to hear your thoughts, @raclim ready to adapt based on what the maintainers prefer here. |
Fixes #3817
Changes:
Adds JSON syntax linting support to the CodeMirror v6 editor. The new linter parses JSON content and surfaces syntax errors at the correct character position.
I have verified that this pull request:
npm run lint)npm run test)npm run typecheck)developbranch.Fixes #123