Skip to content

Commit 0ad2684

Browse files
committed
eslint: Enable react/no-unstable-nested-components
As planned; see discussion: #5393 (comment) With allowAsProps: true, it turns out that none of our code is actually flagged as problematic. See doc: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
1 parent f5e8fc0 commit 0ad2684

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.eslintrc.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,15 @@ rules:
309309
react/prop-types: off # We handle this better with types.
310310
react/require-default-props: off # We handle this better with types.
311311

312+
react/no-unstable-nested-components:
313+
- error
314+
# Avoid some regressions in clarity:
315+
# https://github.com/zulip/zulip-mobile/pull/5393#discussion_r893924345
316+
- allowAsProps: true
317+
312318
# These could be good to fix.
313319
react/prefer-stateless-function: off
314320
react/sort-comp: off
315-
react/no-unstable-nested-components: off
316321

317322

318323
#

0 commit comments

Comments
 (0)