Skip to content

Commit

Permalink
feat: update function component rules to favor arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
amille44420 committed Dec 30, 2021
1 parent 47d819e commit 0095d0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const config: Linter.Config = {
},
],
'jsx-quotes': ['error', 'prefer-double'],
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
},
],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
Expand Down

0 comments on commit 0095d0f

Please sign in to comment.