diff --git a/packages/eslint-config/react.js b/packages/eslint-config/react.js index e546784..03751f1 100644 --- a/packages/eslint-config/react.js +++ b/packages/eslint-config/react.js @@ -24,13 +24,31 @@ module.exports = { rules: { 'react/prop-types': 'off', 'react/jsx-pascal-case': 'error', + 'react/jsx-fragments': 'error', + 'react/jsx-no-useless-fragment': 'error', 'react/no-multi-comp': 'error', + 'react/hook-use-state': 'error', + 'react/jsx-handler-names': [ + 'error', + { + eventHandlerPrefix: 'handle', + eventHandlerPropPrefix: 'on', + checkLocalVariables: true, + checkInlineFunction: true + } + ], 'react-hooks/exhaustive-deps': [ 'warn', { additionalHooks: '(useDeferCallback)' } ], + 'react/no-unstable-nested-components': [ + 'error', + { + allowAsProps: true + } + ], 'jsx-a11y/no-autofocus': [ 'error', {