Sign in
Explore
Add-ons · HookTesting & SecurityReviewedRuns shell commands

development-tools/lint-on-save

Runs a linter after file edits: ESLint for JavaScript and TypeScript, Pylint for Python, RuboCop for Ruby.

Kind
Hook
Works with
Claude Code
Languages
TypeScript / JavaScript, Ruby, Python
Source
Claude Code Templates @ 72e5f237f64d
Path
cli-tool/components/hooks/development-tools/lint-on-save.json
Jobs
Guardrails

Credit

Made by
davila7
Original
github.com/davila7/claude-code-templates/blob/72e5f237f64d70a…
License
MIT

Listed by Skill Manifest; not made by us.

InstallInstall it by hand, following the source.
Install factsScanned 3 Nov 2026
Adds
  • Entries under `hooks` in .claude/settings.json
  • Hook on PostToolUse
Runs scripts
Yes
  • hook command runs on every matching event
Uses the network
None found
Needs secrets
None found
Reads environment variables
  • CLAUDE_TOOL_FILE_PATH
Source revision
72e5f237f64d
Licence
MIT
Last activity
26 Nov 2026
Source changed after the scan
Yes
  • Last push 26 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

{
  "description": "Automatically run linting tools after file modifications. Supports ESLint for JavaScript/TypeScript, Pylint for Python, and RuboCop for Ruby.",
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "if [[ \"$CLAUDE_TOOL_FILE_PATH\" == *.js || \"$CLAUDE_TOOL_FILE_PATH\" == *.ts || \"$CLAUDE_TOOL_FILE_PATH\" == *.jsx || \"$CLAUDE_TOOL_FILE_PATH\" == *.tsx ]]; then npx eslint \"$CLAUDE_TOOL_FILE_PATH\" --fix 2>/dev/null || true; elif [[ \"$CLAUDE_TOOL_FILE_PATH\" == *.py ]]; then pylint \"$CLAUDE_TOOL_FILE_PATH\" 2>/dev/null || true; elif [[ \"$CLAUDE_TOOL_FILE_PATH\" == *.rb ]]; then rubocop \"$CLAUDE_TOOL_FILE_PATH\" --auto-correct 2>/dev/null || true; fi"
          }
        ]
      }
    ]
  }
}