Skip to content

Commit f808966

Browse files
committed
chore: remove Husky and lint-staged dependencies
Removed: - Husky package from devDependencies - lint-staged package from devDependencies - "prepare": "husky" script from package.json - lint-staged configuration from package.json - .husky directory with pre-commit hooks - Git hooks setup from dev-setup.sh script Updated README: - Removed Husky references from Code Quality section - Removed Husky and lint-staged from Development Tools - Removed "Set up git hooks" from automated setup script description - Removed .husky/ directory from project structure - Removed Pre-commit Hooks section - Simplified Testing & Quality section Rationale: - Simplified development workflow - Removed git hook automation complexity - Developers can still manually run lint and format commands - CI/CD pipeline still enforces code quality - Reduced dependencies by 26 packages Manual code quality commands still available: - npm run lint - npm run lint:fix - npm run format - npm run type-check
1 parent 9d55345 commit f808966

File tree

3 files changed

+2
-35
lines changed

3 files changed

+2
-35
lines changed

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ A **professional, production-ready** task manager application with a stunning mo
6363
-**Express.js** - RESTful API with layered architecture
6464
-**Zod** - Runtime validation with TypeScript inference
6565
-**Security** - Helmet, CORS, rate limiting, SQL injection protection
66-
-**Code Quality** - ESLint, Prettier, Husky pre-commit hooks
66+
-**Code Quality** - ESLint, Prettier for consistent formatting
6767

6868
### 🤖 Automation & DevOps
6969

@@ -103,8 +103,6 @@ A **professional, production-ready** task manager application with a stunning mo
103103
- **TypeScript 5.9** - Strict mode enabled
104104
- **ESLint 9** - Flat config with TypeScript support
105105
- **Prettier 3.4** - Code formatting
106-
- **Husky 9** - Git hooks automation
107-
- **lint-staged** - Pre-commit code quality checks
108106
- **Concurrently** - Run multiple dev servers
109107
- **tsx** - Fast TypeScript execution
110108

@@ -145,7 +143,6 @@ This script will:
145143
- Check Node.js version
146144
- Install dependencies
147145
- Create `.env` file
148-
- Set up git hooks
149146
- Run type checking and linting
150147
- Build the project
151148

@@ -336,7 +333,6 @@ task-manager-qa-app/
336333
│ └── ci.yml # GitHub Actions CI/CD pipeline
337334
338335
├── dist/ # Build output (gitignored)
339-
├── .husky/ # Git hooks
340336
├── .env.example # Environment template
341337
├── eslint.config.js # ESLint flat config
342338
├── tailwind.config.js # TailwindCSS configuration
@@ -471,13 +467,6 @@ DELETE /tasks
471467

472468
## 🧪 Testing & Quality
473469

474-
### Pre-commit Hooks
475-
476-
Husky runs lint-staged on every commit:
477-
478-
- **TypeScript files** - ESLint + Prettier
479-
- **JSON/Markdown files** - Prettier formatting
480-
481470
### Code Quality Tools
482471

483472
```bash

package.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,7 @@
1616
"lint": "eslint . --ext .ts,.tsx",
1717
"lint:fix": "eslint . --ext .ts,.tsx --fix",
1818
"format": "prettier --write \"**/*.{ts,tsx,json}\"",
19-
"type-check": "tsc --noEmit && cd src/client && tsc --noEmit",
20-
"prepare": "husky"
21-
},
22-
"lint-staged": {
23-
"*.{ts,tsx}": [
24-
"eslint --fix",
25-
"prettier --write"
26-
],
27-
"*.{json,md}": [
28-
"prettier --write"
29-
]
19+
"type-check": "tsc --noEmit && cd src/client && tsc --noEmit"
3020
},
3121
"dependencies": {
3222
"@hookform/resolvers": "^5.2.2",
@@ -68,8 +58,6 @@
6858
"eslint": "^9.18.0",
6959
"eslint-config-prettier": "^9.1.2",
7060
"eslint-plugin-n": "^17.17.0",
71-
"husky": "^9.1.7",
72-
"lint-staged": "^16.2.6",
7361
"postcss": "^8.5.6",
7462
"prettier": "^3.4.2",
7563
"react": "^19.2.0",

scripts/dev-setup.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ echo "📁 Creating data directory..."
3737
mkdir -p data
3838
echo "✅ Data directory created"
3939

40-
# Setup git hooks
41-
echo ""
42-
echo "🪝 Setting up git hooks..."
43-
if [ -d .git ]; then
44-
npx husky
45-
echo "✅ Git hooks configured"
46-
else
47-
echo "⚠️ Not a git repository. Skipping git hooks."
48-
fi
49-
5040
# Run type checking
5141
echo ""
5242
echo "🔍 Running type check..."

0 commit comments

Comments
 (0)