Skip to content

Commit

Permalink
add react/function-component-definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Dec 9, 2021
1 parent 98f4665 commit 0770cc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ module.exports = {
'prefer-promise-reject-errors': 0,
'quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true, numbers: true }],
'react/destructuring-assignment': 0,
'react/function-component-definition': [2, {
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
}],
'react/jsx-curly-brace-presence': ['error', {
props: 'never',
children: 'ignore',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-bzc",
"description": "Eslint Config for my personal and professional projects",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",
"repository": "[email protected]:Brianzchen/eslint-config-bzc.git",
"author": "Brian Chen",
Expand Down

0 comments on commit 0770cc8

Please sign in to comment.