From 28c76c741354461fd3dcdc08bf530448d8e11f9d Mon Sep 17 00:00:00 2001 From: fpetrakov Date: Thu, 20 Oct 2022 11:36:55 +0300 Subject: [PATCH 1/2] fix error message to be consistent --- lib/rules/shorthand-property-no-redundant-values/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = { From 9d3595339c022529d81c018a68bb657ad4d07aa1 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Thu, 20 Oct 2022 17:40:28 +0900 Subject: [PATCH 2/2] Add changelog entry --- .changeset/yellow-seals-kick.md | 5 +++++ 1 file changed, 5 insertions(+) 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