Commit 9ca0617
committed
fix: make TypeScript checking optional with clear project-wide scope warning
TypeScript's tsc command requires full project context for accurate type
checking and cannot be limited to only staged files. This change:
- Adds SKIP_TS_CHECK environment variable to bypass the check
- Warns users that TypeScript checks the entire project
- Provides clear instructions when check fails on unrelated errors
- Improves error messages to explain the project-wide scope
Usage:
- One-time skip: SKIP_TS_CHECK=1 git commit
- Permanent skip: export SKIP_TS_CHECK=1 (add to shell profile)
This prevents blocking commits due to unrelated TypeScript errors while
still allowing teams to enforce TypeScript checking when desired.1 parent ad7ad23 commit 9ca0617
2 files changed
+653
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
211 | 224 | | |
212 | 225 | | |
213 | 226 | | |
| |||
0 commit comments