Problem
The npm run lint command is broken and fails with sh: eslint: command not found.
Root Cause:
package.json defines lint script but ESLint is NOT in devDependencies
- No .eslintrc configuration file exists
Impact
- No automated code quality checks in development or CI
- Code style violations go undetected
- 87 merged PRs in 7 days without lint verification
Solution
npm install --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier
- Create .eslintrc.json configuration
- Verify:
npm run lint works
- Add linting GitHub Actions workflow
Audit Date: 2026-03-20
Problem
The
npm run lintcommand is broken and fails withsh: eslint: command not found.Root Cause:
package.jsondefines lint script but ESLint is NOT in devDependenciesImpact
Solution
npm install --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettiernpm run lintworksAudit Date: 2026-03-20