diff --git a/.changeset/yellow-seals-kick.md b/.changeset/yellow-seals-kick.md new file mode 100644 index 0000000000..a45350f57b --- /dev/null +++ b/.changeset/yellow-seals-kick.md @@ -0,0 +1,5 @@ +--- +"stylelint": patch +--- + +Fixed: `shorthand-property-no-redundant-values` message to be consistent diff --git a/lib/rules/shorthand-property-no-redundant-values/index.js b/lib/rules/shorthand-property-no-redundant-values/index.js index a147747d84..ba02e4cea8 100644 --- a/lib/rules/shorthand-property-no-redundant-values/index.js +++ b/lib/rules/shorthand-property-no-redundant-values/index.js @@ -11,8 +11,7 @@ const vendor = require('../../utils/vendor'); const ruleName = 'shorthand-property-no-redundant-values'; const messages = ruleMessages(ruleName, { - rejected: (unexpected, expected) => - `Unexpected longhand value "${unexpected}" instead of "${expected}"`, + rejected: (unexpected, expected) => `Expected "${unexpected}" to be "${expected}"`, }); const meta = {