Skip to content

Commit a61d127

Browse files
committed
feat: messages is rule name
1 parent 8405684 commit a61d127

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/rules/sort-properties.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ module.exports = {
6060
docs: {
6161
description:
6262
'Sort CSS properties according to defined groups and specific rules.',
63-
recommended: false,
63+
recommended: true,
6464
},
6565
fixable: 'code',
6666
schema: [],
6767
messages: {
68-
outOfOrder:
68+
sortProperties:
6969
'Property "{{property}}" is out of order. Expected position: {{position}}.',
7070
},
7171
},
@@ -99,7 +99,7 @@ module.exports = {
9999

100100
context.report({
101101
node: prop,
102-
messageId: 'outOfOrder',
102+
messageId: 'sortProperties',
103103
data: {
104104
position: correctIndex + 1,
105105
property: getPropertyName(prop),

lib/rules/validate-values.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ module.exports = {
415415
},
416416
schema: [],
417417
messages: {
418-
invalidValue:
418+
validateValue:
419419
"'{{key}}' has an invalid value '{{value}}'. Valid values: {{validValues}}",
420420
},
421421
},
@@ -437,7 +437,7 @@ module.exports = {
437437
return () => {
438438
context.report({
439439
node: property.value,
440-
messageId: 'invalidValue',
440+
messageId: 'validateValue',
441441
data: {
442442
key,
443443
value,

0 commit comments

Comments
 (0)