CI Perf Lint

redundant-bootstrap-in-husky-hook

What it flags

Flags repositories whose .husky/* hook files still use deprecated Husky bootstrap or x-runner wrapping such as npx.

This is a repo-aware rule. It reads .husky/* files directly.

Why it matters

Deprecated Husky bootstrap and x-runner command paths add avoidable startup work to every hook invocation.

This does not mean hook performance is only about Husky. The main cost still comes from the tools the hook runs. But simplifying the hook path is a worthwhile baseline optimization, especially for high-frequency hooks such as pre-commit and commit-msg.

Current heuristic

The rule looks for:

When to ignore it

Ignore this finding when:

Suggested verification

Sources