You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adding Husky and lint-staged. This will automatically run eslint on changed files right before a developer runs git commit, ensuring no poorly formatted code ever reaches a Pull Request
Hi @codeforgood I can implement this immediately. Here is the concrete technical flow I plan to set up:
Dependencies: Add husky and lint-staged as developer dependencies to the root package.json.
Configuration:
• Initialize husky via npx husky init.
• Configure a .husky/pre-commit hook file to invoke npx lint-staged.
• Add a lint-staged config object to target changed .js, .jsx, .ts, and .tsx files, feeding them directly into the repository's native npm run lint or eslint --fix commands.
Ergonomics: Add a prepare lifecycle script (husky) to guarantee that hooks are automatically installed when any developer runs npm install or yarn install.
Please assign this to me, and I will open a clean, structured PR!
Activity
amulyarstar commentedon Oct 20, 2026
Hi @codeforgood I can implement this immediately. Here is the concrete technical flow I plan to set up:
• Initialize husky via npx husky init.
• Configure a .husky/pre-commit hook file to invoke npx lint-staged.
• Add a lint-staged config object to target changed .js, .jsx, .ts, and .tsx files, feeding them directly into the repository's native npm run lint or eslint --fix commands.
Please assign this to me, and I will open a clean, structured PR!