Skip to content

Commit

Permalink
feat(linter): implement react/style-prop-object (oxc-project#6342)
Browse files Browse the repository at this point in the history
Implements not recommended rule `react/style-prop-object`
(oxc-project#1022)

---------

Co-authored-by: Don Isaac <[email protected]>
  • Loading branch information
2 people authored and Orenbek committed Oct 28, 2024
1 parent 75592ef commit 268ac6f
Show file tree
Hide file tree
Showing 3 changed files with 587 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ mod react {
pub mod require_render_return;
pub mod rules_of_hooks;
pub mod self_closing_comp;
pub mod style_prop_object;
pub mod void_dom_elements_no_children;
}

Expand Down Expand Up @@ -810,6 +811,7 @@ oxc_macros::declare_all_lint_rules! {
react::require_render_return,
react::rules_of_hooks,
react::self_closing_comp,
react::style_prop_object,
react::void_dom_elements_no_children,
react_perf::jsx_no_jsx_as_prop,
react_perf::jsx_no_new_array_as_prop,
Expand Down
Loading

0 comments on commit 268ac6f

Please sign in to comment.