From d171517376238ff2ba33f98e9e171ee13ca0cd81 Mon Sep 17 00:00:00 2001 From: Fedya Petrakov Date: Thu, 20 Oct 2022 14:24:42 +0300 Subject: [PATCH] Fix shorthand-property-no-redundant-values message to be consistent (#6417) --- .changeset/yellow-seals-kick.md | 5 +++++ lib/rules/shorthand-property-no-redundant-values/index.js | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/yellow-seals-kick.md 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 = {