Skip to content

Commit ba6c754

Browse files
committed
docs: update example for useAuth function in hooks-extra-no-useless-custom-hooks.md
1 parent 89edadf commit ba6c754

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

website/pages/docs/rules/hooks-extra-no-useless-custom-hooks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ function useSorted(items) {
8787
}
8888
```
8989

90+
```tsx
91+
// No 'TODO' and 'useContext()' comments inside function body
92+
function useAuth() {
93+
return TEST_USER;
94+
}
95+
```
96+
9097
### Passing
9198

9299
```tsx

0 commit comments

Comments
 (0)