Skip to content

Commit

Permalink
refactor: improves error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hugop95 committed Jan 8, 2025
1 parent bbc08a4 commit d9d6cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rules/sort-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export default createEslintRule<Options, MESSAGE_ID>({
unexpectedInterfacePropertiesGroupOrder:
'Expected "{{right}}" ({{rightGroup}}) to come before "{{left}}" ({{leftGroup}}).',
missedSpacingBetweenInterfaceMembers:
'Missed spacing between "{{left}}" and "{{right}}" interfaces.',
'Missed spacing between "{{left}}" and "{{right}}" properties.',
extraSpacingBetweenInterfaceMembers:
'Extra spacing between "{{left}}" and "{{right}}" interfaces.',
'Extra spacing between "{{left}}" and "{{right}}" properties.',
unexpectedInterfacePropertiesOrder:
'Expected "{{right}}" to come before "{{left}}".',
},
Expand Down
4 changes: 2 additions & 2 deletions rules/sort-object-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export default createEslintRule<Options, MESSAGE_ID>({
unexpectedObjectTypesGroupOrder:
'Expected "{{right}}" ({{rightGroup}}) to come before "{{left}}" ({{leftGroup}}).',
missedSpacingBetweenObjectTypeMembers:
'Missed spacing between "{{left}}" and "{{right}}" types.',
'Missed spacing between "{{left}}" and "{{right}}" properties.',
extraSpacingBetweenObjectTypeMembers:
'Extra spacing between "{{left}}" and "{{right}}" types.',
'Extra spacing between "{{left}}" and "{{right}}" properties.',
unexpectedObjectTypesOrder:
'Expected "{{right}}" to come before "{{left}}".',
},
Expand Down

0 comments on commit d9d6cdf

Please sign in to comment.