You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/website/content/docs/rules/overview.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,7 @@ full: true
177
177
-[`function-component`](./debug-function-component) - Reports all function components in JSON format
178
178
-[`hook`](./debug-hook) - Reports all React Hooks in JSON format
179
179
-[`is-from-react`](./debug-is-from-react) - Reports all identifiers initialized from React in JSON format
180
+
-[`is-from-ref`](./debug-is-from-ref) - Reports all identifiers initialized or derived from refs in JSON format
180
181
-[`jsx`](./debug-jsx) - Reports all JSX elements and fragments in JSON format
181
182
</Tab>
182
183
@@ -328,13 +329,14 @@ full: true
328
329
These rules are useful for code metrics, code transformation, issue reporting, or when building custom tooling that needs to identify specific patterns.
Copy file name to clipboardExpand all lines: packages/core/docs/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,8 +139,9 @@
139
139
|[isComponentWrapperCallbackLoose](functions/isComponentWrapperCallbackLoose.md)| Check if the node is a callback function passed to a component wrapper loosely |
140
140
|[isComponentWrapperCallLoose](functions/isComponentWrapperCallLoose.md)| Check if the node is a call expression for a component wrapper loosely |
|[isInitializedFromReact](functions/isInitializedFromReact.md)| Checks if a variable is initialized from React import |
142
+
|[isInitializedFromReact](functions/isInitializedFromReact.md)| Checks if a variable is initialized or derived from React import |
143
143
|[isInitializedFromReactNative](functions/isInitializedFromReactNative.md)| Checks if a variable is initialized from React Native import |
144
+
|[isInitializedFromRef](functions/isInitializedFromRef.md)| Checks if the variable with the given name is initialized or derived from a ref |
144
145
|[isInsideComponentOrHook](functions/isInsideComponentOrHook.md)| Checks if a given AST node is inside a React component or hook |
145
146
|[isJsxFragmentElement](functions/isJsxFragmentElement.md)| Determines if a JSX element is a React Fragment Fragments can be imported from React and used like <Fragment> or <React.Fragment> |
146
147
|[isJsxHostElement](functions/isJsxHostElement.md)| Determines if a JSX element is a host element Host elements in React start with lowercase letters (e.g., div, span) |
@@ -154,6 +155,7 @@
154
155
|[isReactHookCallWithName](functions/isReactHookCallWithName.md)| Checks if a node is a call to a specific React hook. Returns a function that accepts a hook name to check against. |
155
156
|[isReactHookId](functions/isReactHookId.md)| - |
156
157
|[isReactHookName](functions/isReactHookName.md)| Catch all identifiers that begin with "use" followed by an uppercase Latin character to exclude identifiers like "user". |
158
+
|[isRefName](functions/isRefName.md)| Checks if a given name corresponds to a ref name |
157
159
|[isRenderFunctionLoose](functions/isRenderFunctionLoose.md)| Unsafe check whether given node is a render function `const renderRow = () => <div /> ` ^^^^^^^^^^^^` _ = <Component renderRow={() => <div />} /> ` ^^^^^^^^^^^^^ `` |
158
160
|[isRenderMethodLike](functions/isRenderMethodLike.md)| Check whether given node is a render method of a class component |
159
161
|[isRenderPropLoose](functions/isRenderPropLoose.md)| Unsafe check whether given JSXAttribute is a render prop `_ = <Component renderRow={() => <div />} /> ` ^^^^^^^^^^^^^^^^^^^^^^^^^ `` |
0 commit comments