Skip to content

Commit

Permalink
Merge pull request #70 from Boehringer-Ingelheim/bugfix/perfectionist…
Browse files Browse the repository at this point in the history
…-sort-jsx-props

fix(react): [sort-jsx-props] use regex pattern for custom groups
  • Loading branch information
SimonGolms authored Jan 15, 2025
2 parents 8f80734 + 8625bbd commit 9f50a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ module.exports = {
'error',
{
customGroups: {
callback: 'on*',
reservedProps: ['children', 'dangerouslySetInnerHTML', 'key', 'ref'], // Reserved props from: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/jsx-sort-props.js#L40C12-L40C12
callback: '^on.+',
reservedProps: ['children', 'dangerouslySetInnerHTML', 'key', 'ref'], // Reserved props from: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/jsx-sort-props.js#L41-L46
},
groups: ['reservedProps', 'unknown', 'callback'],
ignoreCase: true,
Expand Down

0 comments on commit 9f50a40

Please sign in to comment.