English
@mmd-toolkit/sequence-no-link-without-separator
Disallow a link statement without the @ between its label and its URL.
✅ The recommended configuration enables this rule.
🔧 This rule is automatically fixable by the --fix CLI option.
A link statement gives a participant a link with a label, @, and a URL. When @ is missing, mermaid.js accepts the statement without an error but sets a different label and URL from what was written.
Rule Details
This rule applies to sequence diagrams (sequenceDiagram). It reports a link statement with no @ in its text, including one with no text.
Examples of incorrect code for this rule:
mmd
%% eslint @mmd-toolkit/sequence-no-link-without-separator: error
sequenceDiagram
participant A
link A: Dashboard https://x.exampleExamples of correct code for this rule:
mmd
%% eslint @mmd-toolkit/sequence-no-link-without-separator: error
sequenceDiagram
link A: Dash @ https://x.exampleOptions
This rule has no options.
Related Rules
Version
This rule was introduced in @mmd-toolkit/eslint-plugin v0.1.0.