summaryrefslogtreecommitdiff
path: root/GEMINI.md
diff options
context:
space:
mode:
Diffstat (limited to 'GEMINI.md')
-rw-r--r--GEMINI.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/GEMINI.md b/GEMINI.md
index 0deec351..afb9389b 100644
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -91,7 +91,6 @@ Rather than relying on Java-esque private or public class members, which can be
TypeScript's power lies in its ability to provide static type checking, catching potential errors before your code runs. To fully leverage this, it's crucial to avoid the `any` type and be judicious with type assertions.
- **The Dangers of `any`**: Using any effectively opts out of TypeScript's type checking for that particular variable or expression. While it might seem convenient in the short term, it introduces significant risks:
-
- **Loss of Type Safety**: You lose all the benefits of type checking, making it easy to introduce runtime errors that TypeScript would otherwise have caught.
- **Reduced Readability and Maintainability**: Code with `any` types is harder to understand and maintain, as the expected type of data is no longer explicitly defined.
- **Masking Underlying Issues**: Often, the need for any indicates a deeper problem in the design of your code or the way you're interacting with external libraries. It's a sign that you might need to refine your types or refactor your code.
@@ -163,7 +162,6 @@ Design for a good user experience - Provide clear, minimal, and non-blocking UI
### Process
1. Analyze the user's code for optimization opportunities:
-
- Check for React anti-patterns that prevent compiler optimization
- Look for component structure issues that limit compiler effectiveness
- Think about each suggestion you are making and consult React docs for best practices