-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathauto-imports.mdc
36 lines (32 loc) · 1.61 KB
/
auto-imports.mdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
description:
globs: src/**/*
alwaysApply: false
---
## Auto-Import Reference
This document provides a comprehensive list of automatically imported dependencies, configured in `src/types/unimport.config.ts`.
GUIDANCE: When referencing or utilizing the following modules and functions, do **NOT** include explicit import statements. These are globally available due to the auto-import configuration.
### List of Auto-Imports
| Module/Function | Source |
| -------------------- | ------------------------- |
| `useState` | `react` |
| `useEffect` | `react` |
| `useRef` | `react` |
| `useCallback` | `react` |
| `useMemo` | `react` |
| `lazy` | `react` |
| `use` | `react` |
| `createContext` | `react` |
| `useDeferredValue` | `react` |
| `memo` | `react` |
| `onlyMainWorldGuard` | `src/utils/js-context.ts` |
| `onlyExtensionGuard` | `src/utils/js-context.ts` |
| `sleep` | `src/utils/utils.ts` |
| `isMainWorldContext` | `src/utils/utils.ts` |
| `isExtensionContext` | `src/utils/utils.ts` |
| `cn` | `src/utils/cn.ts` |
| `i18n` | `src/utils/i18next.ts` |
| `t` | `src/utils/i18next.ts` |
| `deepEqual` | `src/utils/deep-equal.ts` |
| `$` (default) | `jquery` |
| `Key` | `ts-key-enum` |