Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add public accessors group to sort-member-config #42

Merged
merged 1 commit into from
Mar 24, 2021
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
1 change: 1 addition & 0 deletions lit-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const sortMemberRules = getSortMemberRules([
"[properties]",
"constructor",
"[accessor-pairs]",
"[accessors]",
"[lit-methods]",
"[methods]",
"[private-accessor-pairs]",
Expand Down
1 change: 1 addition & 0 deletions polymer-sort-member-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports.sortMemberRules = getSortMemberRules([
"[properties]",
"constructor",
"[accessor-pairs]",
"[accessors]",
"[methods]",
"[private-accessor-pairs]",
"[private-accessors]",
Expand Down
2 changes: 2 additions & 0 deletions sort-member-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const defaultGroups = {
"accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }],
"accessors": [{ "kind": "get", "accessorPair": false, "sort": "alphabetical" }, { "kind": "set", "accessorPair": false, "sort": "alphabetical" }],
"methods": [{ "type": "method", "sort": "alphabetical" }],
"private-accessor-pairs": [{ "name": "/_.+/", "accessorPair": true, "sort": "alphabetical" }],
"private-accessors": [{ "name": "/_.+/", "kind": "get", "accessorPair": false, "sort": "alphabetical" }, { "name": "/_.+/", "kind": "set", "accessorPair": false, "sort": "alphabetical" }],
Expand All @@ -16,6 +17,7 @@ const defaultOrder = [
"[properties]",
"constructor",
"[accessor-pairs]",
"[accessors]",
"[methods]",
"[private-properties]",
"[private-accessor-pairs]",
Expand Down