Skip to content

Commit

Permalink
[property-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 3dd1ecf commit 0b2553b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/rules/property-disallowed-list/README.md
Expand Up @@ -9,6 +9,8 @@ a { text-rendering: optimizeLegibility; }
* This property */
```

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

## Options

`array|string|regex`: `["array", "of", /properties/, "regex"]|"property"|"/regex/"|/regex/`
Expand Down
3 changes: 2 additions & 1 deletion lib/rules/property-disallowed-list/index.js
Expand Up @@ -48,7 +48,8 @@ const rule = (primary) => {
}

report({
message: messages.rejected(prop),
message: messages.rejected,
messageArgs: [prop],
word: prop,
node: decl,
result,
Expand Down

0 comments on commit 0b2553b

Please sign in to comment.