Skip to content

Commit

Permalink
[at-rule-disallowed-list] Added support for messageArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerice committed Nov 10, 2022
1 parent 9e3b30f commit 3dd1ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rules/at-rule-disallowed-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Specify a list of disallowed at-rules.
* At-rules like this */
```

## Options
The [`message` secondary option](../../../docs/user-guide/configure.md#message) can accept the arguments of this rule.## Options

`array|string`: `["array", "of", "unprefixed", "at-rules"]|"at-rule"`

Expand Down
3 changes: 2 additions & 1 deletion lib/rules/at-rule-disallowed-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const rule = (primary) => {
}

report({
message: messages.rejected(name),
message: messages.rejected,
messageArgs: [name],
node: atRule,
result,
ruleName,
Expand Down

0 comments on commit 3dd1ecf

Please sign in to comment.