REA lint-staged JSON notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

lint-staged pins (package.json "lint-staged" / .lintstagedrc.json) record glob → command identity. In REA 6.7.x, treat selected glob/command labels as Evidence beside archive/package routes — complementing husky/lefthook cousins without inventing APIs. Chosen instead of a husky-json near-dupe of rea-husky-hooks / rea-husky-dir.

Mental model

  1. Authorize the lint-staged project tree (+ packaged configs you hold).
  2. Quote selected glob/command labels you actually see (never paste secrets).
  3. Cousins → husky-hooks · lefthook-yml · pre-commit-config · simple-git-hooks.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_lint_staged_json API REA never called.

Minimal path

# authorized package.json "lint-staged" / .lintstagedrc.json (+ artifact you hold)
# quote selected glob/command labels into case notes
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_lint_staged_json .

Compare

ArtifactHonest posture
package.json "lint-staged" / .lintstagedrc.jsonstaged-file command identity facts
Peerrea-husky-hooks
Peerrea-lefthook-yml
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote globs, command names, and concurrency flags — enough for most Evidence binders.
  • Hook scripts and env vars often embed secrets — record key names only.
  • Keep lint-staged distinct from Husky hook paths and Lefthook YAML in case notes.
  • Concurrent / relative path options are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for lint-staged runs.

Scope we will not cover

  • No inventing inspect_lint_staged_json / automatic attacks against foreign lint-staged hosts.
  • No credential theft from tokens, CI secrets, or remote URIs.
  • No pirate redistribution of proprietary lint-staged trees.
  • No crack framing via lint-staged pins.
  • No cookbooks that weaken remote auth on foreign services.

Honest limits

RepoRead documents config literacy — how authorized lint-staged JSON trees relate to Evidence — not a full lint-staged course. Prefer upstream lint-staged docs for config details. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-husky-hooks / rea-lefthook-yml / rea-pre-commit-config?

rea-husky-hooks, rea-lefthook-yml, and rea-pre-commit-config cover peer hook runners. This page zooms on lint-staged JSON identity — it does not overwrite those pages. Chosen instead of a husky-json near-dupe of husky-dir/hooks.

Is there inspect_lint_staged_json in 6.7.0?

Not assumed. Quote glob/command labels you actually open, then use documented package/archive lanes. Do not invent inspect_lint_staged_json.

Does REA connect to remote lint-staged services or steal credentials?

No. Local trees only. Redact tokens, credentials, and remote URIs; do not treat REA as a lint-staged runner. No credential theft.

How should I label Evidence vs other hook/config files?

Label Evidence by the file present. Keep lint-staged JSON separate from rea-husky-hooks, rea-lefthook-yml, and rea-pre-commit-config.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources