Skip to content

Commit

Permalink
Merge pull request #72 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 ddece22 + 720df19 commit e7aabaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ module.exports = tseslint.config(
'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 e7aabaf

Please sign in to comment.