Skip to content

Commit

Permalink
Fix shorthand-property-no-redundant-values message (#6272)
Browse files Browse the repository at this point in the history
This change also add test cases for end positions.
  • Loading branch information
ybiquitous committed Aug 17, 2022
1 parent b6be644 commit a51bd7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -115,6 +115,8 @@ testRule({
message: messages.rejected('1px 1px', '1px'),
line: 1,
column: 5,
endLine: 1,
endColumn: 21,
},
{
code: 'a { margin: 1Px 1pX; }',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/shorthand-property-no-redundant-values/index.js
Expand Up @@ -12,7 +12,7 @@ const ruleName = 'shorthand-property-no-redundant-values';

const messages = ruleMessages(ruleName, {
rejected: (unexpected, expected) =>
`Unexpected longhand value '${unexpected}' instead of '${expected}'`,
`Unexpected longhand value "${unexpected}" instead of "${expected}"`,
});

const meta = {
Expand Down

0 comments on commit a51bd7e

Please sign in to comment.