Skip to content

Commit f8207b7

Browse files
authored
discourage agent from using any/unknown casts in instructions (microsoft#269122)
add rule about as any/unknown
1 parent 0685819 commit f8207b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ function f(x: number, y: string): void { }
133133
- Look for existing test patterns before creating new structures
134134
- Use `describe` and `test` consistently with existing patterns
135135
- If you create any temporary new files, scripts, or helper files for iteration, clean up these files by removing them at the end of the task
136+
- Do not use `any` or `unknown` as the type for variables, parameters, or return values unless absolutely necessary. If they need type annotations, they should have proper types or interfaces defined.

0 commit comments

Comments
 (0)