diff --git a/lib/rules/property-disallowed-list/README.md b/lib/rules/property-disallowed-list/README.md index c5da123ef3..d0c95efcdd 100644 --- a/lib/rules/property-disallowed-list/README.md +++ b/lib/rules/property-disallowed-list/README.md @@ -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/` diff --git a/lib/rules/property-disallowed-list/index.js b/lib/rules/property-disallowed-list/index.js index 535ae23c0f..f988278972 100644 --- a/lib/rules/property-disallowed-list/index.js +++ b/lib/rules/property-disallowed-list/index.js @@ -48,7 +48,8 @@ const rule = (primary) => { } report({ - message: messages.rejected(prop), + message: messages.rejected, + messageArgs: [prop], word: prop, node: decl, result,