Skip to content

Commit 37680b0

Browse files
authored
feat(linter): implement react no-unstable-nested-components (#22248)
Contributes to #1022 This implements the [react/no-unstable-nested-components](https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unstable-nested-components.nd) rule. > [!NOTE] > This PR was authored by an LLM (GPT5.5) and reviewed by me
1 parent d8d9c74 commit 37680b0

8 files changed

Lines changed: 2417 additions & 2 deletions

File tree

apps/oxlint/src-js/package/config.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ export interface DummyRuleMap {
950950
"react/no-unescaped-entities"?: DummyRule;
951951
"react/no-unknown-property"?: DummyRule;
952952
"react/no-unsafe"?: DummyRule;
953+
"react/no-unstable-nested-components"?: DummyRule;
953954
"react/no-will-update-set-state"?: DummyRule;
954955
"react/only-export-components"?: DummyRule;
955956
"react/prefer-es6-class"?: DummyRule;

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/generated/rules_enum.rs

Lines changed: 39 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ pub(crate) mod react {
448448
pub mod no_unescaped_entities;
449449
pub mod no_unknown_property;
450450
pub mod no_unsafe;
451+
pub mod no_unstable_nested_components;
451452
pub mod no_will_update_set_state;
452453
pub mod only_export_components;
453454
pub mod prefer_es6_class;

0 commit comments

Comments
 (0)