Skip to content

Commit 7120733

Browse files
committed
fix: react components should now be function-declarations and this resolves the conflict with no-restricted-syntax
1 parent 2a78e10 commit 7120733

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/configs/eslint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const config = [
9696
'react/jsx-no-leaked-render': ['error', { validStrategies: ['ternary'] }],
9797
'react/function-component-definition': [
9898
'warn',
99-
{ namedComponents: 'arrow-function' },
99+
{ namedComponents: 'function-declaration' },
100100
],
101101
'react/jsx-key': [
102102
'error',

0 commit comments

Comments
 (0)