Skip to content

Commit

Permalink
Require function declaration for named components (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
Richienb and sindresorhus committed Mar 19, 2022
1 parent 4afe365 commit 62e64fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
namedComponents: 'function-declaration',
unnamedComponents: 'arrow-function'
}
],
Expand Down

0 comments on commit 62e64fd

Please sign in to comment.