Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting support for hds-code-editor modifier and component #2715

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

zamoore
Copy link
Contributor

@zamoore zamoore commented Feb 19, 2025

๐Ÿ“Œ Summary

If merged, this PR will add support for linting to the hds-code-editor modifier and Hds::CodeEditor component.

๐Ÿ› ๏ธ Detailed description

  • Linting is currently available only for the JSON language.
  • Linting can be enabled by setting language to json & isLintingEnabled to true.
  • The editor accepts a new onLint argument which accepts a function that is called when linting runs and receives an array of CodeMirror Diagnostic objects.

๐Ÿ“ธ Screenshots

Screenshot 2025-03-07 at 2 51 00โ€ฏPM

๐Ÿ”— External links

Jira ticket: HDS-4361
Figma file: [if it applies]


๐Ÿ‘€ Component checklist

๐Ÿ’ฌ Please consider using conventional comments when reviewing this PR.

Copy link

vercel bot commented Feb 19, 2025

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Updated (UTC)
hds-showcase โœ… Ready (Inspect) Visit Preview Mar 7, 2025 7:56pm
hds-website โœ… Ready (Inspect) Visit Preview Mar 7, 2025 7:56pm

@zamoore zamoore force-pushed the zamoore/HDS-4361/CodeEditor-linting branch from 3aa5ce6 to cea554c Compare February 21, 2025 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants