diff --git a/configs/react.js b/configs/react.js index 69bd81f..f0d16ba 100644 --- a/configs/react.js +++ b/configs/react.js @@ -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,