Skip to content

Commit 684023f

Browse files
committed
docs: align copilot instructions with repo rules
1 parent c572120 commit 684023f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/copilot-instructions.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Use existing repository patterns and prefer minimal, behavior-preserving changes
1010

1111
## React and TypeScript
1212

13-
- Use `import React from 'react'`.
13+
- Use `import React from 'react'` in TSX and component files; use `import type React from 'react'` when only React types are needed.
1414
- Use `React.Fragment` instead of fragment shorthand.
1515
- Use separate top-level `import type`.
16-
- Do not use `React.FC`.
16+
- Do not use `React.FC` for component typing.
1717
- This repo uses React Router v5, not v6; prefer v5 hooks such as `useHistory` and `useParams`.
1818
- Avoid unnecessary `useEffect`; prefer direct handlers and derived state when possible.
1919
- Keep BEM names semantic. Prefix new SCSS root blocks and new `cn()` block names with `ydb-` unless the surrounding feature already uses an established local convention.
@@ -22,7 +22,6 @@ Use existing repository patterns and prefer minimal, behavior-preserving changes
2222

2323
- Never call APIs directly; use `window.api.module.method()`.
2424
- RTK Query endpoints must use `injectEndpoints()` and `queryFn`.
25-
- Do not mutate RTK Query state.
2625
- Clear form errors on user input and always handle loading states.
2726

2827
## Tables and URL Params

0 commit comments

Comments
 (0)