Skip to content

Instantly share code, notes, and snippets.

@kinjouj
Created February 21, 2026 17:38
Show Gist options
  • Select an option

  • Save kinjouj/5daf6fe2dbd0121f3cbf82454e05ef88 to your computer and use it in GitHub Desktop.

Select an option

Save kinjouj/5daf6fe2dbd0121f3cbf82454e05ef88 to your computer and use it in GitHub Desktop.
"perfectionist/sort-jsx-props": [
"error",
{
"type": "unsorted",
"groups": [
"almost-props",
"unknown",
"standard",
"callback",
"shorthand-prop",
],
"customGroups": [
{
"groupName": "almost-props",
"elementNamePattern": ["^ref$", "^key$", "^type$", "^id$", "^href$", "^src$", "^name$"]
},
{
"groupName": "standard",
"elementNamePattern": [
"^role$",
"^aria-.+$",
"^data-.+$",
"^className$",
"^style$",
]
},
{
"groupName": "callback",
"elementNamePattern": "^on.+"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment