Skip to content

Commit

Permalink
Fix shorthand-property-no-redundant-values message to be consistent (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrakov committed Oct 20, 2022
1 parent cb425cb commit d171517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-seals-kick.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `shorthand-property-no-redundant-values` message to be consistent
3 changes: 1 addition & 2 deletions lib/rules/shorthand-property-no-redundant-values/index.js
Expand Up @@ -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 = {
Expand Down

0 comments on commit d171517

Please sign in to comment.