Skip to content

Commit

Permalink
fix: favor arrow function for unamed components as well
Browse files Browse the repository at this point in the history
  • Loading branch information
amille44420 committed Dec 30, 2021
1 parent 0095d0f commit 073798a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const config: Linter.Config = {
'error',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
Expand Down

0 comments on commit 073798a

Please sign in to comment.