Skip to content

Commit

Permalink
add rule for unstable components
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Jan 27, 2022
1 parent a5d9401 commit 5f8dc51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module.exports = {
'react/jsx-props-no-spreading': 0,
// Majority of our code uses flowtype now so this is not necessary
'react/require-default-props': 0,
'react/no-unstable-nested-components': [2, { allowAsProps: true }],
'react-hooks/rules-of-hooks': 2,
'testing-library/no-dom-import': 2,
'testing-library/no-manual-cleanup': 2,
Expand Down
4 changes: 2 additions & 2 deletions 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.7",
"version": "1.0.8",
"main": "index.js",
"repository": "[email protected]:Brianzchen/eslint-config-bzc.git",
"author": "Brian Chen",
Expand All @@ -22,7 +22,7 @@
"eslint-config-airbnb": ">=17.0.0 || >=18.0.0",
"eslint-plugin-fb-flow": ">=0.0.1",
"eslint-plugin-ft-flow": ">=0.1.2",
"eslint-plugin-react": ">=7.23.0",
"eslint-plugin-react": ">=7.27.0",
"eslint-plugin-react-hooks": ">=4.0.0",
"eslint-plugin-testing-library": ">=4.0.0"
},
Expand Down

0 comments on commit 5f8dc51

Please sign in to comment.