Skip to content

Commit

Permalink
docs: improve documentation of rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Sep 19, 2024
1 parent 6922305 commit 2c7982b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ use schemars::JsonSchema;
declare_lint_rule! {
/// Enforce that all React hooks are being called from the Top Level component functions.
///
/// _This rule should be used only in **React** projects._
///
/// To understand why this required see https://reactjs.org/docs/hooks-rules.html#only-call-hooks-at-the-top-level
///
/// ## Examples
Expand Down

0 comments on commit 2c7982b

Please sign in to comment.