-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.cursorrules
More file actions
20 lines (15 loc) · 815 Bytes
/
.cursorrules
File metadata and controls
20 lines (15 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Principles
- Follow the project's existing conventions and patterns.
- Prefer strong typing throughout the codebase.
- Avoid using `any` or `unknown` types unless absolutely necessary.
- Do not use type assertions; instead, define or refine types as needed.
- Create and use explicit types or interfaces for complex structures.
- Prefer using node-sql-parser's API and types for SQL parsing and analysis.
# Code Style
- Prefer concise code changes and minimal extra explanatory text.
- Keep code changes minimal and focused on the requested functionality.
# Development Workflow
- Always use `pnpm test` or its variations to run tests.
- Always use `pnpm lint` to run linting.
- Always use `pnpm typecheck` to run typechecking.
- Ensure all code changes pass tests, linting, and typechecking before merging.