hooks-configs/hook-eslint-checkFeatured

Lint JavaScript/TypeScript files before committing

Pre-commit hook that runs ESLint on staged files. Catches linting errors early and prevents problematic code from being committed. Supports auto-fix for automatically resolvable issues.

Content
{
  "hooks": {
    "pre-commit": [
      {
        "name": "eslint-check",
        "command": "npx eslint --fix",
        "match": "**/*.{js,jsx,ts,tsx}",
        "description": "Lint and fix JavaScript/TypeScript files"
      }
    ]
  }
}

Details

Categoryhooks-configs
Tagslintingpre-commitjavascripttypescriptbeginner
LicenseMIT
AuthorClaude Code Directory
Difficultybeginner