Skip to content

Commit d1e80cb

Browse files
authored
chore(cursor) - make cursor run tasks (#962)
1 parent 736d2f1 commit d1e80cb

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

.cursor/rules/auto-format.mdc

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
---
2-
description: Automatically format and lint code after agentic changes
2+
description: Automatically format, lint, and type-check code after agentic changes
33
globs: src/**/*.{ts,tsx,js,jsx}
4-
alwaysApply: false
4+
alwaysApply: true
55
---
66

7-
# 🚨 CRITICAL: Auto-Format After Agentic Coding
7+
# 🚨 CRITICAL: Validation After Agentic Coding
88

99
**Always run these commands after making code changes:**
1010

11-
1. Format all modified files:
11+
1. **Lint check** (automatically done via ReadLints tool):
12+
```bash
13+
npm run lint
14+
```
1215

13-
```bash
16+
2. **Type check** - Run to catch TypeScript errors:
17+
```bash
18+
npm run type-check
19+
```
20+
21+
3. **Format** - Run to ensure consistent formatting:
22+
```bash
1423
npm run format
15-
```
24+
```
1625

17-
**Never complete a task without running formatting first.**
26+
**Never complete a task without running all validation checks.**

0 commit comments

Comments
 (0)