Skip to content

Commit c62cb2a

Browse files
Copilot Instructions: add a rule about AI API names (#31847)
1 parent 21190d8 commit c62cb2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/instructions/API_conventions.instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ When helping me write code or reviewing my existing code, please follow these sp
1313
-`createJsonParser` (not `createJSONParser`)
1414
-`apiEndpoint` (not `APIEndpoint`)
1515
- This applies to all acronyms regardless of length (DOM, HTML, JSON, API, etc.)
16+
- The exception is `AI`, which should always be capitalized fully (e.g., `AIIntegration`, `aiOptions`)
1617

1718
2. **JSDoc Format - Omit @type:**
1819
- Do not include the `@type` tag in JSDoc comments when the type is already indicated by TypeScript type annotation

0 commit comments

Comments
 (0)