Commit 3d43eb9
committed
feat: enhance pre-push hook with automatic issue fixing
- Add auto-fixing of linting issues with 'npm run lint:fix'
- Add automatic code formatting with 'npm run format'
- Auto-stage fixes before validation to ensure they're included
- Only fail after attempting auto-fixes if manual intervention required
- Improves developer experience by fixing common issues locally before push
Process:
1. 🔧 Auto-fix linting issues
2. 🎨 Auto-format code
3. 📋 Stage auto-fixes
4. 🔍 Validate final quality
5. 🚀 Push only if everything passes
Benefits:
✅ Reduces failed pushes due to fixable formatting/linting issues
✅ Maintains code quality standards automatically
✅ Saves developer time by fixing issues before they cause pipeline failures1 parent fa727d7 commit 3d43eb9
1 file changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
15 | 43 | | |
16 | 44 | | |
17 | 45 | | |
18 | | - | |
19 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
20 | 49 | | |
21 | 50 | | |
22 | 51 | | |
| |||
0 commit comments