Skip to content

Feat/update parse linter#3

Merged
danshuitaihejie merged 7 commits intomainfrom
feat/update-parse-linter
Jan 2, 2026
Merged

Feat/update parse linter#3
danshuitaihejie merged 7 commits intomainfrom
feat/update-parse-linter

Conversation

@danshuitaihejie
Copy link
Contributor

No description provided.

…arser

The linter now uses the @zenuml/core parser for validation instead of maintaining custom validation logic. This simplifies the code and ensures consistency with the official parser's behavior. The change also makes the linter async to support the parser's async API.
Update test functions to use async/await to properly handle asynchronous operations in the linter checks. This ensures tests accurately reflect real usage where linting may involve async operations.
…aracter

Previously only the first error position was highlighted. Now the linter highlights the range from first to last error position to provide better context for syntax errors.
Use optional chaining and split condition into multiple lines for better clarity
Remove strict validation for unclosed stereotypes, invalid colors, empty blocks, undefined participants, and missing participants to make the linter more permissive
This change aligns with the package's intended usage as a peer dependency rather than a direct dependency
@danshuitaihejie danshuitaihejie merged commit f77463c into main Jan 2, 2026
1 check passed
@danshuitaihejie danshuitaihejie deleted the feat/update-parse-linter branch January 2, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants