Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/rules/sort-attrs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sort-attrs

This rule enforces alphabetical sorting of attributes.
This rule enforces priority-based and alphabetical sorting of attributes.

## How to use

Expand Down
5 changes: 3 additions & 2 deletions packages/eslint-plugin/lib/rules/sort-attrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
type: "code",

docs: {
description: "Enforce attributes alphabetical sorting",
description: "Enforce priority and alphabetical sorting of attributes",
category: RULE_CATEGORY.STYLE,
recommended: false,
url: getRuleUrl("sort-attrs"),
Expand Down Expand Up @@ -60,7 +60,8 @@ module.exports = {
},
],
messages: {
[MESSAGE_IDS.UNSORTED]: "Attributes should be sorted alphabetically",
[MESSAGE_IDS.UNSORTED]:
"Attributes should be sorted by priority and alphabetically",
},
},
create(context) {
Expand Down