Skip to content

Commit

Permalink
docs: Mention that a rule's message can contain meta-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLove authored and HerringtonDarkholme committed Mar 9, 2024
1 parent 96a9d0d commit 6399908
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/reference/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ transform:

A pattern or a `FixConfig` object to auto fix the issue. See details in [fix object reference](/reference/yaml/fix.html).

It can reference meta variables appeared in the rule.
It can reference meta variables that appeared in the rule.

Example:
```yaml
Expand Down Expand Up @@ -174,6 +174,8 @@ severity: warning
Main message highlighting why this rule fired. It should be single line and concise,
but specific enough to be understood without additional context.

It can reference meta-variables that appeared in the rule.

Example:
```yaml
message: "console.log should not be used in production code"
Expand Down

0 comments on commit 6399908

Please sign in to comment.