Skip to content

Commit 0df707a

Browse files
authored
feat(no-unstable-nested-components): allow to use for props set by the parent (#138)
* chore: fix renovate props not accurate * fix: update rule no-unstable-nested-component to allow using functions as child components
1 parent af5a802 commit 0df707a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/eslint-plugin/lib/configs/recommended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const recommendedConfig = tseslint.config(
3838
"react-native/no-color-literals": "off",
3939
"react-native/sort-styles": "off",
4040
"react-native/no-raw-text": "error",
41-
"react/no-unstable-nested-components": "error",
41+
"react/no-unstable-nested-components": ["error", { allowAsProps: true }], // allowAsProps for Functions as child components
4242
"react/prop-types": "off",
4343
"react/no-unused-prop-types": "error",
4444
"react/jsx-no-useless-fragment": "error",

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": ["config:recommended", "schedule:earlyMondays", "group:monorepos"],
44
"labels": ["dependencies"],
5-
"stabilityDays": 3,
5+
"minimumReleaseAge": "3 days",
66
"internalChecksFilter": "strict",
77
"postUpdateOptions": ["yarnDedupeHighest"],
88
"updatePinnedDependencies": false,

0 commit comments

Comments
 (0)